summaryrefslogtreecommitdiffstats
path: root/crypto/testmgr.c
diff options
context:
space:
mode:
authorraveendra padasalagi <raveendra.padasalagi@broadcom.com>2016-06-17 10:30:36 +0530
committerHerbert Xu <herbert@gondor.apana.org.au>2016-06-20 19:25:02 +0800
commit79cc6ab8947bd238b64afddc56ed84ee65f012ef (patch)
tree3b361a923dee4a3b92043f78295f63f80fb2bc4f /crypto/testmgr.c
parent53964b9ee63b7075931b8df85307c449da564b50 (diff)
downloadlinux-stable-79cc6ab8947bd238b64afddc56ed84ee65f012ef.tar.gz
linux-stable-79cc6ab8947bd238b64afddc56ed84ee65f012ef.tar.bz2
linux-stable-79cc6ab8947bd238b64afddc56ed84ee65f012ef.zip
crypto: sha3 - Add SHA-3 Test's in tcrypt
Added support for SHA-3 algorithm test's in tcrypt module and related test vectors. Signed-off-by: Raveendra Padasalagi <raveendra.padasalagi@broadcom.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/testmgr.c')
-rw-r--r--crypto/testmgr.c40
1 files changed, 40 insertions, 0 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c
index c727fb0cb021..b773a563809b 100644
--- a/crypto/testmgr.c
+++ b/crypto/testmgr.c
@@ -3659,6 +3659,46 @@ static const struct alg_test_desc alg_test_descs[] = {
}
}
}, {
+ .alg = "sha3-224",
+ .test = alg_test_hash,
+ .fips_allowed = 1,
+ .suite = {
+ .hash = {
+ .vecs = sha3_224_tv_template,
+ .count = SHA3_224_TEST_VECTORS
+ }
+ }
+ }, {
+ .alg = "sha3-256",
+ .test = alg_test_hash,
+ .fips_allowed = 1,
+ .suite = {
+ .hash = {
+ .vecs = sha3_256_tv_template,
+ .count = SHA3_256_TEST_VECTORS
+ }
+ }
+ }, {
+ .alg = "sha3-384",
+ .test = alg_test_hash,
+ .fips_allowed = 1,
+ .suite = {
+ .hash = {
+ .vecs = sha3_384_tv_template,
+ .count = SHA3_384_TEST_VECTORS
+ }
+ }
+ }, {
+ .alg = "sha3-512",
+ .test = alg_test_hash,
+ .fips_allowed = 1,
+ .suite = {
+ .hash = {
+ .vecs = sha3_512_tv_template,
+ .count = SHA3_512_TEST_VECTORS
+ }
+ }
+ }, {
.alg = "sha384",
.test = alg_test_hash,
.fips_allowed = 1,