Home
last modified time | relevance | path

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

/php-src/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 Dsensitive_parameter.phpt11 var_dump(hash_hmac('foo', 'bar', 'baz'));
21 ValueError: hash_hmac(): Argument #1 ($algo) must be a valid cryptographic hashing algorithm in %s:…
23 #0 %s(%d): hash_hmac('foo', 'bar', Object(SensitiveParameterValue))
H A Dhmac-md5.phpt14 echo hash_hmac('md5', str_repeat(chr(0xDD), 50), str_repeat(chr(0xAA), 16)) . "\n";
/php-src/ext/hash/
H A Dhash.stub.php20 function hash_hmac(string $algo, string $data, #[\SensitiveParameter] string $key, bool $binary = f… function
H A Dhash_arginfo.h132 ZEND_FUNCTION(hash_hmac);
160 ZEND_FE(hash_hmac, arginfo_hash_hmac)
H A Dhash.c579 PHP_FUNCTION(hash_hmac) in PHP_FUNCTION() argument

Completed in 12 milliseconds