summaryrefslogtreecommitdiffstats
path: root/crypto/testmgr.c
diff options
context:
space:
mode:
authorraveendra padasalagi <raveendra.padasalagi@broadcom.com>2016-07-01 01:46:54 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2016-07-01 11:45:24 -0400
commit98eca72fa04a9bbf28dba95efaec5aa95588fe23 (patch)
tree5fe13eec06fb23810b2d3869e33c368e0e5876d8 /crypto/testmgr.c
parenteb3547859d73629c888825d6b928f2d0dba5af41 (diff)
crypto: sha3 - Add HMAC-SHA3 test modes and test vectors
This patch adds HMAC-SHA3 test modes 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 38e23be315a0..8ea0d3fcb580 100644
--- a/crypto/testmgr.c
+++ b/crypto/testmgr.c
@@ -3400,6 +3400,46 @@ static const struct alg_test_desc alg_test_descs[] = {
3400 } 3400 }
3401 } 3401 }
3402 }, { 3402 }, {
3403 .alg = "hmac(sha3-224)",
3404 .test = alg_test_hash,
3405 .fips_allowed = 1,
3406 .suite = {
3407 .hash = {
3408 .vecs = hmac_sha3_224_tv_template,
3409 .count = HMAC_SHA3_224_TEST_VECTORS
3410 }
3411 }
3412 }, {
3413 .alg = "hmac(sha3-256)",
3414 .test = alg_test_hash,
3415 .fips_allowed = 1,
3416 .suite = {
3417 .hash = {
3418 .vecs = hmac_sha3_256_tv_template,
3419 .count = HMAC_SHA3_256_TEST_VECTORS
3420 }
3421 }
3422 }, {
3423 .alg = "hmac(sha3-384)",
3424 .test = alg_test_hash,
3425 .fips_allowed = 1,
3426 .suite = {
3427 .hash = {
3428 .vecs = hmac_sha3_384_tv_template,
3429 .count = HMAC_SHA3_384_TEST_VECTORS
3430 }
3431 }
3432 }, {
3433 .alg = "hmac(sha3-512)",
3434 .test = alg_test_hash,
3435 .fips_allowed = 1,
3436 .suite = {
3437 .hash = {
3438 .vecs = hmac_sha3_512_tv_template,
3439 .count = HMAC_SHA3_512_TEST_VECTORS
3440 }
3441 }
3442 }, {
3403 .alg = "hmac(sha384)", 3443 .alg = "hmac(sha384)",
3404 .test = alg_test_hash, 3444 .test = alg_test_hash,
3405 .fips_allowed = 1, 3445 .fips_allowed = 1,