mirror of
https://github.com/waku-org/js-noise.git
synced 2025-02-23 00:18:27 +00:00
fix: Fix call of HKDF
in the genMessageNametagSecrets
function
This commit is contained in:
parent
0f9b146776
commit
4be1418b58
@ -96,7 +96,7 @@ export class HandshakeState {
|
||||
}
|
||||
|
||||
genMessageNametagSecrets(): { nms1: Uint8Array; nms2: Uint8Array } {
|
||||
const [nms1, nms2] = HKDF(this.handshakePattern.hash, this.ss.h, new Uint8Array(), 2, 32);
|
||||
const [nms1, nms2] = HKDF(this.handshakePattern.hash, this.ss.h, new Uint8Array(), 32, 2);
|
||||
return { nms1, nms2 };
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user