diff options
author | Pascal van Leeuwen <pascalvanl@gmail.com> | 2019-09-13 11:10:42 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-10-05 01:06:05 +1000 |
commit | 26d95ef4a18943c428f7b52f6683df1cdff7d993 (patch) | |
tree | 507fb2bc10e134bd9d7b6b662e5ed56f6bc56ce6 /crypto/testmgr.c | |
parent | 09e31b189607a843b462573a26262cb1f4a5bfa5 (diff) | |
download | linux-crypto-26d95ef4a18943c428f7b52f6683df1cdff7d993.tar.gz linux-crypto-26d95ef4a18943c428f7b52f6683df1cdff7d993.zip |
crypto: testmgr - Added testvectors for the rfc3686(ctr(sm4)) skcipher
Added testvectors for the rfc3686(ctr(sm4)) skcipher algorithm
changes since v1:
- nothing
Signed-off-by: Pascal van Leeuwen <pvanleeuwen@verimatrix.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/testmgr.c')
-rw-r--r-- | crypto/testmgr.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c index abfafffb..82084f6d 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c @@ -4847,6 +4847,12 @@ static const struct alg_test_desc alg_test_descs[] = { .cipher = __VECS(aes_ctr_rfc3686_tv_template) } }, { + .alg = "rfc3686(ctr(sm4))", + .test = alg_test_skcipher, + .suite = { + .cipher = __VECS(sm4_ctr_rfc3686_tv_template) + } + }, { .alg = "rfc4106(gcm(aes))", .generic_driver = "rfc4106(gcm_base(ctr(aes-generic),ghash-generic))", .test = alg_test_aead, |