Bail out if SIZE_MAX < crypto_pwhash_MEMLIMIT_MAX

This commit is contained in:
Frank Denis 2017-07-15 17:51:10 +02:00
parent 7d5d9204e5
commit c2ef7d0882

View File

@ -4,6 +4,10 @@
#include "crypto_pwhash.h"
#if SIZE_MAX < crypto_pwhash_MEMLIMIT_MAX
# error Password hashing functions cannot be used on this platform
#endif
int
crypto_pwhash_alg_argon2i13(void)
{