diff -r f18401adf8e1 -r 641f389e9157 crypto/weakcrypto/test/thash/testdata/hmacsha256.dat --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/crypto/weakcrypto/test/thash/testdata/hmacsha256.dat Tue Aug 31 17:00:08 2010 +0300 @@ -0,0 +1,20 @@ ++M HMAC-SHA256 tests ++C This file contains test vectors for the HMAC-SHA256 algorithm taken from RFC4231... ++M Test Case 1 +4869205468657265 0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B B0344C61D8DB38535CA8AFCEAF0BF12B881DC200C9833DA726E9376C2E32CFF7 ++M Test Case 2 ++C Test with a key shorter than the length of the HMAC output +7768617420646F2079612077616E7420666F72206E6F7468696E673F 4A656665 5BDCC146BF60754E6A042426089575C75A003F089D2739839DEC58B964EC3843 ++M Test Case 3 ++C Test with a combined length of key and data that is larger than 64 bytes (= block-size of SHA-224 and SHA-256). +DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 773EA91E36800E46854DB8EBD09181A72959098B3EF8C122D9635514CED565FE ++M Test Case 4 ++C Test with a combined length of key and data that is larger than 64 bytes (= block-size of SHA-224 and SHA-256). +CDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCD 0102030405060708090A0B0C0D0E0F10111213141516171819 82558A389A443C0EA4CC819899F2083A85F0FAA3E578F8077A2E3FF46729665B ++M Test Case 6 ++C Test with a key larger than 128 bytes (= block-size of SHA-384 and SHA-512) +54657374205573696E67204C6172676572205468616E20426C6F636B2D53697A65204B6579202D2048617368204B6579204669727374 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 60E431591EE0B67F0D8A26AACBF5B77F8E0BC6213728C5140546040F0EE37F54 ++M Test Case 7 ++C Test with a key and data that is larger than 128 bytes (= block-size of SHA-384 and SHA-512). +5468697320697320612074657374207573696E672061206C6172676572207468616E20626C6F636B2D73697A65206B657920616E642061206C6172676572207468616E20626C6F636B2D73697A6520646174612E20546865206B6579206E6565647320746F20626520686173686564206265666F7265206265696E6720757365642062792074686520484D414320616C676F726974686D2E AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 9B09FFA71B942FCB27635FBCD5B0E944BFDC63644F0713938A7F51535C3A35E2 +