Lines Matching refs:hash_hmac
2 Hash: hash_hmac() function : basic functionality
9 echo "*** Testing hash_hmac() : error conditions ***\n";
11 $data = "This is a sample string used to test the hash_hmac function with various hashing algorithm…
14 echo "\n-- Testing hash_hmac() function with invalid hash algorithm --\n";
16 var_dump(hash_hmac('foo', $data, $key));
22 echo "\n-- Testing hash_hmac() function with non-cryptographic hash algorithm --\n";
24 var_dump(hash_hmac('crc32', $data, $key));
32 *** Testing hash_hmac() : error conditions ***
34 -- Testing hash_hmac() function with invalid hash algorithm --
35 hash_hmac(): Argument #1 ($algo) must be a valid cryptographic hashing algorithm
37 -- Testing hash_hmac() function with non-cryptographic hash algorithm --
38 hash_hmac(): Argument #1 ($algo) must be a valid cryptographic hashing algorithm