Home
last modified time | relevance | path

Searched refs:salt_len (Results 1 – 7 of 7) sorted by relevance

/php-src/ext/standard/
H A Dcrypt_sha256.c331 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 Dcrypt_sha512.c368 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 Dphp_crypt.h22 …g *php_crypt(const char *password, const int pass_len, const char *salt, int salt_len, bool quiet);
H A Dcrypt.c70 …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 Dhash.c996 size_t pass_len, salt_len = 0; in PHP_FUNCTION() local
1012 if (salt_len > INT_MAX - 4) { in PHP_FUNCTION()
1056 computed_salt = safe_emalloc(salt_len, 1, 4); in PHP_FUNCTION()
1063 computed_salt[salt_len] = (unsigned char) (i >> 24); in PHP_FUNCTION()
1093 ZEND_SECURE_ZERO(computed_salt, salt_len + 4); in PHP_FUNCTION()
1290 size_t password_len, salt_len; in PHP_FUNCTION() local
1303 salt_len = MIN(salt_len, SALT_SIZE); in PHP_FUNCTION()
1305 memcpy(padded_salt, salt, salt_len); in PHP_FUNCTION()
1306 if (salt_len < SALT_SIZE) { in PHP_FUNCTION()
1307 memset(padded_salt + salt_len, 0, SALT_SIZE - salt_len); in PHP_FUNCTION()
[all …]
/php-src/ext/sodium/
H A Dlibsodium.c1423 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()
/php-src/ext/openssl/
H A Dopenssl.c5349 size_t salt_len; in PHP_FUNCTION() local
5358 &salt, &salt_len, in PHP_FUNCTION()
5365 PHP_OPENSSL_CHECK_SIZE_T_TO_INT(salt_len, salt, 2); in PHP_FUNCTION()
5387 …if (PKCS5_PBKDF2_HMAC(password, (int)password_len, (unsigned char *)salt, (int)salt_len, (int)iter… in PHP_FUNCTION()

Completed in 47 milliseconds