]> www.infradead.org Git - users/hch/misc.git/commitdiff
lib/crypto: chacha: Rename chacha.c to chacha-block-generic.c
authorEric Biggers <ebiggers@kernel.org>
Wed, 27 Aug 2025 15:11:23 +0000 (08:11 -0700)
committerEric Biggers <ebiggers@kernel.org>
Fri, 29 Aug 2025 16:50:19 +0000 (09:50 -0700)
Rename chacha.c to chacha-block-generic.c to free up the name chacha.c
for the high-level API entry points (chacha_crypt() and
hchacha_block()), similar to the other algorithms.

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

index cd460e5e3dd2405f0d7d9e9ecc44461399ec5738..e71c4bee8310623c25122859946dbd057e3f69c3 100644 (file)
@@ -15,8 +15,8 @@ obj-$(CONFIG_CRYPTO_HASH_INFO)                        += hash_info.o
 obj-$(CONFIG_CRYPTO_LIB_UTILS)                 += libcryptoutils.o
 libcryptoutils-y                               := memneq.o utils.o
 
-# chacha is used by the /dev/random driver which is always builtin
-obj-y                                          += chacha.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
 
 obj-$(CONFIG_CRYPTO_LIB_AES)                   += libaes.o