[PATCH] lib/crypto: sha512: Use underlying functions instead of crypto_simd_usable()

Eric Biggers ebiggers at kernel.org
Mon Aug 11 10:58:32 PDT 2025


On Thu, Jul 31, 2025 at 03:36:51PM -0700, Eric Biggers wrote:
> 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.
> 
> Signed-off-by: Eric Biggers <ebiggers at kernel.org>
> ---
>  lib/crypto/arm/sha512.h   | 5 ++---
>  lib/crypto/arm64/sha512.h | 5 ++---
>  lib/crypto/riscv/sha512.h | 4 +---
>  lib/crypto/x86/sha512.h   | 4 +---
>  4 files changed, 6 insertions(+), 12 deletions(-)

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux.git/log/?h=libcrypto-next

- Eric



More information about the linux-arm-kernel mailing list