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 | 7fef51822ff6f71ac887f99f303a07f5053b952e (patch) | |
tree | 7e438113d1ff0873cbcb9fb9941715aec7ff47e5 /crypto/testmgr.c | |
parent | 04e742a6ad061b85fbbd91621a64b3d4fcb19f01 (diff) | |
download | linux-crypto-7fef51822ff6f71ac887f99f303a07f5053b952e.tar.gz linux-crypto-7fef51822ff6f71ac887f99f303a07f5053b952e.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 7125ba38..baf96cec 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 = { |