Re: [PATCH] lib/crypto: arm64: Assume a little-endian kernel

From: Ard Biesheuvel

Date: Wed Apr 01 2026 - 03:34:00 EST




On Wed, 1 Apr 2026, at 02:33, Eric Biggers wrote:
> Since support for big-endian arm64 kernels was removed, the CPU_LE()
> macro now unconditionally emits the code it is passed, and the CPU_BE()
> macro now unconditionally discards the code it is passed.
>
> Simplify the assembly code in lib/crypto/arm64/ accordingly.
>
> Signed-off-by: Eric Biggers <ebiggers@xxxxxxxxxx>
> ---
>
> This patch is targeting libcrypto-next
>
> lib/crypto/arm64/aes-cipher-core.S | 10 -------
> lib/crypto/arm64/chacha-neon-core.S | 16 -----------
> lib/crypto/arm64/ghash-neon-core.S | 2 +-
> lib/crypto/arm64/sha1-ce-core.S | 8 +++---
> lib/crypto/arm64/sha256-ce.S | 41 +++++++++++++----------------
> lib/crypto/arm64/sha512-ce-core.S | 16 +++++------
> lib/crypto/arm64/sm3-ce-core.S | 8 +++---
> 7 files changed, 36 insertions(+), 65 deletions(-)
>

Reviewed-by: Ard Biesheuvel <ardb@xxxxxxxxxx>