xref: /freebsd/crypto/openssl/test/recipes/30-test_evp_data/evpciph_sm4.txt (revision e0c4386e7e71d93b0edc0c8fa156263fc4a8b0b6)
1*e0c4386eSCy Schubert#
2*e0c4386eSCy Schubert# Copyright 2001-2020 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 SchubertTitle = SM4 test vectors from IETF draft-ribose-cfrg-sm4
10*e0c4386eSCy Schubert
11*e0c4386eSCy SchubertCipher = SM4-ECB
12*e0c4386eSCy SchubertKey = 0123456789ABCDEFFEDCBA9876543210
13*e0c4386eSCy SchubertPlaintext  = 0123456789ABCDEFFEDCBA9876543210
14*e0c4386eSCy SchubertCiphertext = 681EDF34D206965E86B3E94F536E4246
15*e0c4386eSCy Schubert
16*e0c4386eSCy SchubertCipher = SM4-CBC
17*e0c4386eSCy SchubertKey = 0123456789ABCDEFFEDCBA9876543210
18*e0c4386eSCy SchubertIV  = 0123456789ABCDEFFEDCBA9876543210
19*e0c4386eSCy SchubertPlaintext = 0123456789ABCDEFFEDCBA98765432100123456789ABCDEFFEDCBA9876543210
20*e0c4386eSCy SchubertCiphertext = 2677F46B09C122CC975533105BD4A22AF6125F7275CE552C3A2BBCF533DE8A3B
21*e0c4386eSCy Schubert
22*e0c4386eSCy SchubertCipher = SM4-OFB
23*e0c4386eSCy SchubertKey = 0123456789ABCDEFFEDCBA9876543210
24*e0c4386eSCy SchubertIV  = 0123456789ABCDEFFEDCBA9876543210
25*e0c4386eSCy SchubertPlaintext = 0123456789ABCDEFFEDCBA98765432100123456789ABCDEFFEDCBA9876543210
26*e0c4386eSCy SchubertCiphertext = 693D9A535BAD5BB1786F53D7253A7056F2075D28B5235F58D50027E4177D2BCE
27*e0c4386eSCy Schubert
28*e0c4386eSCy SchubertCipher = SM4-CFB
29*e0c4386eSCy SchubertKey = 0123456789ABCDEFFEDCBA9876543210
30*e0c4386eSCy SchubertIV  = 0123456789ABCDEFFEDCBA9876543210
31*e0c4386eSCy SchubertPlaintext = 0123456789ABCDEFFEDCBA98765432100123456789ABCDEFFEDCBA9876543210
32*e0c4386eSCy SchubertCiphertext = 693D9A535BAD5BB1786F53D7253A70569ED258A85A0467CC92AAB393DD978995
33*e0c4386eSCy Schubert
34*e0c4386eSCy SchubertCipher = SM4-CTR
35*e0c4386eSCy SchubertKey = 0123456789ABCDEFFEDCBA9876543210
36*e0c4386eSCy SchubertIV  = 0123456789ABCDEFFEDCBA9876543210
37*e0c4386eSCy SchubertPlaintext = AAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBCCCCCCCCCCCCCCCCDDDDDDDDDDDDDDDDEEEEEEEEEEEEEEEEFFFFFFFFFFFFFFFFEEEEEEEEEEEEEEEEAAAAAAAAAAAAAAAA
38*e0c4386eSCy SchubertCiphertext = C2B4759E78AC3CF43D0852F4E8D5F9FD7256E8A5FCB65A350EE00630912E44492A0B17E1B85B060D0FBA612D8A95831638B361FD5FFACD942F081485A83CA35D
39