Add additional SM4 test vectors (GH #540)
The additional ECB mode vectors were generated with Botan. We still need some vectors for SM4/CBCpull/548/head
parent
521e4ea5fb
commit
13652cf9bf
|
|
@ -77,6 +77,76 @@ Key: 3198AB4E006A5180966D5075912BC406
|
||||||
Plaintext: 5F9B108B715F047B7879E323B0D95C3B
|
Plaintext: 5F9B108B715F047B7879E323B0D95C3B
|
||||||
Ciphertext: 7B40084F82CAAA25821862F986ABD424
|
Ciphertext: 7B40084F82CAAA25821862F986ABD424
|
||||||
Test: Encrypt
|
Test: Encrypt
|
||||||
|
#
|
||||||
|
Source: Botan 2.4 generated
|
||||||
|
Comment: SM4-128(128)
|
||||||
|
Key: F11235535318FA844A3CBE643169F59E
|
||||||
|
Plaintext: A27EE076E48E6F389710EC7B5E8A3BE5
|
||||||
|
Ciphertext: 94CFE3F59E8507FEC41DBE738CCD53E1
|
||||||
|
Test: Encrypt
|
||||||
|
#
|
||||||
|
Source: Botan 2.4 generated
|
||||||
|
Comment: SM4-128(128)
|
||||||
|
Key: 419A55A70C401DA6571654BC4AF1F6D7
|
||||||
|
Plaintext: 9B6294AE9BE009C87CAEFCD842632A1D
|
||||||
|
Ciphertext: 9868917B7329CE6F1E1FBA6E404D8F20
|
||||||
|
Test: Encrypt
|
||||||
|
#
|
||||||
|
Source: Botan 2.4 generated
|
||||||
|
Comment: SM4-128(128)
|
||||||
|
Key: EE1E457608D7704A99F76C73815CBFA8
|
||||||
|
Plaintext: C89C30AD3B257CA7635052ED63B6D268
|
||||||
|
Ciphertext: CE25779CA2A8EEFD7ADD059273E2A1FD
|
||||||
|
Test: Encrypt
|
||||||
|
#
|
||||||
|
Source: Botan 2.4 generated
|
||||||
|
Comment: SM4-128(128)
|
||||||
|
Key: 43D99B186BEAA4E2DE3159F77BF708FA
|
||||||
|
Plaintext: 91CB86CA6B0FDF6671FF4AE4BF63AD6C
|
||||||
|
Ciphertext: 3A6B1DF36C9CBFC327FF8B6C7318579C
|
||||||
|
Test: Encrypt
|
||||||
|
#
|
||||||
|
Source: Botan 2.4 generated
|
||||||
|
Comment: SM4-128(128)
|
||||||
|
Key: BBE5816E2B56084FCDEAB9B739CE899E
|
||||||
|
Plaintext: B607BB382377F3B6D5FB740E3BF0E822
|
||||||
|
Ciphertext: 4DCDC1708360A700130C3BD90C8F626F
|
||||||
|
Test: Encrypt
|
||||||
|
#
|
||||||
|
Source: Botan 2.4 generated
|
||||||
|
Comment: SM4-128(128)
|
||||||
|
Key: BF35FEE606E59D0E1E18BDA40180672C
|
||||||
|
Plaintext: 6F217DAD31488A54A7F4482D1BE230BC
|
||||||
|
Ciphertext: DE1AAEA076633B37B54AEF10B180661A
|
||||||
|
Test: Encrypt
|
||||||
|
#
|
||||||
|
Source: Botan 2.4 generated
|
||||||
|
Comment: SM4-128(128)
|
||||||
|
Key: D2B1CE2CFDB2306BE24F0364434F7734
|
||||||
|
Plaintext: 7AB0E2CC96E55659E5078591F510B721
|
||||||
|
Ciphertext: 052E420981D36C01A96A8302F71FB7A6
|
||||||
|
Test: Encrypt
|
||||||
|
#
|
||||||
|
Source: Botan 2.4 generated
|
||||||
|
Comment: SM4-128(128)
|
||||||
|
Key: 2DDD024A42B24A9652C8C52021024C33
|
||||||
|
Plaintext: C9BD217786C00F420A88D6818B685A02
|
||||||
|
Ciphertext: CE273E3523B443EB34C7B6A153FC9308
|
||||||
|
Test: Encrypt
|
||||||
|
#
|
||||||
|
Source: Botan 2.4 generated
|
||||||
|
Comment: SM4-128(128)
|
||||||
|
Key: 4A6453202EC4378492BFA3D6A685F6CD
|
||||||
|
Plaintext: B9EDC63029F5FA1390918736590A3483
|
||||||
|
Ciphertext: 2C7E67E24281BA3271E6FFF2D2B91B75
|
||||||
|
Test: Encrypt
|
||||||
|
#
|
||||||
|
Source: Botan 2.4 generated
|
||||||
|
Comment: SM4-128(128)
|
||||||
|
Key: 6FC86EFE73B3AF96014E490882A34825
|
||||||
|
Plaintext: 13805831D15593BA3CF4553D4AEFDB71
|
||||||
|
Ciphertext: A32951875534F6B1ABB12465EF370FDC
|
||||||
|
Test: Encrypt
|
||||||
|
|
||||||
AlgorithmType: SymmetricCipher
|
AlgorithmType: SymmetricCipher
|
||||||
Name: SM4/CBC
|
Name: SM4/CBC
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue