fix: Fix call of `HKDF` in the `genMessageNametagSecrets` function

This commit is contained in:
Emil Ivanichkov 2024-01-24 20:21:41 +02:00 committed by richΛrd
parent 0f9b146776
commit 4be1418b58
1 changed files with 1 additions and 1 deletions

View File

@ -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 };
}