Searched refs:salt_len (Results 1 – 8 of 8) sorted by relevance
/php-src/ext/standard/ |
H A D | crypt_sha256.c | 331 size_t salt_len; in php_sha256_crypt_r() local 365 salt_len = MIN(strcspn(salt, "$"), SALT_LEN_MAX); in php_sha256_crypt_r() 384 copied_salt[salt_len] = 0; in php_sha256_crypt_r() 396 sha256_process_bytes(salt, salt_len, &ctx); in php_sha256_crypt_r() 407 sha256_process_bytes(salt, salt_len, &alt_ctx); in php_sha256_crypt_r() 459 sha256_process_bytes(salt, salt_len, &alt_ctx); in php_sha256_crypt_r() 468 for (cnt = salt_len; cnt >= 32; cnt -= 32) { in php_sha256_crypt_r() 488 sha256_process_bytes(s_bytes, salt_len, &ctx); in php_sha256_crypt_r() 523 buflen -= MIN(MAX (0, buflen), (int)salt_len); in php_sha256_crypt_r() 567 ZEND_SECURE_ZERO(s_bytes, salt_len); in php_sha256_crypt_r() [all …]
|
H A D | crypt_sha512.c | 368 size_t salt_len; in php_sha512_crypt_r() local 403 salt_len = MIN(strcspn(salt, "$"), SALT_LEN_MAX); in php_sha512_crypt_r() 422 copied_salt[salt_len] = 0; in php_sha512_crypt_r() 434 sha512_process_bytes(salt, salt_len, &ctx); in php_sha512_crypt_r() 445 sha512_process_bytes(salt, salt_len, &alt_ctx); in php_sha512_crypt_r() 498 sha512_process_bytes(salt, salt_len, &alt_ctx); in php_sha512_crypt_r() 506 cp = s_bytes = do_alloca(salt_len, use_heap_s_bytes); in php_sha512_crypt_r() 507 for (cnt = salt_len; cnt >= 64; cnt -= 64) { in php_sha512_crypt_r() 527 sha512_process_bytes(s_bytes, salt_len, &ctx); in php_sha512_crypt_r() 619 ZEND_SECURE_ZERO(s_bytes, salt_len); in php_sha512_crypt_r() [all …]
|
H A D | php_crypt.h | 22 …g *php_crypt(const char *password, const int pass_len, const char *salt, int salt_len, bool quiet);
|
H A D | crypt.c | 70 …ng *php_crypt(const char *password, const int pass_len, const char *salt, int salt_len, bool quiet) in php_crypt() argument
|
/php-src/ext/hash/ |
H A D | hash.c | 995 size_t pass_len, salt_len = 0; in PHP_FUNCTION() local 1011 if (salt_len > INT_MAX - 4) { in PHP_FUNCTION() 1055 computed_salt = safe_emalloc(salt_len, 1, 4); in PHP_FUNCTION() 1062 computed_salt[salt_len] = (unsigned char) (i >> 24); in PHP_FUNCTION() 1092 ZEND_SECURE_ZERO(computed_salt, salt_len + 4); in PHP_FUNCTION() 1293 size_t password_len, salt_len; in PHP_FUNCTION() local 1306 salt_len = MIN(salt_len, SALT_SIZE); in PHP_FUNCTION() 1308 memcpy(padded_salt, salt, salt_len); in PHP_FUNCTION() 1309 if (salt_len < SALT_SIZE) { in PHP_FUNCTION() 1310 memset(padded_salt + salt_len, 0, SALT_SIZE - salt_len); in PHP_FUNCTION() [all …]
|
/php-src/ext/openssl/ |
H A D | openssl_pwhash.c | 92 const unsigned char *salt, size_t salt_len, in php_openssl_argon2_compute_hash() argument 110 *p++ = OSSL_PARAM_construct_octet_string(OSSL_KDF_PARAM_SALT, (void *)salt, salt_len); in php_openssl_argon2_compute_hash()
|
H A D | openssl.c | 5543 size_t salt_len; in PHP_FUNCTION() local 5552 &salt, &salt_len, in PHP_FUNCTION() 5559 PHP_OPENSSL_CHECK_SIZE_T_TO_INT(salt_len, salt, 2); in PHP_FUNCTION() 5581 …if (PKCS5_PBKDF2_HMAC(password, (int)password_len, (unsigned char *)salt, (int)salt_len, (int)iter… in PHP_FUNCTION()
|
/php-src/ext/sodium/ |
H A D | libsodium.c | 1423 size_t salt_len; in PHP_FUNCTION() local 1430 &salt, &salt_len, in PHP_FUNCTION() 1466 if (salt_len != crypto_pwhash_SALTBYTES) { in PHP_FUNCTION() 1612 size_t salt_len; in PHP_FUNCTION() local 1617 &salt, &salt_len, in PHP_FUNCTION() 1637 if (salt_len != crypto_pwhash_scryptsalsa208sha256_SALTBYTES) { in PHP_FUNCTION()
|
Completed in 48 milliseconds