Do not count the overhead in xchacha20poly1305_MESSAGEBYTES_MAX
This commit is contained in:
parent
04a7ab95f2
commit
bea8839c6b
@ -30,7 +30,8 @@ SODIUM_EXPORT
|
|||||||
size_t crypto_secretstream_xchacha20poly1305_keybytes(void);
|
size_t crypto_secretstream_xchacha20poly1305_keybytes(void);
|
||||||
|
|
||||||
#define crypto_secretstream_xchacha20poly1305_MESSAGEBYTES_MAX \
|
#define crypto_secretstream_xchacha20poly1305_MESSAGEBYTES_MAX \
|
||||||
SODIUM_MIN(SODIUM_SIZE_MAX, ((1ULL << 32) - 2ULL) * 64ULL)
|
SODIUM_MIN(SODIUM_SIZE_MAX - crypto_secretstream_xchacha20poly1305_ABYTES, \
|
||||||
|
(64ULL * (1ULL << 32) - 2ULL))
|
||||||
SODIUM_EXPORT
|
SODIUM_EXPORT
|
||||||
size_t crypto_secretstream_xchacha20poly1305_messagebytes_max(void);
|
size_t crypto_secretstream_xchacha20poly1305_messagebytes_max(void);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user