summaryrefslogtreecommitdiff
path: root/crypto/tcrypt.c
diff options
context:
space:
mode:
authorGilad Ben-Yossef <gilad@benyossef.com>2018-03-06 09:44:43 +0000
committerHerbert Xu <herbert@gondor.apana.org.au>2018-03-16 23:35:50 +0800
commit60f8e97aa607577b53c3420265e441b619c36574 (patch)
treeba092817a7bc150c29c2e1e85a3c3cef0701b1df /crypto/tcrypt.c
parent7036e688da0e88af682369ecf0a44c6426d64708 (diff)
downloadlinux-crypto-60f8e97aa607577b53c3420265e441b619c36574.tar.gz
linux-crypto-60f8e97aa607577b53c3420265e441b619c36574.zip
crypto: testmgr - introduce SM4 tests
Add testmgr tests for the newly introduced SM4 ECB symmetric cipher. Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/tcrypt.c')
-rw-r--r--crypto/tcrypt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c
index 14213a09..51fe7c87 100644
--- a/crypto/tcrypt.c
+++ b/crypto/tcrypt.c
@@ -1983,6 +1983,9 @@ static int do_test(const char *alg, u32 type, u32 mask, int m)
case 190:
ret += tcrypt_test("authenc(hmac(sha512),cbc(des3_ede))");
break;
+ case 191:
+ ret += tcrypt_test("ecb(sm4)");
+ break;
case 200:
test_cipher_speed("ecb(aes)", ENCRYPT, sec, NULL, 0,
speed_template_16_24_32);