Remove another useless test on 32-bit platforms

This commit is contained in:
Frank Denis 2017-03-02 14:52:29 +01:00
parent 0ae4fa63bf
commit 2fe7ccfbd6

View File

@ -24,6 +24,7 @@
* SUCH DAMAGE.
*/
#include <limits.h>
#include <stdlib.h>
#include <sys/types.h>
@ -53,9 +54,11 @@ PBKDF2_SHA256(const uint8_t *passwd, size_t passwdlen, const uint8_t *salt,
int k;
size_t clen;
#if SIZE_MAX > 0x1fffffffe0ULL
if (dkLen > 0x1fffffffe0ULL) {
abort();
}
#endif
crypto_auth_hmacsha256_init(&PShctx, passwd, passwdlen);
crypto_auth_hmacsha256_update(&PShctx, salt, saltlen);