Skip to content

Commit

Permalink
fix: Fix call of HKDF in the genMessageNametagSecrets function
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilIvanichkovv authored and richard-ramos committed Jan 25, 2024
1 parent 0f9b146 commit 4be1418
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handshake_state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
}

Expand Down

0 comments on commit 4be1418

Please sign in to comment.