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