]> www.infradead.org Git - users/hch/misc.git/commitdiff
lib/crypto: chacha: Rename libchacha.c to chacha.c
authorEric Biggers <ebiggers@kernel.org>
Wed, 27 Aug 2025 15:11:24 +0000 (08:11 -0700)
committerEric Biggers <ebiggers@kernel.org>
Fri, 29 Aug 2025 16:50:19 +0000 (09:50 -0700)
Rename libchacha.c to chacha.c to make the naming consistent with other
algorithms and allow additional source files to be added to the
libchacha module.  This file currently contains chacha_crypt_generic(),
but it will soon be updated to contain chacha_crypt().

Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20250827151131.27733-6-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
lib/crypto/Makefile
lib/crypto/chacha.c [moved from lib/crypto/libchacha.c with 100% similarity]

index e71c4bee8310623c25122859946dbd057e3f69c3..a006048ba2bd72f505cffd416ab8d3df5d96ffca 100644 (file)
@@ -18,6 +18,7 @@ libcryptoutils-y                              := memneq.o utils.o
 # chacha20_block() is used by the /dev/random driver which is always builtin
 obj-y                                          += chacha-block-generic.o
 obj-$(CONFIG_CRYPTO_LIB_CHACHA_GENERIC)                += libchacha.o
+libchacha-y := chacha.o
 
 obj-$(CONFIG_CRYPTO_LIB_AES)                   += libaes.o
 libaes-y                                       := aes.o
similarity index 100%
rename from lib/crypto/libchacha.c
rename to lib/crypto/chacha.c