Home
last modified time | relevance | path

Searched refs:hash_pbkdf2 (Results 1 – 5 of 5) sorted by relevance

/PHP-7.1/ext/hash/tests/
H A Dhash_pbkdf2_error.phpt2 Test hash_pbkdf2() function : error functionality
18 var_dump(@hash_pbkdf2());
20 var_dump(@hash_pbkdf2('crc32'));
22 var_dump(@hash_pbkdf2('crc32', $password));
24 var_dump(@hash_pbkdf2('crc32', $password, $salt));
32 var_dump(@hash_pbkdf2('foo', $password, $salt, 1));
36 var_dump(@hash_pbkdf2('md5', $password, $salt, 0));
38 var_dump(@hash_pbkdf2('md5', $password, $salt, -1));
48 *** Testing hash_pbkdf2() : error conditions ***
62 hash_pbkdf2() expects at most 6 parameters, 7 given
[all …]
H A Dhash_pbkdf2_basic.phpt2 Test hash_pbkdf2() function : basic functionality
14 echo "*** Testing hash_pbkdf2() : basic functionality ***\n";
16 echo "sha1: " . hash_pbkdf2('sha1', 'password', 'salt', 1, 20)."\n";
17 echo "sha1(no length): " . hash_pbkdf2('sha1', 'password', 'salt', 1)."\n";
18 echo "sha1(raw): " . bin2hex(hash_pbkdf2('sha1', 'password', 'salt', 1, 20, TRUE))."\n";
19 echo "sha1(rounds): " . hash_pbkdf2('sha1', 'passwordPASSWORDpassword', 'saltSALTsaltSALTsaltSALTsa…
21 echo "sha256: " . hash_pbkdf2('sha256', 'password', 'salt', 1, 20)."\n";
22 echo "sha256(no length): " . hash_pbkdf2('sha256', 'password', 'salt', 1)."\n";
23 echo "sha256(raw): " . bin2hex(hash_pbkdf2('sha256', 'password', 'salt', 1, 20, TRUE))."\n";
24 echo "sha256(rounds): " . hash_pbkdf2('sha256', 'passwordPASSWORDpassword', 'saltSALTsaltSALTsaltSA…
[all …]
H A Dbug64745.phpt2 Bug #64745 hash_pbkdf2() truncates data when using default length and hex output
7 $hash = hash_pbkdf2('sha1', 'password', 'salt', 1, 0);
8 $rawHash = hash_pbkdf2('sha1', 'password', 'salt', 1, 0, true);
/PHP-7.1/ext/hash/
H A Dphp_hash.h142 PHP_FUNCTION(hash_pbkdf2);
H A Dhash.c719 PHP_FUNCTION(hash_pbkdf2) in PHP_FUNCTION() argument
1378 PHP_FE(hash_pbkdf2, arginfo_hash_pbkdf2)

Completed in 10 milliseconds