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
I can't claim to fully understand the Noise protocol, but I think MAX_MESSAGE_LEN should be 65535 - 16.
The protocol specs say "A Noise transport message is simply an AEAD ciphertext that is less than or equal to 65535 bytes in length, and that consists of an encrypted payload plus 16 bytes of authentication data."
Indeed, if I encrypt a 65535-byte message, I get 65551 bytes out -- which fails to round-trip back through .decrypt(). I will comment with a test-case.
The text was updated successfully, but these errors were encountered:
I can't claim to fully understand the Noise protocol, but I think
MAX_MESSAGE_LEN
should be65535 - 16
.The protocol specs say "A Noise transport message is simply an AEAD ciphertext that is less than or equal to 65535 bytes in length, and that consists of an encrypted payload plus 16 bytes of authentication data."
Indeed, if I encrypt a 65535-byte message, I get 65551 bytes out -- which fails to round-trip back through
.decrypt()
. I will comment with a test-case.The text was updated successfully, but these errors were encountered: