Lines Matching refs:salt
310 char *hash_format, *hash, *salt, *password, *result; in PHP_FUNCTION() local
399 salt = safe_emalloc(required_salt_len, 1, 1); in PHP_FUNCTION()
400 if (php_password_salt_to64(buffer, buffer_len, required_salt_len, salt) == FAILURE) { in PHP_FUNCTION()
403 efree(salt); in PHP_FUNCTION()
409 salt = safe_emalloc(required_salt_len, 1, 1); in PHP_FUNCTION()
410 memcpy(salt, buffer, (int) required_salt_len); in PHP_FUNCTION()
415 salt = safe_emalloc(required_salt_len, 1, 1); in PHP_FUNCTION()
416 if (php_password_make_salt(required_salt_len, salt TSRMLS_CC) == FAILURE) { in PHP_FUNCTION()
418 efree(salt); in PHP_FUNCTION()
424 salt[salt_len] = 0; in PHP_FUNCTION()
427 sprintf(hash, "%s%s", hash_format, salt); in PHP_FUNCTION()
431 efree(salt); in PHP_FUNCTION()