Commit 64745a9c authored by Herbert Xu's avatar Herbert Xu
Browse files

crypto: s390/sha512 - Initialise upper counter to zero for sha384



Initialise the high bit counter to zero in sha384_init.

Also change the state initialisation to use ctx->sha512.state
instead of ctx->state for consistency.

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