summaryrefslogtreecommitdiffstats
path: root/crypto/testmgr.c
diff options
context:
space:
mode:
authorGilad Ben-Yossef <gilad@benyossef.com>2017-08-21 13:51:29 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2017-09-22 17:43:08 +0800
commitb7e2753040a2fef0f748c615121577da3f846781 (patch)
treecc7ac1c78c01131696dafab2efb6162256bc07e2 /crypto/testmgr.c
parent4f0fc1600edbdb3612b931aa5076ca984f7ee8fe (diff)
downloadlinux-stable-b7e2753040a2fef0f748c615121577da3f846781.tar.gz
linux-stable-b7e2753040a2fef0f748c615121577da3f846781.tar.bz2
linux-stable-b7e2753040a2fef0f748c615121577da3f846781.zip
crypto: sm3 - add SM3 test vectors
Add testmgr and tcrypt tests and vectors for SM3 secure hash. 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.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c
index 7125ba3880af..baf96cecaf49 100644
--- a/crypto/testmgr.c
+++ b/crypto/testmgr.c
@@ -3500,6 +3500,12 @@ static const struct alg_test_desc alg_test_descs[] = {
.hash = __VECS(sha512_tv_template)
}
}, {
+ .alg = "sm3",
+ .test = alg_test_hash,
+ .suite = {
+ .hash = __VECS(sm3_tv_template)
+ }
+ }, {
.alg = "tgr128",
.test = alg_test_hash,
.suite = {