mirror of
https://github.com/logos-messaging/js-noise.git
synced 2026-01-02 05:33:09 +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