summaryrefslogtreecommitdiff
path: root/crypto/testmgr.c
diff options
context:
space:
mode:
authorPascal van Leeuwen <pascalvanl@gmail.com>2019-09-13 11:10:39 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2019-10-05 01:06:04 +1000
commit09e31b189607a843b462573a26262cb1f4a5bfa5 (patch)
treeb4c752d12da389fd1bfe365e8dec4c0c50a7075c /crypto/testmgr.c
parent05723076220ed9c99b8df295d5411455d8c1dd8a (diff)
downloadlinux-crypto-09e31b189607a843b462573a26262cb1f4a5bfa5.tar.gz
linux-crypto-09e31b189607a843b462573a26262cb1f4a5bfa5.zip
crypto: testmgr - Added testvectors for the ofb(sm4) & cfb(sm4) skciphers
Added testvectors for the ofb(sm4) and cfb(sm4) skcipher algorithms 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.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c
index 40d94ad7..abfafffb 100644
--- a/crypto/testmgr.c
+++ b/crypto/testmgr.c
@@ -4126,6 +4126,12 @@ static const struct alg_test_desc alg_test_descs[] = {
.cipher = __VECS(aes_cfb_tv_template)
},
}, {
+ .alg = "cfb(sm4)",
+ .test = alg_test_skcipher,
+ .suite = {
+ .cipher = __VECS(sm4_cfb_tv_template)
+ }
+ }, {
.alg = "chacha20",
.test = alg_test_skcipher,
.suite = {
@@ -4797,6 +4803,12 @@ static const struct alg_test_desc alg_test_descs[] = {
.test = alg_test_null,
.fips_allowed = 1,
}, {
+ .alg = "ofb(sm4)",
+ .test = alg_test_skcipher,
+ .suite = {
+ .cipher = __VECS(sm4_ofb_tv_template)
+ }
+ }, {
.alg = "pcbc(fcrypt)",
.test = alg_test_skcipher,
.suite = {