diff options
author | Gilad Ben-Yossef <gilad@benyossef.com> | 2017-08-21 13:51:29 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-09-22 17:43:08 +0800 |
commit | b7e2753040a2fef0f748c615121577da3f846781 (patch) | |
tree | cc7ac1c78c01131696dafab2efb6162256bc07e2 /crypto/testmgr.c | |
parent | 4f0fc1600edbdb3612b931aa5076ca984f7ee8fe (diff) | |
download | linux-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.c | 6 |
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 = { |