]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: arm/ghash - Make the "ghash" crypto_shash NEON-only
authorEric Biggers <ebiggers@kernel.org>
Thu, 19 Mar 2026 06:17:06 +0000 (23:17 -0700)
committerEric Biggers <ebiggers@kernel.org>
Mon, 23 Mar 2026 21:56:32 +0000 (14:56 -0700)
commit39afaff983fe64ea749aafb3ebd63d44212d2860
tree560ddbac5c562cf3e091e8b3517c15a4a85f051f
parent75e34bef53251744d95fd242b0345122fa462c7b
crypto: arm/ghash - Make the "ghash" crypto_shash NEON-only

arch/arm/crypto/ghash-ce-glue.c originally provided only a "ghash"
crypto_shash algorithm using PMULL if available, else NEON.

Significantly later, it was updated to also provide a full AES-GCM
implementation using PMULL.

This made the PMULL support in the "ghash" crypto_shash largely
obsolete.  Indeed, the arm64 equivalent of this file unconditionally
uses only ASIMD in its "ghash" crypto_shash.

Given that inconsistency and the fact that the NEON-only code is more
easily separable into the GHASH library than the PMULL based code is,
let's align with arm64 and just support NEON-only for the pure GHASH.

Acked-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20260319061723.1140720-6-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
arch/arm/crypto/ghash-ce-glue.c