mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
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: 9d12ba86f8 ("crypto: brcm - Add Broadcom SPU driver")
Signed-off-by: Raveendra Padasalagi <[email protected]>
Reviewed-by: Ray Jui <[email protected]>
Reviewed-by: Scott Branden <[email protected]>
Cc: [email protected]
Signed-off-by: Herbert Xu <[email protected]>
This commit is contained in:
parent
5771a8c088
commit
a7e6e5d8b2
1 changed files with 1 additions and 0 deletions
|
|
@ -302,6 +302,7 @@ spu2_hash_xlate(enum hash_alg hash_alg, enum hash_mode hash_mode,
|
|||
break;
|
||||
case HASH_ALG_SHA3_512:
|
||||
*spu2_type = SPU2_HASH_TYPE_SHA3_512;
|
||||
break;
|
||||
case HASH_ALG_LAST:
|
||||
default:
|
||||
err = -EINVAL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue