diff options
author | raveendra padasalagi <raveendra.padasalagi@broadcom.com> | 2016-06-17 01:00:36 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-06-20 07:25:02 -0400 |
commit | 79cc6ab8947bd238b64afddc56ed84ee65f012ef (patch) | |
tree | 3b361a923dee4a3b92043f78295f63f80fb2bc4f /crypto/testmgr.c | |
parent | 53964b9ee63b7075931b8df85307c449da564b50 (diff) |
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.c | 40 |
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[] = { | |||
3659 | } | 3659 | } |
3660 | } | 3660 | } |
3661 | }, { | 3661 | }, { |
3662 | .alg = "sha3-224", | ||
3663 | .test = alg_test_hash, | ||
3664 | .fips_allowed = 1, | ||
3665 | .suite = { | ||
3666 | .hash = { | ||
3667 | .vecs = sha3_224_tv_template, | ||
3668 | .count = SHA3_224_TEST_VECTORS | ||
3669 | } | ||
3670 | } | ||
3671 | }, { | ||
3672 | .alg = "sha3-256", | ||
3673 | .test = alg_test_hash, | ||
3674 | .fips_allowed = 1, | ||
3675 | .suite = { | ||
3676 | .hash = { | ||
3677 | .vecs = sha3_256_tv_template, | ||
3678 | .count = SHA3_256_TEST_VECTORS | ||
3679 | } | ||
3680 | } | ||
3681 | }, { | ||
3682 | .alg = "sha3-384", | ||
3683 | .test = alg_test_hash, | ||
3684 | .fips_allowed = 1, | ||
3685 | .suite = { | ||
3686 | .hash = { | ||
3687 | .vecs = sha3_384_tv_template, | ||
3688 | .count = SHA3_384_TEST_VECTORS | ||
3689 | } | ||
3690 | } | ||
3691 | }, { | ||
3692 | .alg = "sha3-512", | ||
3693 | .test = alg_test_hash, | ||
3694 | .fips_allowed = 1, | ||
3695 | .suite = { | ||
3696 | .hash = { | ||
3697 | .vecs = sha3_512_tv_template, | ||
3698 | .count = SHA3_512_TEST_VECTORS | ||
3699 | } | ||
3700 | } | ||
3701 | }, { | ||
3662 | .alg = "sha384", | 3702 | .alg = "sha384", |
3663 | .test = alg_test_hash, | 3703 | .test = alg_test_hash, |
3664 | .fips_allowed = 1, | 3704 | .fips_allowed = 1, |