Searched refs:salt_len (Results 1 – 7 of 7) sorted by relevance
/PHP-5.5/ext/standard/ |
H A D | crypt_sha256.c | 359 size_t salt_len; in php_sha256_crypt_r() local 389 salt_len = MIN(strcspn(salt, "$"), SALT_LEN_MAX); in php_sha256_crypt_r() 401 copied_salt[salt_len] = 0; in php_sha256_crypt_r() 413 sha256_process_bytes(salt, salt_len, &ctx); in php_sha256_crypt_r() 424 sha256_process_bytes(salt, salt_len, &alt_ctx); in php_sha256_crypt_r() 475 sha256_process_bytes(salt, salt_len, &alt_ctx); in php_sha256_crypt_r() 482 cp = s_bytes = alloca(salt_len); in php_sha256_crypt_r() 483 for (cnt = salt_len; cnt >= 32; cnt -= 32) { in php_sha256_crypt_r() 503 sha256_process_bytes(s_bytes, salt_len, &ctx); in php_sha256_crypt_r() 582 memset(s_bytes, '\0', salt_len); in php_sha256_crypt_r() [all …]
|
H A D | crypt_sha512.c | 392 size_t salt_len; in php_sha512_crypt_r() local 423 salt_len = MIN(strcspn(salt, "$"), SALT_LEN_MAX); in php_sha512_crypt_r() 435 copied_salt[salt_len] = 0; in php_sha512_crypt_r() 447 sha512_process_bytes(salt, salt_len, &ctx); in php_sha512_crypt_r() 458 sha512_process_bytes(salt, salt_len, &alt_ctx); in php_sha512_crypt_r() 510 sha512_process_bytes(salt, salt_len, &alt_ctx); in php_sha512_crypt_r() 517 cp = s_bytes = alloca(salt_len); in php_sha512_crypt_r() 518 for (cnt = salt_len; cnt >= 64; cnt -= 64) { in php_sha512_crypt_r() 538 sha512_process_bytes(s_bytes, salt_len, &ctx); in php_sha512_crypt_r() 630 memset(s_bytes, '\0', salt_len); in php_sha512_crypt_r() [all …]
|
H A D | password.c | 313 size_t salt_len = 0, required_salt_len = 0, hash_format_len; in PHP_FUNCTION() local 407 salt_len = required_salt_len; in PHP_FUNCTION() 411 salt_len = required_salt_len; in PHP_FUNCTION() 421 salt_len = required_salt_len; in PHP_FUNCTION() 424 salt[salt_len] = 0; in PHP_FUNCTION() 426 hash = safe_emalloc(salt_len + hash_format_len, 1, 1); in PHP_FUNCTION() 428 hash[hash_format_len + salt_len] = 0; in PHP_FUNCTION() 434 hash_len = (int) (hash_format_len + salt_len); in PHP_FUNCTION()
|
H A D | php_crypt.h | 26 PHPAPI int php_crypt(const char *password, const int pass_len, const char *salt, int salt_len, char…
|
H A D | crypt.c | 148 PHPAPI int php_crypt(const char *password, const int pass_len, const char *salt, int salt_len, char… in php_crypt() argument
|
/PHP-5.5/ext/hash/ |
H A D | hash.c | 620 int algo_len, pass_len, salt_len; in PHP_FUNCTION() local 645 if (salt_len > INT_MAX - 4) { in PHP_FUNCTION() 679 computed_salt = safe_emalloc(salt_len, 1, 4); in PHP_FUNCTION() 686 computed_salt[salt_len] = (unsigned char) (i >> 24); in PHP_FUNCTION() 716 memset(computed_salt, 0, salt_len + 4); in PHP_FUNCTION() 897 int password_len, salt_len; in PHP_FUNCTION() local 910 salt_len = MIN(salt_len, SALT_SIZE); in PHP_FUNCTION() 912 memcpy(padded_salt, salt, salt_len); in PHP_FUNCTION() 913 if (salt_len < SALT_SIZE) { in PHP_FUNCTION() 914 memset(padded_salt + salt_len, 0, SALT_SIZE - salt_len); in PHP_FUNCTION() [all …]
|
/PHP-5.5/ext/openssl/ |
H A D | openssl.c | 3483 char *salt; int salt_len; in PHP_FUNCTION() local 3491 &salt, &salt_len, in PHP_FUNCTION() 3515 …if (PKCS5_PBKDF2_HMAC(password, password_len, (unsigned char *)salt, salt_len, iterations, digest,… in PHP_FUNCTION()
|
Completed in 105 milliseconds