1# 2# Copyright 2001-2020 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 9Title = SM4 test vectors from IETF draft-ribose-cfrg-sm4 10 11Cipher = SM4-ECB 12Key = 0123456789ABCDEFFEDCBA9876543210 13Plaintext = 0123456789ABCDEFFEDCBA9876543210 14Ciphertext = 681EDF34D206965E86B3E94F536E4246 15 16Cipher = SM4-CBC 17Key = 0123456789ABCDEFFEDCBA9876543210 18IV = 0123456789ABCDEFFEDCBA9876543210 19Plaintext = 0123456789ABCDEFFEDCBA98765432100123456789ABCDEFFEDCBA9876543210 20Ciphertext = 2677F46B09C122CC975533105BD4A22AF6125F7275CE552C3A2BBCF533DE8A3B 21 22Cipher = SM4-OFB 23Key = 0123456789ABCDEFFEDCBA9876543210 24IV = 0123456789ABCDEFFEDCBA9876543210 25Plaintext = 0123456789ABCDEFFEDCBA98765432100123456789ABCDEFFEDCBA9876543210 26Ciphertext = 693D9A535BAD5BB1786F53D7253A7056F2075D28B5235F58D50027E4177D2BCE 27 28Cipher = SM4-CFB 29Key = 0123456789ABCDEFFEDCBA9876543210 30IV = 0123456789ABCDEFFEDCBA9876543210 31Plaintext = 0123456789ABCDEFFEDCBA98765432100123456789ABCDEFFEDCBA9876543210 32Ciphertext = 693D9A535BAD5BB1786F53D7253A70569ED258A85A0467CC92AAB393DD978995 33 34Cipher = SM4-CTR 35Key = 0123456789ABCDEFFEDCBA9876543210 36IV = 0123456789ABCDEFFEDCBA9876543210 37Plaintext = AAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBCCCCCCCCCCCCCCCCDDDDDDDDDDDDDDDDEEEEEEEEEEEEEEEEFFFFFFFFFFFFFFFFEEEEEEEEEEEEEEEEAAAAAAAAAAAAAAAA 38Ciphertext = C2B4759E78AC3CF43D0852F4E8D5F9FD7256E8A5FCB65A350EE00630912E44492A0B17E1B85B060D0FBA612D8A95831638B361FD5FFACD942F081485A83CA35D 39