|
|
|
@ -15,6 +15,7 @@ hash_update($ctx, 'what do ya want for nothing?'); |
|
|
|
echo hash_final($ctx) . "\n"; |
|
|
|
|
|
|
|
echo hash_hmac('md5', str_repeat(chr(0xDD), 50), str_repeat(chr(0xAA), 16)) . "\n"; |
|
|
|
?> |
|
|
|
--EXPECT-- |
|
|
|
9294727a3638bb1c13f48ef8158bfc9d |
|
|
|
750c783e6ab0b503eaa86e310a5db738 |
|
|
|
@ -23,4 +24,4 @@ echo hash_hmac('md5', str_repeat(chr(0xDD), 50), str_repeat(chr(0xAA), 16)) . "\ |
|
|
|
9294727a3638bb1c13f48ef8158bfc9d |
|
|
|
750c783e6ab0b503eaa86e310a5db738 |
|
|
|
|
|
|
|
Warning: hash_hmac(): Binary or ASCII-Unicode string expected, non-ASCII-Unicode string received in %s/tests/hmac-md5.php on line %d |
|
|
|
Warning: hash_hmac(): Binary or ASCII-Unicode string expected, non-ASCII-Unicode string received in %shmac-md5.php on line %d |