Lines Matching refs:hash_hmac_file
2 Test hash_hmac_file() function : basic functionality
9 /* Prototype : string hash_hmac_file ( string algo, string filename, string key [, bool raw_output…
15 echo "*** Testing hash_hmac_file() : basic functionality ***\n";
17 $file = dirname(__FILE__) . "hash_hmac_file.txt";
25 $content = "This is a sample string used to test the hash_hmac_file function with various hashing a…
39 echo "gost: " . hash_hmac_file('gost', $file, $key) . "\n";
40 echo "haval128,3: " . hash_hmac_file('haval128,3', $file, $key) . "\n";
41 echo "md2: " . hash_hmac_file('md2', $file, $key) . "\n";
42 echo "md4: " . hash_hmac_file('md4', $file, $key) . "\n";
43 echo "md5: " . hash_hmac_file('md5', $file, $key) . "\n";
44 echo "ripemd128: " . hash_hmac_file('ripemd128', $file, $key) . "\n";
45 echo "ripemd160: " . hash_hmac_file('ripemd160', $file, $key) . "\n";
46 echo "ripemd256: " . hash_hmac_file('ripemd256', $file, $key) . "\n";
47 echo "ripemd320: " . hash_hmac_file('ripemd320', $file, $key) . "\n";
48 echo "sha1: " . hash_hmac_file('sha1', $file, $key) . "\n";
49 echo "sha256: " . hash_hmac_file('sha256', $file, $key) . "\n";
50 echo "sha384: " . hash_hmac_file('sha384', $file, $key) . "\n";
51 echo "sha512: " . hash_hmac_file('sha512', $file, $key) . "\n";
52 echo "snefru: " . hash_hmac_file('snefru', $file, $key) . "\n";
53 echo "tiger192,3: " . hash_hmac_file('tiger192,3', $file, $key) . "\n";
54 echo "whirlpool: " . hash_hmac_file('whirlpool', $file, $key) . "\n";
56 echo "md5(raw): " . bin2hex(hash_hmac_file('md5', $file, $key, TRUE)). "\n";
57 echo "sha256(raw): " . bin2hex(hash_hmac_file('sha256', $file, $key, TRUE)). "\n";
60 hash_hmac_file();
61 hash_hmac_file('foo', $file);
62 hash_hmac_file('foo', $file, $key, TRUE, 10);
69 *** Testing hash_hmac_file() : basic functionality ***
90 Warning: hash_hmac_file() expects at least 3 parameters, 0 given in %s on line %d
92 Warning: hash_hmac_file() expects at least 3 parameters, 2 given in %s on line %d
94 Warning: hash_hmac_file() expects at most 4 parameters, 5 given in %s on line %d