Lines Matching refs:hash_pbkdf2
2 Hash: Test hash_pbkdf2() function : error functionality
9 echo "*** Testing hash_pbkdf2() : error conditions ***\n";
14 echo "\n-- Testing hash_pbkdf2() function with invalid hash algorithm --\n";
16 var_dump(hash_pbkdf2('foo', $password, $salt, 1));
23 echo "\n-- Testing hash_pbkdf2() function with non-cryptographic hash algorithm --\n";
25 var_dump(hash_pbkdf2('crc32', $password, $salt, 1));
31 echo "\n-- Testing hash_pbkdf2() function with invalid iterations --\n";
33 var_dump(hash_pbkdf2('md5', $password, $salt, 0));
40 var_dump(hash_pbkdf2('md5', $password, $salt, -1));
46 echo "\n-- Testing hash_pbkdf2() function with invalid length --\n";
48 var_dump(hash_pbkdf2('md5', $password, $salt, 1, -1));
56 *** Testing hash_pbkdf2() : error conditions ***
58 -- Testing hash_pbkdf2() function with invalid hash algorithm --
59 hash_pbkdf2(): Argument #1 ($algo) must be a valid cryptographic hashing algorithm
61 -- Testing hash_pbkdf2() function with non-cryptographic hash algorithm --
62 hash_pbkdf2(): Argument #1 ($algo) must be a valid cryptographic hashing algorithm
64 -- Testing hash_pbkdf2() function with invalid iterations --
65 hash_pbkdf2(): Argument #4 ($iterations) must be greater than 0
66 hash_pbkdf2(): Argument #4 ($iterations) must be greater than 0
68 -- Testing hash_pbkdf2() function with invalid length --
69 hash_pbkdf2(): Argument #5 ($length) must be greater than or equal to 0