summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorMegha Dey <megha.dey@linux.intel.com>2016-06-27 10:20:09 -0700
committerHerbert Xu <herbert@gondor.apana.org.au>2016-06-28 16:06:41 +0800
commitf2eb480458970ddb09dbe029756f6fde35bff8b0 (patch)
treea01a3d5ddf5a9b362ea981d2d8f2a82498579627 /crypto
parenta524bdc6f5f37ac166571e3572c7236ba23f9958 (diff)
downloadlinux-crypto-f2eb480458970ddb09dbe029756f6fde35bff8b0.tar.gz
linux-crypto-f2eb480458970ddb09dbe029756f6fde35bff8b0.zip
crypto: tcrypt - Add new mode for sha512_mb
Add a new mode to calculate the speed of the sha512_mb algorithm Signed-off-by: Megha Dey <megha.dey@linux.intel.com> Reviewed-by: Fenghua Yu <fenghua.yu@intel.com> Reviewed-by: Tim Chen <tim.c.chen@linux.intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/tcrypt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c
index 6ef78157..158c164c 100644
--- a/crypto/tcrypt.c
+++ b/crypto/tcrypt.c
@@ -1939,6 +1939,10 @@ static int do_test(const char *alg, u32 type, u32 mask, int m)
test_mb_ahash_speed("sha256", sec, generic_hash_speed_template);
if (mode > 400 && mode < 500) break;
+ case 424:
+ test_mb_ahash_speed("sha512", sec, generic_hash_speed_template);
+ if (mode > 400 && mode < 500) break;
+
case 499:
break;