2
0

evpmac_sm3.txt 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #
  2. # Copyright 2022-2022 The OpenSSL Project Authors. All Rights Reserved.
  3. #
  4. # Licensed under the Apache License 2.0 (the "License"). You may not use
  5. # this file except in compliance with the License. You can obtain a copy
  6. # in the file LICENSE in the source distribution or at
  7. # https://www.openssl.org/source/license.html
  8. # Tests start with one of these keywords
  9. # Cipher Decrypt Derive Digest Encoding MAC
  10. # and continue until a blank line. Lines starting with a pound sign are ignored.
  11. # The keyword Availablein must appear before the test name if needed.
  12. Title = HMAC-SM3 from GM/T 0042-2015 Appendix D.3
  13. MAC = HMAC
  14. Algorithm = SM3
  15. Input = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopqabcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"
  16. Key = 0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f20
  17. Output = ca05e144ed05d1857840d1f318a4a8669e559fc8391f414485bfdf7bb408963a
  18. MAC = HMAC
  19. Algorithm = SM3
  20. Input = cdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd
  21. Key = 0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425
  22. Output = 220bf579ded555393f0159f66c99877822a3ecf610d1552154b41d44b94db3ae
  23. MAC = HMAC
  24. Algorithm = SM3
  25. Input = "Hi There"
  26. Key = 0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b
  27. Output = c0ba18c68b90c88bc07de794bfc7d2c8d19ec31ed8773bc2b390c9604e0be11e
  28. MAC = HMAC
  29. Algorithm = SM3
  30. Input = "what do ya want for nothing?"
  31. Key = "Jefe"
  32. Output = 2e87f1d16862e6d964b50a5200bf2b10b764faa9680a296a2405f24bec39f882