We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 112e247 + ecd70af commit ef64957Copy full SHA for ef64957
1 file changed
src/handshakes/abstract-handshake.ts
@@ -60,7 +60,7 @@ export abstract class AbstractHandshake {
60
protected nonceToBytes (n: uint64): bytes {
61
// Even though we're treating the nonce as 8 bytes, RFC7539 specifies 12 bytes for a nonce.
62
const nonce = new Uint8Array(12)
63
- new DataView(nonce.buffer, nonce.byteOffset, nonce.byteLength).setUint32(n, 4, true)
+ new DataView(nonce.buffer, nonce.byteOffset, nonce.byteLength).setUint32(4, n, true)
64
65
return nonce
66
}
0 commit comments