summaryrefslogtreecommitdiffstats
path: root/crypto/testmgr.c
diff options
context:
space:
mode:
authorGilad Ben-Yossef <gilad@benyossef.com>2018-03-06 04:44:43 -0500
committerHerbert Xu <herbert@gondor.apana.org.au>2018-03-16 11:35:50 -0400
commitcd83a8a7c3eaffe985c6c8913c84da06a59fbe5d (patch)
tree5c738963df8604535c528a6e4d90ea89118ef3e9 /crypto/testmgr.c
parent747c8ce4e710cf2d72d115f84b2d0d6f4aa504b4 (diff)
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/testmgr.c')
-rw-r--r--crypto/testmgr.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c
index 9f82e7bc9c56..af4a01c5037b 100644
--- a/crypto/testmgr.c
+++ b/crypto/testmgr.c
@@ -3001,6 +3001,15 @@ static const struct alg_test_desc alg_test_descs[] = {
3001 } 3001 }
3002 } 3002 }
3003 }, { 3003 }, {
3004 .alg = "ecb(sm4)",
3005 .test = alg_test_skcipher,
3006 .suite = {
3007 .cipher = {
3008 .enc = __VECS(sm4_enc_tv_template),
3009 .dec = __VECS(sm4_dec_tv_template)
3010 }
3011 }
3012 }, {
3004 .alg = "ecb(speck128)", 3013 .alg = "ecb(speck128)",
3005 .test = alg_test_skcipher, 3014 .test = alg_test_skcipher,
3006 .suite = { 3015 .suite = {