Remove another useless test on 32-bit platforms
This commit is contained in:
parent
0ae4fa63bf
commit
2fe7ccfbd6
@ -24,6 +24,7 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <limits.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
@ -53,9 +54,11 @@ PBKDF2_SHA256(const uint8_t *passwd, size_t passwdlen, const uint8_t *salt,
|
|||||||
int k;
|
int k;
|
||||||
size_t clen;
|
size_t clen;
|
||||||
|
|
||||||
|
#if SIZE_MAX > 0x1fffffffe0ULL
|
||||||
if (dkLen > 0x1fffffffe0ULL) {
|
if (dkLen > 0x1fffffffe0ULL) {
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
crypto_auth_hmacsha256_init(&PShctx, passwd, passwdlen);
|
crypto_auth_hmacsha256_init(&PShctx, passwd, passwdlen);
|
||||||
crypto_auth_hmacsha256_update(&PShctx, salt, saltlen);
|
crypto_auth_hmacsha256_update(&PShctx, salt, saltlen);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user