summaryrefslogtreecommitdiffstats
path: root/crypto/tcrypt.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/tcrypt.c
parenteb3547859d73629c888825d6b928f2d0dba5af41 (diff)
downloadlinux-stable-98eca72fa04a9bbf28dba95efaec5aa95588fe23.tar.gz
linux-stable-98eca72fa04a9bbf28dba95efaec5aa95588fe23.tar.bz2
linux-stable-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/tcrypt.c')
-rw-r--r--crypto/tcrypt.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c
index 202cfa10076c..ae22f05d5936 100644
--- a/crypto/tcrypt.c
+++ b/crypto/tcrypt.c
@@ -1313,6 +1313,22 @@ static int do_test(const char *alg, u32 type, u32 mask, int m)
ret += tcrypt_test("hmac(crc32)");
break;
+ case 111:
+ ret += tcrypt_test("hmac(sha3-224)");
+ break;
+
+ case 112:
+ ret += tcrypt_test("hmac(sha3-256)");
+ break;
+
+ case 113:
+ ret += tcrypt_test("hmac(sha3-384)");
+ break;
+
+ case 114:
+ ret += tcrypt_test("hmac(sha3-512)");
+ break;
+
case 150:
ret += tcrypt_test("ansi_cprng");
break;