Home
last modified time | relevance | path

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

/PHP-8.0/ext/hash/tests/
H A Dhash_hmac_basic.phpt6 echo "*** Testing hash_hmac() : basic functionality ***\n";
11 echo "gost: " . hash_hmac('gost', $content, $key) . "\n";
13 echo "md2: " . hash_hmac('md2', $content, $key) . "\n";
14 echo "md4: " . hash_hmac('md4', $content, $key) . "\n";
15 echo "md5: " . hash_hmac('md5', $content, $key) . "\n";
20 echo "sha1: " . hash_hmac('sha1', $content, $key) . "\n";
21 echo "sha256: " . hash_hmac('sha256', $content, $key) . "\n";
22 echo "sha384: " . hash_hmac('sha384', $content, $key) . "\n";
23 echo "sha512: " . hash_hmac('sha512', $content, $key) . "\n";
24 echo "snefru: " . hash_hmac('snefru', $content, $key) . "\n";
[all …]
H A Dhash_hmac_error.phpt2 Hash: hash_hmac() function : basic functionality
9 echo "*** Testing hash_hmac() : error conditions ***\n";
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 --
[all …]
H A Dhmac-md5.phpt14 echo hash_hmac('md5', str_repeat(chr(0xDD), 50), str_repeat(chr(0xAA), 16)) . "\n";
/PHP-8.0/ext/hash/
H A Dhash_arginfo.h135 ZEND_FUNCTION(hash_hmac);
171 ZEND_FE(hash_hmac, arginfo_hash_hmac)
H A Dhash.stub.php9 function hash_hmac(string $algo, string $data, string $key, bool $binary = false): string {} function
H A Dhash.c568 PHP_FUNCTION(hash_hmac) in PHP_FUNCTION() argument
/PHP-8.0/
H A DNEWS469 . Fixed bug GH-7759 (Incorrect return types for hash() and hash_hmac()).

Completed in 18 milliseconds