From 568adb570d995f9f645f4ac21af959a8295ee145 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sat, 29 Jul 2017 15:02:51 +0200 Subject: [PATCH] Trim crypto_pwhash_scryptsalsa208sha256_BYTES_MAX down to ~127 GB --- .../include/sodium/crypto_pwhash_scryptsalsa208sha256.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsodium/include/sodium/crypto_pwhash_scryptsalsa208sha256.h b/src/libsodium/include/sodium/crypto_pwhash_scryptsalsa208sha256.h index 9f693e54..987f123f 100644 --- a/src/libsodium/include/sodium/crypto_pwhash_scryptsalsa208sha256.h +++ b/src/libsodium/include/sodium/crypto_pwhash_scryptsalsa208sha256.h @@ -18,7 +18,7 @@ extern "C" { SODIUM_EXPORT size_t crypto_pwhash_scryptsalsa208sha256_bytes_min(void); -#define crypto_pwhash_scryptsalsa208sha256_BYTES_MAX SIZE_MAX +#define crypto_pwhash_scryptsalsa208sha256_BYTES_MAX (SIZE_MAX > 0x1fffffffe0ULL ? 0x1fffffffe0ULL : SIZE_MAX) SODIUM_EXPORT size_t crypto_pwhash_scryptsalsa208sha256_bytes_max(void);