You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// For performance reasons, the nonce is represented as a JS `number`
15
+
// JS `number` can only safely represent integers up to 2 ** 53 - 1
16
+
// This is a slight deviation from the noise spec, which describes the max nonce as 2 ** 64 - 2
17
+
// The effect is that this implementation will need a new handshake to be performed after fewer messages are exchanged than other implementations with full uint64 nonces.
18
+
// 2 ** 53 - 1 is still a large number of messages, so the practical effect of this is negligible.
19
+
exportconstMAX_NONCE=Number.MAX_SAFE_INTEGER
20
+
21
+
constERR_MAX_NONCE='Cipherstate has reached maximum n, a new handshake must be performed'
0 commit comments