Searched refs:hash_pbkdf2 (Results 1 – 6 of 6) sorted by relevance
/php-src/ext/hash/tests/ |
H A D | hash_pbkdf2_error.phpt | 2 Hash: Test hash_pbkdf2() function : error functionality 9 echo "*** Testing hash_pbkdf2() : error conditions ***\n"; 16 var_dump(hash_pbkdf2('foo', $password, $salt, 1)); 25 var_dump(hash_pbkdf2('crc32', $password, $salt, 1)); 33 var_dump(hash_pbkdf2('md5', $password, $salt, 0)); 40 var_dump(hash_pbkdf2('md5', $password, $salt, -1)); 48 var_dump(hash_pbkdf2('md5', $password, $salt, 1, -1)); 56 *** Testing hash_pbkdf2() : error conditions *** 64 -- Testing hash_pbkdf2() function with invalid iterations -- 65 hash_pbkdf2(): Argument #4 ($iterations) must be greater than 0 [all …]
|
H A D | hash_pbkdf2_basic.phpt | 2 Hash: hash_pbkdf2() function : basic functionality 6 echo "*** Testing hash_pbkdf2() : basic functionality ***\n"; 8 echo "sha1: " . hash_pbkdf2('sha1', 'password', 'salt', 1, 20)."\n"; 9 echo "sha1(no length): " . hash_pbkdf2('sha1', 'password', 'salt', 1)."\n"; 10 echo "sha1(raw): " . bin2hex(hash_pbkdf2('sha1', 'password', 'salt', 1, 20, TRUE))."\n"; 11 echo "sha1(rounds): " . hash_pbkdf2('sha1', 'passwordPASSWORDpassword', 'saltSALTsaltSALTsaltSALTsa… 13 echo "sha256: " . hash_pbkdf2('sha256', 'password', 'salt', 1, 20)."\n"; 14 echo "sha256(no length): " . hash_pbkdf2('sha256', 'password', 'salt', 1)."\n"; 15 echo "sha256(raw): " . bin2hex(hash_pbkdf2('sha256', 'password', 'salt', 1, 20, TRUE))."\n"; 16 echo "sha256(rounds): " . hash_pbkdf2('sha256', 'passwordPASSWORDpassword', 'saltSALTsaltSALTsaltSA… [all …]
|
H A D | bug64745.phpt | 2 Bug #64745 (hash_pbkdf2() truncates data when using default length and hex output) 5 $hash = hash_pbkdf2('sha1', 'password', 'salt', 1, 0); 6 $rawHash = hash_pbkdf2('sha1', 'password', 'salt', 1, 0, true);
|
/php-src/ext/hash/ |
H A D | hash.stub.php | 63 function hash_pbkdf2(string $algo, #[\SensitiveParameter] string $password, string $salt, int $iter…
|
H A D | hash_arginfo.h | 142 ZEND_FUNCTION(hash_pbkdf2); 170 ZEND_FE(hash_pbkdf2, arginfo_hash_pbkdf2)
|
H A D | hash.c | 989 PHP_FUNCTION(hash_pbkdf2) in PHP_FUNCTION() argument
|
Completed in 16 milliseconds