Home
last modified time | relevance | path

Searched refs:hash_hmac (Results 1 – 6 of 6) sorted by relevance

/PHP-5.6/ext/hash/tests/
H A Dhash_hmac_error.phpt2 Test hash_hmac() function : basic functionality
12 echo "*** Testing hash_hmac() : error conditions ***\n";
18 var_dump(hash_hmac());
19 var_dump(hash_hmac('crc32'));
20 var_dump(hash_hmac('crc32', $data));
24 var_dump(hash_hmac('crc32', $data, $key, TRUE, $extra_arg));
26 echo "\n-- Testing hash_hmac() function with invalid hash algorithm --\n";
27 var_dump(hash_hmac('foo', $data, $key));
32 *** Testing hash_hmac() : error conditions ***
50 -- Testing hash_hmac() function with invalid hash algorithm --
[all …]
H A Dhash_hmac_basic.phpt14 echo "*** Testing hash_hmac() : basic functionality ***\n";
19 echo "adler32: " . hash_hmac('adler32', $content, $key) . "\n";
20 echo "crc32: " . hash_hmac('crc32', $content, $key) . "\n";
21 echo "gost: " . hash_hmac('gost', $content, $key) . "\n";
23 echo "md2: " . hash_hmac('md2', $content, $key) . "\n";
24 echo "md4: " . hash_hmac('md4', $content, $key) . "\n";
25 echo "md5: " . hash_hmac('md5', $content, $key) . "\n";
30 echo "sha1: " . hash_hmac('sha1', $content, $key) . "\n";
31 echo "sha256: " . hash_hmac('sha256', $content, $key) . "\n";
32 echo "sha384: " . hash_hmac('sha384', $content, $key) . "\n";
[all …]
H A Dhmac-md5.phpt16 echo hash_hmac('md5', str_repeat(chr(0xDD), 50), str_repeat(chr(0xAA), 16)) . "\n";
H A Dhash_pbkdf2_basic.phpt8 /* Prototype : string hash_hmac(string $algo, string $data, string $key [, int $length = 0 [, bool…
/PHP-5.6/ext/hash/
H A Dphp_hash.h130 PHP_FUNCTION(hash_hmac);
H A Dhash.c320 PHP_FUNCTION(hash_hmac) in PHP_FUNCTION() argument
1240 PHP_FE(hash_hmac, arginfo_hash_hmac)

Completed in 30 milliseconds