Commit 5b39aa36 authored by Herbert Xu's avatar Herbert Xu
Browse files

crypto: s390/sha512 - Fix sha512 state size



The sha512 state size in s390_sha_ctx is out by a factor of 8,
fix it so that it stays below HASH_MAX_DESCSIZE.  Also fix the
state init function which was writing garbage to the state.  Luckily
this is not actually used for anything other than export.

Reported-by: default avatarHarald Freudenberger <freude@linux.ibm.com>
Fixes: 572b5c46 ("crypto: s390/sha512 - Use API partial block handling")
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 2dfc7cd7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment