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

Ard Biesheuvel ardb at kernel.org
Wed Apr 1 00:31:28 PDT 2026



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 at kernel.org>
> ---
>
> 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 at kernel.org>



More information about the linux-arm-kernel mailing list