]> git.ipfire.org Git - thirdparty/linux.git/commit
crypto: riscv/sha512 - Stop depending on sha512_generic_block_fn
authorEric Biggers <ebiggers@kernel.org>
Mon, 30 Jun 2025 16:03:08 +0000 (09:03 -0700)
committerEric Biggers <ebiggers@kernel.org>
Mon, 30 Jun 2025 16:26:19 +0000 (09:26 -0700)
commit485deceec03997eabd884d4da89217af73d1ab8d
tree1199e20158088d4a2e0cc559aea76aca483d2602
parent23e8b4371dbd5907d633262f36903144a378a114
crypto: riscv/sha512 - Stop depending on sha512_generic_block_fn

sha512_generic_block_fn() will no longer be available when the SHA-512
support in the old-school crypto API is changed to just wrap the SHA-512
library.  Replace the use of sha512_generic_block_fn() in
sha512-riscv64-glue.c with temporary code that uses the library's
__sha512_update().  This is just a temporary workaround to keep the
kernel building and functional at each commit; this code gets superseded
when the RISC-V optimized SHA-512 is migrated to lib/crypto/ anyway.

Acked-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20250630160320.2888-5-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
arch/riscv/crypto/Kconfig
arch/riscv/crypto/sha512-riscv64-glue.c