From: Megha Dey Date: Mon, 27 Jun 2016 17:20:09 +0000 (-0700) Subject: crypto: tcrypt - Add new mode for sha512_mb X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=14009c4bde13d191206d58d0513a9179568a0125;p=linux-beck.git 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 Reviewed-by: Fenghua Yu Reviewed-by: Tim Chen Signed-off-by: Herbert Xu --- diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index 6ef78157a0ab..158c164cbddf 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;