summaryrefslogtreecommitdiffstats
path: root/crypto/testmgr.c
diff options
context:
space:
mode:
authorraveendra padasalagi <raveendra.padasalagi@broadcom.com>2016-07-01 11:16:54 +0530
committerHerbert Xu <herbert@gondor.apana.org.au>2016-07-01 23:45:24 +0800
commit98eca72fa04a9bbf28dba95efaec5aa95588fe23 (patch)
tree5fe13eec06fb23810b2d3869e33c368e0e5876d8 /crypto/testmgr.c
parenteb3547859d73629c888825d6b928f2d0dba5af41 (diff)
downloadlinux-98eca72fa04a9bbf28dba95efaec5aa95588fe23.tar.gz
linux-98eca72fa04a9bbf28dba95efaec5aa95588fe23.tar.bz2
linux-98eca72fa04a9bbf28dba95efaec5aa95588fe23.zip
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[] = {
}
}
}, {
+ .alg = "hmac(sha3-224)",
+ .test = alg_test_hash,
+ .fips_allowed = 1,
+ .suite = {
+ .hash = {
+ .vecs = hmac_sha3_224_tv_template,
+ .count = HMAC_SHA3_224_TEST_VECTORS
+ }
+ }
+ }, {
+ .alg = "hmac(sha3-256)",
+ .test = alg_test_hash,
+ .fips_allowed = 1,
+ .suite = {
+ .hash = {
+ .vecs = hmac_sha3_256_tv_template,
+ .count = HMAC_SHA3_256_TEST_VECTORS
+ }
+ }
+ }, {
+ .alg = "hmac(sha3-384)",
+ .test = alg_test_hash,
+ .fips_allowed = 1,
+ .suite = {
+ .hash = {
+ .vecs = hmac_sha3_384_tv_template,
+ .count = HMAC_SHA3_384_TEST_VECTORS
+ }
+ }
+ }, {
+ .alg = "hmac(sha3-512)",
+ .test = alg_test_hash,
+ .fips_allowed = 1,
+ .suite = {
+ .hash = {
+ .vecs = hmac_sha3_512_tv_template,
+ .count = HMAC_SHA3_512_TEST_VECTORS
+ }
+ }
+ }, {
.alg = "hmac(sha384)",
.test = alg_test_hash,
.fips_allowed = 1,