]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: s390/sha512 - Initialise upper counter to zero for sha384
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 5 May 2025 12:54:41 +0000 (20:54 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 5 May 2025 12:58:14 +0000 (20:58 +0800)
commit64745a9ca890ed60d78162ec511e1983e1946d73
tree37874bb59d30aae214325ea232c5b8c00e0d484c
parent870c1f0dc2a5e67eb0697ae14365b930684ddfa5
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: 572b5c4682c7 ("crypto: s390/sha512 - Use API partial block handling")
Reported-by: Ingo Franzki <ifranzki@linux.ibm.com>
Reported-by: Harald Freudenberger <freude@linux.ibm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/s390/crypto/sha512_s390.c