diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-04-01 06:01:07 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-04-01 06:01:07 +0200 |
commit | 9be0a607eb2e452958e4128803ace2e3aaad19cc (patch) | |
tree | d210de297150ded897457d9b650151eedfce1550 /src | |
parent | 3a1fcf98b094840ea71abce92ec72328453dd733 (diff) | |
download | fastd-9be0a607eb2e452958e4128803ace2e3aaad19cc.tar fastd-9be0a607eb2e452958e4128803ace2e3aaad19cc.zip |
ecfxp: fix max packet sizev0.1-rc2
Diffstat (limited to 'src')
-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) { |