]> git.ipfire.org Git - thirdparty/linux.git/commit
crypto: gcm - Use GHASH library instead of crypto_ahash
authorEric Biggers <ebiggers@kernel.org>
Thu, 19 Mar 2026 06:17:16 +0000 (23:17 -0700)
committerEric Biggers <ebiggers@kernel.org>
Mon, 23 Mar 2026 23:44:29 +0000 (16:44 -0700)
commit9f4e9553a1f40841ebce9ab749896e9312b1701b
tree819f8fff578ca9ecca12e097cac6370b5a40eedd
parent3e79c8ec49596288c4460029c4971b9c838103b9
crypto: gcm - Use GHASH library instead of crypto_ahash

Make the "gcm" template access GHASH using the library API instead of
crypto_ahash.  This is much simpler and more efficient, especially given
that all GHASH implementations are synchronous and CPU-based anyway.

Note that this allows "ghash" to be removed from the crypto_ahash (and
crypto_shash) API, which a later commit will do.

This mirrors the similar cleanup that was done with POLYVAL.

Acked-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20260319061723.1140720-16-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
crypto/Kconfig
crypto/gcm.c
crypto/testmgr.c
drivers/crypto/starfive/jh7110-aes.c