crypto: brcm - Fix SHA3-512 algorithm failure
authorraveendra padasalagi <raveendra.padasalagi@broadcom.com>
Fri, 23 Jun 2017 09:04:08 +0000 (14:34 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 18 Jul 2017 09:00:59 +0000 (17:00 +0800)
commita7e6e5d8b221e57fed9fda6ec81153fda773c073
tree5d5f5e157a271d629b094d7b6140c3232e2c339a
parent5771a8c08880cdca3bfb4a3fc6d309d6bba20877
crypto: brcm - Fix SHA3-512 algorithm failure

In Broadcom SPU driver, due to missing break statement
in spu2_hash_xlate() while mapping SPU2 equivalent
SHA3-512 value, -EINVAL is chosen and hence leading to
failure of SHA3-512 algorithm. This patch fixes the same.

Fixes: 9d12ba86f818 ("crypto: brcm - Add Broadcom SPU driver")
Signed-off-by: Raveendra Padasalagi <raveendra.padasalagi@broadcom.com>
Reviewed-by: Ray Jui <ray.jui@broadcom.com>
Reviewed-by: Scott Branden <scott.branden@broadcom.com>
Cc: stable@vger.kernel.org
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/bcm/spu2.c