evpmac_common.txt 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512
  1. #
  2. # Copyright 2001-2021 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 KDF MAC PBE
  10. # PrivPubKeyPair Sign Verify VerifyRecover
  11. # and continue until a blank line. Lines starting with a pound sign are ignored.
  12. # The keyword Availablein must appear before the test name if needed.
  13. Title = HMAC tests (from RFC2104 and others)
  14. Availablein = default
  15. MAC = HMAC
  16. Algorithm = MD5
  17. Key = 0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b
  18. Input = "Hi There"
  19. Output = 9294727a3638bb1c13f48ef8158bfc9d
  20. OutputSize = 16
  21. BlockSize = 64
  22. Availablein = default
  23. MAC = HMAC
  24. Algorithm = MD5
  25. Key = "Jefe"
  26. Input = "what do ya want for nothing?"
  27. Output = 750c783e6ab0b503eaa86e310a5db738
  28. OutputSize = 16
  29. Availablein = default
  30. MAC = HMAC
  31. Algorithm = MD5
  32. Key = AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  33. Input = DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
  34. Output = 56be34521d144c88dbb8c733f0e8b3f6
  35. BlockSize = 64
  36. Title = SHA1
  37. # HMAC tests from NIST test data
  38. MAC = HMAC
  39. Algorithm = SHA1
  40. Input = "Sample message for keylen=blocklen"
  41. Key = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F
  42. Output = 5FD596EE78D5553C8FF4E72D266DFD192366DA29
  43. OutputSize = 20
  44. BlockSize = 64
  45. MAC = HMAC
  46. Algorithm = SHA1
  47. Input = "Sample message for keylen<blocklen"
  48. Key = 000102030405060708090A0B0C0D0E0F10111213
  49. Output = 4C99FF0CB1B31BD33F8431DBAF4D17FCD356A807
  50. OutputSize = 20
  51. MAC = HMAC
  52. Algorithm = SHA1
  53. Input = "Sample message for keylen=blocklen"
  54. Key = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F60616263
  55. Output = 2D51B2F7750E410584662E38F133435F4C4FD42A
  56. BlockSize = 64
  57. Title = SHA2
  58. MAC = HMAC
  59. Algorithm = SHA224
  60. Input = "Sample message for keylen=blocklen"
  61. Key = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F
  62. Output = C7405E3AE058E8CD30B08B4140248581ED174CB34E1224BCC1EFC81B
  63. OutputSize = 28
  64. BlockSize = 64
  65. MAC = HMAC
  66. Algorithm = SHA224
  67. Input = "Sample message for keylen<blocklen"
  68. Key = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B
  69. Output = E3D249A8CFB67EF8B7A169E9A0A599714A2CECBA65999A51BEB8FBBE
  70. MAC = HMAC
  71. Algorithm = SHA224
  72. Input = "Sample message for keylen=blocklen"
  73. Key = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F60616263
  74. Output = 91C52509E5AF8531601AE6230099D90BEF88AAEFB961F4080ABC014D
  75. MAC = HMAC
  76. Algorithm = SHA256
  77. Input = "Sample message for keylen=blocklen"
  78. Key = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F
  79. Output = 8BB9A1DB9806F20DF7F77B82138C7914D174D59E13DC4D0169C9057B133E1D62
  80. OutputSize = 32
  81. BlockSize = 64
  82. MAC = HMAC
  83. Algorithm = SHA256
  84. Input = "Sample message for keylen<blocklen"
  85. Key = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F
  86. Output = A28CF43130EE696A98F14A37678B56BCFCBDD9E5CF69717FECF5480F0EBDF790
  87. MAC = HMAC
  88. Algorithm = SHA256
  89. Input = "Sample message for keylen=blocklen"
  90. Key = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F60616263
  91. Output = BDCCB6C72DDEADB500AE768386CB38CC41C63DBB0878DDB9C7A38A431B78378D
  92. MAC = HMAC
  93. Algorithm = SHA384
  94. Input = "Sample message for keylen=blocklen"
  95. Key = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F
  96. Output = 63C5DAA5E651847CA897C95814AB830BEDEDC7D25E83EEF9195CD45857A37F448947858F5AF50CC2B1B730DDF29671A9
  97. OutputSize = 48
  98. BlockSize = 128
  99. MAC = HMAC
  100. Algorithm = SHA384
  101. Input = "Sample message for keylen<blocklen"
  102. Key = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F
  103. Output = 6EB242BDBB582CA17BEBFA481B1E23211464D2B7F8C20B9FF2201637B93646AF5AE9AC316E98DB45D9CAE773675EEED0
  104. MAC = HMAC
  105. Algorithm = SHA384
  106. Input = "Sample message for keylen=blocklen"
  107. Key = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7
  108. Output = 5B664436DF69B0CA22551231A3F0A3D5B4F97991713CFA84BFF4D0792EFF96C27DCCBBB6F79B65D548B40E8564CEF594
  109. MAC = HMAC
  110. Algorithm = SHA512
  111. Input = "Sample message for keylen=blocklen"
  112. Key = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F
  113. Output = FC25E240658CA785B7A811A8D3F7B4CA48CFA26A8A366BF2CD1F836B05FCB024BD36853081811D6CEA4216EBAD79DA1CFCB95EA4586B8A0CE356596A55FB1347
  114. OutputSize = 64
  115. BlockSize = 128
  116. MAC = HMAC
  117. Algorithm = SHA512
  118. Input = "Sample message for keylen<blocklen"
  119. Key = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F
  120. Output = FD44C18BDA0BB0A6CE0E82B031BF2818F6539BD56EC00BDC10A8A2D730B3634DE2545D639B0F2CF710D0692C72A1896F1F211C2B922D1A96C392E07E7EA9FEDC
  121. MAC = HMAC
  122. Algorithm = SHA512
  123. Input = "Sample message for keylen=blocklen"
  124. Key = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7
  125. Output = D93EC8D2DE1AD2A9957CB9B83F14E76AD6B5E0CCE285079A127D3B14BCCB7AA7286D4AC0D4CE64215F2BC9E6870B33D97438BE4AAA20CDA5C5A912B48B8E27F3
  126. Title = SHA3
  127. # NIST's test vectors
  128. MAC = HMAC
  129. Algorithm = SHA3-224
  130. Input = "Sample message for keylen<blocklen"
  131. Key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b
  132. Output = 332cfd59347fdb8e576e77260be4aba2d6dc53117b3bfb52c6d18c04
  133. OutputSize = 28
  134. BlockSize = 144
  135. MAC = HMAC
  136. Algorithm = SHA3-224
  137. Input = "Sample message for keylen=blocklen"
  138. Key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f404142434445464748494a4b4c4d4e4f505152535455565758595a5b5c5d5e5f606162636465666768696a6b6c6d6e6f707172737475767778797a7b7c7d7e7f808182838485868788898a8b8c8d8e8f
  139. Output = d8b733bcf66c644a12323d564e24dcf3fc75f231f3b67968359100c7
  140. MAC = HMAC
  141. Algorithm = SHA3-224
  142. Input = "Sample message for keylen>blocklen"
  143. Key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f404142434445464748494a4b4c4d4e4f505152535455565758595a5b5c5d5e5f606162636465666768696a6b6c6d6e6f707172737475767778797a7b7c7d7e7f808182838485868788898a8b8c8d8e8f909192939495969798999a9b9c9d9e9fa0a1a2a3a4a5a6a7a8a9aaab
  144. Output = 078695eecc227c636ad31d063a15dd05a7e819a66ec6d8de1e193e59
  145. MAC = HMAC
  146. Algorithm = SHA3-256
  147. Input = "Sample message for keylen<blocklen"
  148. Key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f
  149. Output = 4fe8e202c4f058e8dddc23d8c34e467343e23555e24fc2f025d598f558f67205
  150. OutputSize = 32
  151. BlockSize = 136
  152. MAC = HMAC
  153. Algorithm = SHA3-256
  154. Input = "Sample message for keylen=blocklen"
  155. Key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f404142434445464748494a4b4c4d4e4f505152535455565758595a5b5c5d5e5f606162636465666768696a6b6c6d6e6f707172737475767778797a7b7c7d7e7f8081828384858687
  156. Output = 68b94e2e538a9be4103bebb5aa016d47961d4d1aa906061313b557f8af2c3faa
  157. MAC = HMAC
  158. Algorithm = SHA3-256
  159. Input = "Sample message for keylen>blocklen"
  160. Key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f404142434445464748494a4b4c4d4e4f505152535455565758595a5b5c5d5e5f606162636465666768696a6b6c6d6e6f707172737475767778797a7b7c7d7e7f808182838485868788898a8b8c8d8e8f909192939495969798999a9b9c9d9e9fa0a1a2a3a4a5a6a7
  161. Output = 9bcf2c238e235c3ce88404e813bd2f3a97185ac6f238c63d6229a00b07974258
  162. MAC = HMAC
  163. Algorithm = SHA3-384
  164. Input = "Sample message for keylen<blocklen"
  165. Key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f
  166. Output = d588a3c51f3f2d906e8298c1199aa8ff6296218127f6b38a90b6afe2c5617725bc99987f79b22a557b6520db710b7f42
  167. OutputSize = 48
  168. BlockSize = 104
  169. MAC = HMAC
  170. Algorithm = SHA3-384
  171. Input = "Sample message for keylen=blocklen"
  172. Key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f404142434445464748494a4b4c4d4e4f505152535455565758595a5b5c5d5e5f6061626364656667
  173. Output = a27d24b592e8c8cbf6d4ce6fc5bf62d8fc98bf2d486640d9eb8099e24047837f5f3bffbe92dcce90b4ed5b1e7e44fa90
  174. MAC = HMAC
  175. Algorithm = SHA3-384
  176. Input = "Sample message for keylen>blocklen"
  177. Key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f404142434445464748494a4b4c4d4e4f505152535455565758595a5b5c5d5e5f606162636465666768696a6b6c6d6e6f707172737475767778797a7b7c7d7e7f808182838485868788898a8b8c8d8e8f9091929394959697
  178. Output = e5ae4c739f455279368ebf36d4f5354c95aa184c899d3870e460ebc288ef1f9470053f73f7c6da2a71bcaec38ce7d6ac
  179. MAC = HMAC
  180. Algorithm = SHA3-512
  181. Input = "Sample message for keylen<blocklen"
  182. Key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f
  183. Output = 4efd629d6c71bf86162658f29943b1c308ce27cdfa6db0d9c3ce81763f9cbce5f7ebe9868031db1a8f8eb7b6b95e5c5e3f657a8996c86a2f6527e307f0213196
  184. OutputSize = 64
  185. BlockSize = 72
  186. MAC = HMAC
  187. Algorithm = SHA3-512
  188. Input = "Sample message for keylen=blocklen"
  189. Key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f4041424344454647
  190. Output = 544e257ea2a3e5ea19a590e6a24b724ce6327757723fe2751b75bf007d80f6b360744bf1b7a88ea585f9765b47911976d3191cf83c039f5ffab0d29cc9d9b6da
  191. MAC = HMAC by EVP_PKEY
  192. Algorithm = SHA3-512
  193. Input = "Sample message for keylen>blocklen"
  194. Key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f404142434445464748494a4b4c4d4e4f505152535455565758595a5b5c5d5e5f606162636465666768696a6b6c6d6e6f707172737475767778797a7b7c7d7e7f8081828384858687
  195. Output = 5f464f5e5b7848e3885e49b2c385f0694985d0e38966242dc4a5fe3fea4b37d46b65ceced5dcf59438dd840bab22269f0ba7febdb9fcf74602a35666b2a32915
  196. Title = HMAC self generated tests
  197. MAC = HMAC
  198. Algorithm = SHAKE128
  199. Input = "Test that SHAKE128 fails"
  200. Key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f
  201. Result = MAC_INIT_ERROR
  202. Title = CMAC tests (from FIPS module)
  203. MAC = CMAC
  204. Algorithm = AES-128-CBC
  205. Key = 77A77FAF290C1FA30C683DF16BA7A77B
  206. Input = 020683E1F0392F4CAC54318B6029259E9C553DBC4B6AD998E64D58E4E7DC2E13
  207. Output = FBFEA41BF9740CB501F1292C21CEBB40
  208. MAC = CMAC by EVP_PKEY
  209. Algorithm = AES-192-CBC
  210. Key = 7B32391369AA4CA97558095BE3C3EC862BD057CEF1E32D62
  211. Input =
  212. Output = E4D9340B03E67DEFD4969CC1ED3735E6
  213. MAC = CMAC
  214. Algorithm = AES-256-CBC
  215. Key = 0B122AC8F34ED1FE082A3625D157561454167AC145A10BBF77C6A70596D574F1
  216. Input = 498B53FDEC87EDCBF07097DCCDE93A084BAD7501A224E388DF349CE18959FE8485F8AD1537F0D896EA73BEDC7214713F
  217. Output = F62C46329B41085625669BAF51DEA66A
  218. FIPSversion = >3.0.99
  219. MAC = CMAC
  220. Algorithm = AES-256-ECB
  221. Key = 0B122AC8F34ED1FE082A3625D157561454167AC145A10BBF77C6A70596D574F1
  222. Input = 498B53FDEC87EDCBF07097DCCDE93A084BAD7501A224E388DF349CE18959FE8485F8AD1537F0D896EA73BEDC7214713F
  223. Result = MAC_INIT_ERROR
  224. Title = GMAC Tests (from NIST)
  225. MAC = GMAC
  226. Algorithm = AES-128-GCM
  227. Key = 77BE63708971C4E240D1CB79E8D77FEB
  228. IV = E0E00F19FED7BA0136A797F3
  229. Input = 7A43EC1D9C0A5A78A0B16533A6213CAB
  230. Output = 209FCC8D3675ED938E9C7166709DD946
  231. Title = GMAC Tests (from http://www.ieee802.org/1/files/public/docs2011/bn-randall-test-vectors-0511-v1.pdf)
  232. MAC = GMAC
  233. Algorithm = AES-128-GCM
  234. Key = AD7A2BD03EAC835A6F620FDCB506B345
  235. IV = 12153524C0895E81B2C28465
  236. Input = D609B1F056637A0D46DF998D88E5222AB2C2846512153524C0895E8108000F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F30313233340001
  237. Output = F09478A9B09007D06F46E9B6A1DA25DD
  238. MAC = GMAC
  239. Algorithm = AES-256-GCM
  240. Key = E3C08A8F06C6E3AD95A70557B23F75483CE33021A9C72B7025666204C69C0B72
  241. IV = 12153524C0895E81B2C28465
  242. Input = D609B1F056637A0D46DF998D88E5222AB2C2846512153524C0895E8108000F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F30313233340001
  243. Output = 2F0BC5AF409E06D609EA8B7D0FA5EA50
  244. MAC = GMAC
  245. Algorithm = AES-128-GCM
  246. Key = 071B113B0CA743FECCCF3D051F737382
  247. IV = F0761E8DCD3D000176D457ED
  248. Input = E20106D7CD0DF0761E8DCD3D88E5400076D457ED08000F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A0003
  249. Output = 0C017BC73B227DFCC9BAFA1C41ACC353
  250. MAC = GMAC
  251. Algorithm = AES-256-GCM
  252. Key = 691D3EE909D7F54167FD1CA0B5D769081F2BDE1AEE655FDBAB80BD5295AE6BE7
  253. IV = F0761E8DCD3D000176D457ED
  254. Input = E20106D7CD0DF0761E8DCD3D88E5400076D457ED08000F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A0003
  255. Output = 35217C774BBC31B63166BCF9D4ABED07
  256. MAC = GMAC
  257. Algorithm = AES-128-GCM
  258. Key = 013FE00B5F11BE7F866D0CBBC55A7A90
  259. IV = 7CFDE9F9E33724C68932D612
  260. Input = 84C5D513D2AAF6E5BBD2727788E523008932D6127CFDE9F9E33724C608000F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F0005
  261. Output = 217867E50C2DAD74C28C3B50ABDF695A
  262. MAC = GMAC
  263. Algorithm = AES-256-GCM
  264. Key = 83C093B58DE7FFE1C0DA926AC43FB3609AC1C80FEE1B624497EF942E2F79A823
  265. IV = 7CFDE9F9E33724C68932D612
  266. Input = 84C5D513D2AAF6E5BBD2727788E523008932D6127CFDE9F9E33724C608000F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F0005
  267. Output = 6EE160E8FAECA4B36C86B234920CA975
  268. MAC = GMAC
  269. Algorithm = AES-128-GCM
  270. Key = 88EE087FD95DA9FBF6725AA9D757B0CD
  271. IV = 7AE8E2CA4EC500012E58495C
  272. Input = 68F2E77696CE7AE8E2CA4EC588E541002E58495C08000F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D0007
  273. Output = 07922B8EBCF10BB2297588CA4C614523
  274. MAC = GMAC
  275. Algorithm = AES-256-GCM
  276. Key = 4C973DBC7364621674F8B5B89E5C15511FCED9216490FB1C1A2CAA0FFE0407E5
  277. IV = 7AE8E2CA4EC500012E58495C
  278. Input = 68F2E77696CE7AE8E2CA4EC588E541002E58495C08000F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D0007
  279. Output = 00BDA1B7E87608BCBF470F12157F4C07
  280. MAC = GMAC
  281. Algorithm = AES-256-CBC
  282. Key = 4C973DBC7364621674F8B5B89E5C15511FCED9216490FB1C1A2CAA0FFE0407E5
  283. IV = 7AE8E2CA4EC500012E58495C
  284. Input = 68F2E77696CE7AE8E2CA4EC588E541002E58495C08000F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D0007
  285. Result = MAC_INIT_ERROR
  286. Title = KMAC Tests (From NIST)
  287. MAC = KMAC128
  288. Key = 404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F
  289. Input = 00010203
  290. Custom = ""
  291. Output = E5780B0D3EA6F7D3A429C5706AA43A00FADBD7D49628839E3187243F456EE14E
  292. Ctrl = xof:0
  293. OutputSize = 32
  294. BlockSize = 168
  295. MAC = KMAC128
  296. Key = 404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F
  297. Input = 00010203
  298. Custom = "My Tagged Application"
  299. Output = 3B1FBA963CD8B0B59E8C1A6D71888B7143651AF8BA0A7070C0979E2811324AA5
  300. MAC = KMAC128
  301. Key = 404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F
  302. Input = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7
  303. Custom = "My Tagged Application"
  304. Output = 1F5B4E6CCA02209E0DCB5CA635B89A15E271ECC760071DFD805FAA38F9729230
  305. Ctrl = size:32
  306. MAC = KMAC256
  307. Key = 404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F
  308. Input = 00010203
  309. Custom = "My Tagged Application"
  310. Output = 20C570C31346F703C9AC36C61C03CB64C3970D0CFC787E9B79599D273A68D2F7F69D4CC3DE9D104A351689F27CF6F5951F0103F33F4F24871024D9C27773A8DD
  311. OutputSize = 64
  312. BlockSize = 136
  313. MAC = KMAC256
  314. Key = 404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F
  315. Input = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7
  316. Custom = ""
  317. Output = 75358CF39E41494E949707927CEE0AF20A3FF553904C86B08F21CC414BCFD691589D27CF5E15369CBBFF8B9A4C2EB17800855D0235FF635DA82533EC6B759B69
  318. MAC = KMAC256
  319. Key = 404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F
  320. Input = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7
  321. Custom = "My Tagged Application"
  322. Output = B58618F71F92E1D56C1B8C55DDD7CD188B97B4CA4D99831EB2699A837DA2E4D970FBACFDE50033AEA585F1A2708510C32D07880801BD182898FE476876FC8965
  323. Ctrl = size:64
  324. Title = KMAC XOF Tests (From NIST)
  325. MAC = KMAC128
  326. Key = 404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F
  327. Input = 00010203
  328. Output = CD83740BBD92CCC8CF032B1481A0F4460E7CA9DD12B08A0C4031178BACD6EC35
  329. XOF = 1
  330. MAC = KMAC128
  331. Key = 404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F
  332. Input = 00010203
  333. Custom = "My Tagged Application"
  334. Output = 31A44527B4ED9F5C6101D11DE6D26F0620AA5C341DEF41299657FE9DF1A3B16C
  335. XOF = 1
  336. MAC = KMAC128
  337. Key = 404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F
  338. Input = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7
  339. Custom = "My Tagged Application"
  340. Output = 47026C7CD793084AA0283C253EF658490C0DB61438B8326FE9BDDF281B83AE0F
  341. XOF = 1
  342. Ctrl = size:32
  343. MAC = KMAC256
  344. Key = 404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F
  345. Input = 00010203
  346. Custom = "My Tagged Application"
  347. Output = 1755133F1534752AAD0748F2C706FB5C784512CAB835CD15676B16C0C6647FA96FAA7AF634A0BF8FF6DF39374FA00FAD9A39E322A7C92065A64EB1FB0801EB2B
  348. XOF = 1
  349. MAC = KMAC256
  350. Key = 404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F
  351. Input = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7
  352. Custom = ""
  353. Output = FF7B171F1E8A2B24683EED37830EE797538BA8DC563F6DA1E667391A75EDC02CA633079F81CE12A25F45615EC89972031D18337331D24CEB8F8CA8E6A19FD98B
  354. XOF = 1
  355. MAC = KMAC256
  356. Key = 404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F
  357. Input = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7
  358. Custom = "My Tagged Application"
  359. Output = D5BE731C954ED7732846BB59DBE3A8E30F83E77A4BFF4459F2F1C2B4ECEBB8CE67BA01C62E8AB8578D2D499BD1BB276768781190020A306A97DE281DCC30305D
  360. Ctrl = size:64
  361. XOF = 1
  362. Title = KMAC long customisation string (from NIST ACVP)
  363. MAC = KMAC256
  364. Key = 9743DBF93102FAF11227B154B8ACD16CF142671F7AA16C559A393A38B4CEF461ED29A6A328D7379C99718790E38B54CA25E9E831CBEA463EE704D1689F94629AB795DF0C77F756DA743309C0E054596BA2D9CC1768ACF7CD351D9A7EB1ABD0A3
  365. Input = BA63AC9C711F143CCE7FF92D0322649D1BE437D805FD225C0A2879A008373EC3BCCDB09971FAD2BCE5F4347AF7E5238EF01A90ED34193D6AFC1D
  366. Custom = "]J&/.?L/c&}p(b!X|?>i7!]CAH6P@1<R'6|uOu2Vu^kCM!$ Een^pn&Zlale){mQhKjqe,)'-fsX6:u@D6+ZA^b70A)n)LMxo:Y!62;:[hP*yLERjL@rq30+iRaD#9|"
  367. Output = 4057EFD76A63049418AFC54559589821322B6029808A3BCAE4D49E961F909F5F667ACAD56BBCFB8033DCB4CC10AF1B53F014B8
  368. Ctrl = size:51
  369. XOF = 1
  370. Title = KMAC XOF Tests via ctrl (From NIST)
  371. MAC = KMAC128
  372. Key = 404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F
  373. Input = 00010203
  374. Output = CD83740BBD92CCC8CF032B1481A0F4460E7CA9DD12B08A0C4031178BACD6EC35
  375. Ctrl = xof:1
  376. MAC = KMAC128
  377. Key = 404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F
  378. Input = 00010203
  379. Custom = "My Tagged Application"
  380. Output = 31A44527B4ED9F5C6101D11DE6D26F0620AA5C341DEF41299657FE9DF1A3B16C
  381. Ctrl = xof:1
  382. MAC = KMAC128
  383. Key = 404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F
  384. Input = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7
  385. Custom = "My Tagged Application"
  386. Output = 47026C7CD793084AA0283C253EF658490C0DB61438B8326FE9BDDF281B83AE0F
  387. Ctrl = xof:1
  388. Ctrl = size:32
  389. MAC = KMAC256
  390. Key = 404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F
  391. Input = 00010203
  392. Custom = "My Tagged Application"
  393. Output = 1755133F1534752AAD0748F2C706FB5C784512CAB835CD15676B16C0C6647FA96FAA7AF634A0BF8FF6DF39374FA00FAD9A39E322A7C92065A64EB1FB0801EB2B
  394. Ctrl = xof:1
  395. MAC = KMAC256
  396. Key = 404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F
  397. Input = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7
  398. Custom = ""
  399. Output = FF7B171F1E8A2B24683EED37830EE797538BA8DC563F6DA1E667391A75EDC02CA633079F81CE12A25F45615EC89972031D18337331D24CEB8F8CA8E6A19FD98B
  400. Ctrl = xof:1
  401. MAC = KMAC256
  402. Key = 404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F
  403. Input = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7
  404. Custom = "My Tagged Application"
  405. Output = D5BE731C954ED7732846BB59DBE3A8E30F83E77A4BFF4459F2F1C2B4ECEBB8CE67BA01C62E8AB8578D2D499BD1BB276768781190020A306A97DE281DCC30305D
  406. Ctrl = size:64
  407. Ctrl = xof:1
  408. Title = KMAC long customisation string via ctrl (from NIST ACVP)
  409. MAC = KMAC256
  410. Key = 9743DBF93102FAF11227B154B8ACD16CF142671F7AA16C559A393A38B4CEF461ED29A6A328D7379C99718790E38B54CA25E9E831CBEA463EE704D1689F94629AB795DF0C77F756DA743309C0E054596BA2D9CC1768ACF7CD351D9A7EB1ABD0A3
  411. Input = BA63AC9C711F143CCE7FF92D0322649D1BE437D805FD225C0A2879A008373EC3BCCDB09971FAD2BCE5F4347AF7E5238EF01A90ED34193D6AFC1D
  412. Custom = "]J&/.?L/c&}p(b!X|?>i7!]CAH6P@1<R'6|uOu2Vu^kCM!$ Een^pn&Zlale){mQhKjqe,)'-fsX6:u@D6+ZA^b70A)n)LMxo:Y!62;:[hP*yLERjL@rq30+iRaD#9|"
  413. Output = 4057EFD76A63049418AFC54559589821322B6029808A3BCAE4D49E961F909F5F667ACAD56BBCFB8033DCB4CC10AF1B53F014B8
  414. Ctrl = size:51
  415. Ctrl = xof:1
  416. Title = KMAC long customisation string negative test
  417. MAC = KMAC128
  418. Key = 404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F
  419. Input = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7
  420. Custom = ":abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789::abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789::abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789::abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789::"
  421. Result = MAC_INIT_ERROR
  422. Title = KMAC output is too large
  423. MAC = KMAC256
  424. Key = 404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F
  425. Input = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7
  426. Custom = "My Tagged Application"
  427. Ctrl = size:2097152
  428. Result = MAC_INIT_ERROR