brontide: add new maxMessageSize variable

This commit is contained in:
Olaoluwa Osuntokun committed 2025-09-24 11:52:01 -07:00
1 parent 6e0083a369
commit 06826f85d8
1 file changed
+4
+4
View File
@@ -35,6 +35,10 @@ const (
// header and it's MAC.
encHeaderSize = lengthHeaderSize + macSize
// maxMessageSize is the maximum size of an encrypted message including
// the MAC. This is the max payload (65535) plus the MAC size (16).
maxMessageSize = math.MaxUint16 + macSize
// keyRotationInterval is the number of messages sent on a single
// cipher stream before the keys are rotated forwards.
keyRotationInterval = 1000