diff options
-rw-r--r-- | src/protocol_ec25519_fhmqvc_xsalsa20_poly1305.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocol_ec25519_fhmqvc_xsalsa20_poly1305.c b/src/protocol_ec25519_fhmqvc_xsalsa20_poly1305.c index c1c3349..326d1b5 100644 --- a/src/protocol_ec25519_fhmqvc_xsalsa20_poly1305.c +++ b/src/protocol_ec25519_fhmqvc_xsalsa20_poly1305.c @@ -222,7 +222,7 @@ static void protocol_init(fastd_context *ctx, fastd_config *conf) { } static size_t protocol_max_packet_size(fastd_context *ctx) { - return (fastd_max_packet_size(ctx) + NONCEBYTES); + return (fastd_max_packet_size(ctx) + NONCEBYTES + crypto_secretbox_xsalsa20poly1305_ZEROBYTES - crypto_secretbox_xsalsa20poly1305_BOXZEROBYTES); } static size_t protocol_min_encrypt_head_space(fastd_context *ctx) { |