]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
lib/crypto: sha512: Use underlying functions instead of crypto_simd_usable()
authorEric Biggers <ebiggers@kernel.org>
Thu, 31 Jul 2025 22:36:51 +0000 (15:36 -0700)
committerEric Biggers <ebiggers@kernel.org>
Tue, 26 Aug 2025 16:52:27 +0000 (12:52 -0400)
commitbce5816672ec27085489f096ec27739a4a233b7b
tree83282d1b42b6392724378d9e78132f545b650b41
parent640d31ea83c6f67133d47df9a0973f3281c91cf4
lib/crypto: sha512: Use underlying functions instead of crypto_simd_usable()

Since sha512_kunit tests the fallback code paths without using
crypto_simd_disabled_for_test, make the SHA-512 code just use the
underlying may_use_simd() and irq_fpu_usable() functions directly
instead of crypto_simd_usable().  This eliminates an unnecessary layer.

Link: https://lore.kernel.org/r/20250731223651.136939-1-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
lib/crypto/arm/sha512.h
lib/crypto/arm64/sha512.h
lib/crypto/riscv/sha512.h
lib/crypto/x86/sha512.h