summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@kernel.org>2025-08-27 08:11:23 -0700
committerEric Biggers <ebiggers@kernel.org>2025-08-29 09:50:19 -0700
commit20a1acb68d7a16481b70a693d49c2a42882f57a9 (patch)
treef4af2a3ea30b41c426870be13707ac784e94cb1d
parentc4b846ff6ecab0427cc7dcccbe0af60b244a6d56 (diff)
lib/crypto: chacha: Rename chacha.c to chacha-block-generic.c
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>
-rw-r--r--lib/crypto/Makefile4
-rw-r--r--lib/crypto/chacha-block-generic.c (renamed from lib/crypto/chacha.c)0
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/crypto/Makefile b/lib/crypto/Makefile
index cd460e5e3dd2..e71c4bee8310 100644
--- a/lib/crypto/Makefile
+++ b/lib/crypto/Makefile
@@ -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
diff --git a/lib/crypto/chacha.c b/lib/crypto/chacha-block-generic.c
index 77f68de71066..77f68de71066 100644
--- a/lib/crypto/chacha.c
+++ b/lib/crypto/chacha-block-generic.c