]> git.ipfire.org Git - thirdparty/linux.git/commit
crypto: arm64/ghash - Move NEON GHASH assembly into its own file
authorEric Biggers <ebiggers@kernel.org>
Thu, 19 Mar 2026 06:17:09 +0000 (23:17 -0700)
committerEric Biggers <ebiggers@kernel.org>
Mon, 23 Mar 2026 22:24:59 +0000 (15:24 -0700)
commite3f473db02dae210f91e8eb8d0423232175639d6
tree08df19707ae14d667db6e9ce925d26be8987f971
parent71e59795c9f65a30416ed719b4b4da585df3903a
crypto: arm64/ghash - Move NEON GHASH assembly into its own file

arch/arm64/crypto/ghash-ce-core.S implements pmull_ghash_update_p8(),
which is used only by a crypto_shash implementation of GHASH.  It also
implements other functions, including pmull_ghash_update_p64() and
others, which are used only by a crypto_aead implementation of AES-GCM.

While some code is shared between pmull_ghash_update_p8() and
pmull_ghash_update_p64(), it's not very much.  Since
pmull_ghash_update_p8() will also need to be migrated into lib/crypto/
to achieve parity in the standalone GHASH support, let's move it into a
separate file ghash-neon-core.S.

Acked-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20260319061723.1140720-9-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
arch/arm64/crypto/Makefile
arch/arm64/crypto/ghash-ce-core.S
arch/arm64/crypto/ghash-neon-core.S [new file with mode: 0644]