This commit is contained in:
Belma Gutlic
2019-12-25 22:08:18 +01:00
parent 10a41c5ea6
commit 741f6c9788
2 changed files with 14 additions and 10 deletions

View File

@ -97,7 +97,7 @@ export class IKHandshake extends AbstractHandshake {
const spk = Buffer.from(hs.s.publicKey);
const ns = this.encryptAndHash(hs.ss, spk);
this.mixKey(hs.ss, this.dh(hs.s.privateKey, hs.re));
this.mixKey(hs.ss, this.dh(hs.s.privateKey, hs.rs));
const ciphertext = this.encryptAndHash(hs.ss, payload);
return { ne, ns, ciphertext };