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