Proper xchacha20poly1305_MESSAGEBYTES_MAX definition

This commit is contained in:
Frank Denis 2017-09-16 23:37:52 +02:00
parent bfab44aa40
commit 1181a47cb4

View File

@ -30,7 +30,7 @@ SODIUM_EXPORT
size_t crypto_secretstream_xchacha20poly1305_keybytes(void);
#define crypto_secretstream_xchacha20poly1305_MESSAGEBYTES_MAX \
((1ULL << 32) - 2ULL * 64ULL)
(((1ULL << 32) - 2ULL) * 64ULL)
SODIUM_EXPORT
size_t crypto_secretstream_xchacha20poly1305_messagebytes_max(void);