mirror of https://github.com/waku-org/js-noise.git
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…
Reference in New Issue