lib/crypto: sha256: Propagate sha256_block_state type to implementations
authorEric Biggers <ebiggers@kernel.org>
Mon, 30 Jun 2025 16:06:38 +0000 (09:06 -0700)
committerEric Biggers <ebiggers@kernel.org>
Fri, 4 Jul 2025 17:22:57 +0000 (10:22 -0700)
commit4c855d5069ee2edbcf62fafc7f1a5d4cfea1bce1
tree902968ba8927f63f2dfc04ecd89c9fdc2579a760
parentb86ced882b8e667758afddffd8d6354197842110
lib/crypto: sha256: Propagate sha256_block_state type to implementations

The previous commit made the SHA-256 compression function state be
strongly typed, but it wasn't propagated all the way down to the
implementations of it.  Do that now.

Acked-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20250630160645.3198-8-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
17 files changed:
arch/mips/cavium-octeon/crypto/octeon-sha256.c
include/crypto/internal/sha2.h
lib/crypto/arm/sha256-ce.S
lib/crypto/arm/sha256.c
lib/crypto/arm64/sha256-ce.S
lib/crypto/arm64/sha256.c
lib/crypto/powerpc/sha256.c
lib/crypto/riscv/sha256-riscv64-zvknha_or_zvknhb-zvkb.S
lib/crypto/riscv/sha256.c
lib/crypto/s390/sha256.c
lib/crypto/sha256-generic.c
lib/crypto/sparc/sha256.c
lib/crypto/x86/sha256-avx-asm.S
lib/crypto/x86/sha256-avx2-asm.S
lib/crypto/x86/sha256-ni-asm.S
lib/crypto/x86/sha256-ssse3-asm.S
lib/crypto/x86/sha256.c