From 623cbfc1687847645301ac39156398da2d782224 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Mon, 27 Mar 2017 00:52:03 +0200 Subject: [PATCH] Fix crypto_pwhash_argon2i_MEMLIMIT_MAX definition on 32-bit platforms --- src/libsodium/include/sodium/crypto_pwhash_argon2i.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsodium/include/sodium/crypto_pwhash_argon2i.h b/src/libsodium/include/sodium/crypto_pwhash_argon2i.h index d5caba6d..71b9af6c 100644 --- a/src/libsodium/include/sodium/crypto_pwhash_argon2i.h +++ b/src/libsodium/include/sodium/crypto_pwhash_argon2i.h @@ -58,7 +58,7 @@ size_t crypto_pwhash_argon2i_opslimit_max(void); SODIUM_EXPORT size_t crypto_pwhash_argon2i_memlimit_min(void); -#define crypto_pwhash_argon2i_MEMLIMIT_MAX ((SIZE_MAX >= 1ULL << 48) ? 4398046510080U : (SIZE_MAX >= 1ULL << 32) ? 2147483648U : 32768U) +#define crypto_pwhash_argon2i_MEMLIMIT_MAX ((SIZE_MAX >= 4398046510080U) ? 4398046510080U : (SIZE_MAX >= 2147483648U) ? 2147483648U : 32768U) SODIUM_EXPORT size_t crypto_pwhash_argon2i_memlimit_max(void);