]> git.ipfire.org Git - thirdparty/linux.git/commit
crypto: arm/ghash - Move NEON GHASH assembly into its own file
authorEric Biggers <ebiggers@kernel.org>
Thu, 19 Mar 2026 06:17:07 +0000 (23:17 -0700)
committerEric Biggers <ebiggers@kernel.org>
Mon, 23 Mar 2026 21:56:32 +0000 (14:56 -0700)
commitca5ff14c1a70e7eeff5705105554ce8bac643937
tree2988346036f9581ca29a7beb14a45b1c824df09d
parent39afaff983fe64ea749aafb3ebd63d44212d2860
crypto: arm/ghash - Move NEON GHASH assembly into its own file

arch/arm/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-7-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
arch/arm/crypto/Makefile
arch/arm/crypto/ghash-ce-core.S
arch/arm/crypto/ghash-neon-core.S [new file with mode: 0644]