On 32-bit systems, the limit is SIZE_MAX
This commit is contained in:
parent
251751e699
commit
a161dd9fa1
@ -30,7 +30,7 @@ SODIUM_EXPORT
|
||||
size_t crypto_secretstream_xchacha20poly1305_keybytes(void);
|
||||
|
||||
#define crypto_secretstream_xchacha20poly1305_MESSAGEBYTES_MAX \
|
||||
(((1ULL << 32) - 2ULL) * 64ULL)
|
||||
SODIUM_MIN(SODIUM_SIZE_MAX, ((1ULL << 32) - 2ULL) * 64ULL)
|
||||
SODIUM_EXPORT
|
||||
size_t crypto_secretstream_xchacha20poly1305_messagebytes_max(void);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user