Lines Matching refs:hash_hmac_file

2 Hash: hash_hmac_file() function : basic functionality
6 /* Prototype : string hash_hmac_file ( string algo, string filename, string key [, bool raw_output…
17 echo "\n-- Testing hash_hmac_file() function with less than expected no. of arguments --\n";
18 var_dump(hash_hmac_file());
19 var_dump(hash_hmac_file('crc32'));
20 var_dump(hash_hmac_file('crc32', $file));
22 echo "\n-- Testing hash_hmac_file() function with more than expected no. of arguments --\n";
24 hash_hmac_file('crc32', $file, $key, TRUE, $extra_arg);
26 echo "\n-- Testing hash_hmac_file() function with invalid hash algorithm --\n";
27 hash_hmac_file('foo', $file, $key, TRUE);
29 echo "\n-- Testing hash_hmac_file() function with non-cryptographic hash algorithm --\n";
30 hash_hmac_file('crc32', $file, $key, TRUE);
32 echo "\n-- Testing hash_hmac_file() function with bad path --\n";
33 hash_hmac_file('md5', $file.chr(0).$file, $key, TRUE);
40 -- Testing hash_hmac_file() function with less than expected no. of arguments --
42 Warning: hash_hmac_file() expects at least 3 parameters, 0 given in %s on line %d
45 Warning: hash_hmac_file() expects at least 3 parameters, 1 given in %s on line %d
48 Warning: hash_hmac_file() expects at least 3 parameters, 2 given in %s on line %d
51 -- Testing hash_hmac_file() function with more than expected no. of arguments --
53 Warning: hash_hmac_file() expects at most 4 parameters, 5 given in %s on line %d
55 -- Testing hash_hmac_file() function with invalid hash algorithm --
57 Warning: hash_hmac_file(): Unknown hashing algorithm: foo in %s on line %d
59 -- Testing hash_hmac_file() function with non-cryptographic hash algorithm --
61 Warning: hash_hmac_file(): Non-cryptographic hashing algorithm: crc32 in %s on line %d
63 -- Testing hash_hmac_file() function with bad path --
65 Warning: hash_hmac_file(): Invalid path in %s on line %d