]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: chacha - register only "-lib" drivers
authorEric Biggers <ebiggers@kernel.org>
Wed, 27 Aug 2025 15:11:21 +0000 (08:11 -0700)
committerEric Biggers <ebiggers@kernel.org>
Fri, 29 Aug 2025 16:50:19 +0000 (09:50 -0700)
commit9dd6bb667ecccba0e895c920473c14f374d925c5
tree7711b048bd311250e0537f65268fb1203f6009f0
parent8bc48d603c95917f48145f3a5a0fa25172fdba2c
crypto: chacha - register only "-lib" drivers

For the "chacha20", "xchacha20", and "xchacha12" skcipher algorithms,
instead of registering "*-generic" drivers as well as conditionally
registering "*-$(ARCH)" drivers, instead just register "*-lib" drivers.
These just use the regular library functions, so they just do the right
thing and are fully accelerated when supported by the CPU.

This eliminates the need for the ChaCha library to support
chacha_crypt_generic() and hchacha_block_generic() as part of its
external interface.  A later commit will make chacha_crypt_generic() a
static function.

Since this commit removes several "*-generic" driver names which
crypto/testmgr.c expects to exist, update testmgr.c accordingly.

Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20250827151131.27733-3-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
crypto/Kconfig
crypto/chacha.c
crypto/testmgr.c