• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Test Cases for HMAC-SHA256
2
3Len = 64
4Key = 0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b
5# "Hi There"
6Msg = 4869205468657265
7MD = b0344c61d8db38535ca8afceaf0bf12b881dc200c9833da726e9376c2e32cff7
8
9Len = 224
10# "Jefe"
11Key = 4a656665
12# "what do ya want for nothing?"
13Msg = 7768617420646f2079612077616e7420666f72206e6f7468696e673f
14MD = 5bdcc146bf60754e6a042426089575c75a003f089d2739839dec58b964ec3843
15
16Len = 400
17Key = aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
18Msg = dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
19MD = 773ea91e36800e46854db8ebd09181a72959098b3ef8c122d9635514ced565fe
20
21Len = 400
22Key = 0102030405060708090a0b0c0d0e0f10111213141516171819
23Msg = cdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd
24MD = 82558a389a443c0ea4cc819899f2083a85f0faa3e578f8077a2e3ff46729665b
25
26# truncation test from RFC not added
27
28Len = 432
29Key = aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
30# "Test Using Larger Than Block-Size Key - Hash Key First"
31Msg = 54657374205573696e67204c6172676572205468616e20426c6f636b2d53697a65204b6579202d2048617368204b6579204669727374
32MD = 60e431591ee0b67f0d8a26aacbf5b77f8e0bc6213728c5140546040f0ee37f54
33
34Len = 1216
35Key = aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
36# "Test Using Larger Than Block-Size Key and Larger Than One Block-Size Data"
37Msg = 5468697320697320612074657374207573696e672061206c6172676572207468616e20626c6f636b2d73697a65206b657920616e642061206c6172676572207468616e20626c6f636b2d73697a6520646174612e20546865206b6579206e6565647320746f20626520686173686564206265666f7265206265696e6720757365642062792074686520484d414320616c676f726974686d2e
38MD = 9b09ffa71b942fcb27635fbcd5b0e944bfdc63644f0713938a7f51535c3a35e2
39