hmac-sha1.txt 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. test_case = 1
  2. key = 0x0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b
  3. key_len = 20
  4. data = "Hi There"
  5. data_len = 8
  6. digest = 0xb617318655057264e28bc0b6fb378c8ef146be00
  7. test_case = 2
  8. key = "Jefe"
  9. key_len = 4
  10. data = "what do ya want for nothing?"
  11. data_len = 28
  12. digest = 0xeffcdf6ae5eb2fa2d27416d5f184df9c259a7c79
  13. test_case = 3
  14. key = 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
  15. key_len = 20
  16. data = 0xdddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
  17. data_len = 50
  18. digest = 0x125d7342b9ac11cd91a39af48aa17b4f63f175d3
  19. test_case = 4
  20. key = 0x0102030405060708090a0b0c0d0e0f10111213141516171819
  21. key_len = 25
  22. data = 0xcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd
  23. data_len = 50
  24. digest = 0x4c9007f4026250c6bc8414f9bf50c86c2d7235da
  25. test_case = 5
  26. key = 0x0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c
  27. key_len = 20
  28. data = "Test With Truncation"
  29. data_len = 20
  30. digest = 0x4c1a03424b55e07fe7f27be1d58bb9324a9a5a04
  31. digest-96 = 0x4c1a03424b55e07fe7f27be1
  32. test_case = 6
  33. key = 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
  34. key_len = 80
  35. data = "Test Using Larger Than Block-Size Key - Hash Key First"
  36. data_len = 54
  37. digest = 0xaa4ae5e15272d00e95705637ce8a3b55ed402112
  38. test_case = 7
  39. key = 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
  40. key_len = 80
  41. data = "Test Using Larger Than Block-Size Key and Larger Than One Block-Size Data"
  42. data_len = 73
  43. digest = 0xe8e99d0f45237d786d6bbaa7965c7808bbff1a91