diff options
author | Gilad Ben-Yossef <gilad@benyossef.com> | 2018-03-06 09:44:43 +0000 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-03-16 23:35:50 +0800 |
commit | 60f8e97aa607577b53c3420265e441b619c36574 (patch) | |
tree | ba092817a7bc150c29c2e1e85a3c3cef0701b1df /crypto/testmgr.c | |
parent | 7036e688da0e88af682369ecf0a44c6426d64708 (diff) | |
download | linux-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 '')
-rw-r--r-- | crypto/testmgr.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c index 9f82e7bc..af4a01c5 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c @@ -3001,6 +3001,15 @@ static const struct alg_test_desc alg_test_descs[] = { } } }, { + .alg = "ecb(sm4)", + .test = alg_test_skcipher, + .suite = { + .cipher = { + .enc = __VECS(sm4_enc_tv_template), + .dec = __VECS(sm4_dec_tv_template) + } + } + }, { .alg = "ecb(speck128)", .test = alg_test_skcipher, .suite = { |