Home
last modified time | relevance | path

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

/PHP-5.6/ext/standard/
H A Dcrypt_sha256.c353 size_t salt_len; in php_sha256_crypt_r() local
383 salt_len = MIN(strcspn(salt, "$"), SALT_LEN_MAX); in php_sha256_crypt_r()
395 copied_salt[salt_len] = 0; in php_sha256_crypt_r()
407 sha256_process_bytes(salt, salt_len, &ctx); in php_sha256_crypt_r()
418 sha256_process_bytes(salt, salt_len, &alt_ctx); in php_sha256_crypt_r()
469 sha256_process_bytes(salt, salt_len, &alt_ctx); in php_sha256_crypt_r()
476 cp = s_bytes = alloca(salt_len); in php_sha256_crypt_r()
477 for (cnt = salt_len; cnt >= 32; cnt -= 32) { in php_sha256_crypt_r()
497 sha256_process_bytes(s_bytes, salt_len, &ctx); in php_sha256_crypt_r()
576 memset(s_bytes, '\0', salt_len); in php_sha256_crypt_r()
[all …]
H A Dcrypt_sha512.c386 size_t salt_len; in php_sha512_crypt_r() local
417 salt_len = MIN(strcspn(salt, "$"), SALT_LEN_MAX); in php_sha512_crypt_r()
429 copied_salt[salt_len] = 0; in php_sha512_crypt_r()
441 sha512_process_bytes(salt, salt_len, &ctx); in php_sha512_crypt_r()
452 sha512_process_bytes(salt, salt_len, &alt_ctx); in php_sha512_crypt_r()
504 sha512_process_bytes(salt, salt_len, &alt_ctx); in php_sha512_crypt_r()
511 cp = s_bytes = alloca(salt_len); in php_sha512_crypt_r()
512 for (cnt = salt_len; cnt >= 64; cnt -= 64) { in php_sha512_crypt_r()
532 sha512_process_bytes(s_bytes, salt_len, &ctx); in php_sha512_crypt_r()
624 memset(s_bytes, '\0', salt_len); in php_sha512_crypt_r()
[all …]
H A Dpassword.c313 size_t salt_len = 0, required_salt_len = 0, hash_format_len; in PHP_FUNCTION() local
409 salt_len = required_salt_len; in PHP_FUNCTION()
413 salt_len = required_salt_len; in PHP_FUNCTION()
424 salt_len = required_salt_len; in PHP_FUNCTION()
427 salt[salt_len] = 0; in PHP_FUNCTION()
429 hash = safe_emalloc(salt_len + hash_format_len, 1, 1); in PHP_FUNCTION()
431 hash[hash_format_len + salt_len] = 0; in PHP_FUNCTION()
436 hash_len = (int) (hash_format_len + salt_len); in PHP_FUNCTION()
H A Dphp_crypt.h26 PHPAPI int php_crypt(const char *password, const int pass_len, const char *salt, int salt_len, char…
H A Dcrypt.c148 PHPAPI int php_crypt(const char *password, const int pass_len, const char *salt, int salt_len, char… in php_crypt() argument
/PHP-5.6/ext/hash/
H A Dhash.c620 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()
937 int password_len, salt_len; in PHP_FUNCTION() local
950 salt_len = MIN(salt_len, SALT_SIZE); in PHP_FUNCTION()
952 memcpy(padded_salt, salt, salt_len); in PHP_FUNCTION()
953 if (salt_len < SALT_SIZE) { in PHP_FUNCTION()
954 memset(padded_salt + salt_len, 0, SALT_SIZE - salt_len); in PHP_FUNCTION()
[all …]
/PHP-5.6/ext/openssl/
H A Dopenssl.c4048 char *salt; int salt_len; in PHP_FUNCTION() local
4056 &salt, &salt_len, in PHP_FUNCTION()
4080 …if (PKCS5_PBKDF2_HMAC(password, password_len, (unsigned char *)salt, salt_len, iterations, digest,… in PHP_FUNCTION()

Completed in 33 milliseconds