Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

lib/crypto: hash_info: Move hash_info.c into lib/crypto/

crypto/hash_info.c just contains a couple of arrays that map HASH_ALGO_*
algorithm IDs to properties of those algorithms. It is compiled only
when CRYPTO_HASH_INFO=y, but currently CRYPTO_HASH_INFO depends on
CRYPTO. Since this can be useful without the old-school crypto API,
move it into lib/crypto/ so that it no longer depends on CRYPTO.

This eliminates the need for FS_VERITY to select CRYPTO after it's been
converted to use lib/crypto/.

Acked-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20250630172224.46909-2-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>

+5 -4
-3
crypto/Kconfig
··· 1422 1422 1423 1423 endmenu 1424 1424 1425 - config CRYPTO_HASH_INFO 1426 - bool 1427 - 1428 1425 if !KMSAN # avoid false positives from assembly 1429 1426 if ARM 1430 1427 source "arch/arm/crypto/Kconfig"
-1
crypto/Makefile
··· 204 204 obj-$(CONFIG_XOR_BLOCKS) += xor.o 205 205 obj-$(CONFIG_ASYNC_CORE) += async_tx/ 206 206 obj-$(CONFIG_ASYMMETRIC_KEY_TYPE) += asymmetric_keys/ 207 - obj-$(CONFIG_CRYPTO_HASH_INFO) += hash_info.o 208 207 crypto_simd-y := simd.o 209 208 obj-$(CONFIG_CRYPTO_SIMD) += crypto_simd.o 210 209
crypto/hash_info.c lib/crypto/hash_info.c
+3
lib/crypto/Kconfig
··· 2 2 3 3 menu "Crypto library routines" 4 4 5 + config CRYPTO_HASH_INFO 6 + bool 7 + 5 8 config CRYPTO_LIB_UTILS 6 9 tristate 7 10
+2
lib/crypto/Makefile
··· 8 8 quiet_cmd_perlasm_with_args = PERLASM $@ 9 9 cmd_perlasm_with_args = $(PERL) $(<) void $(@) 10 10 11 + obj-$(CONFIG_CRYPTO_HASH_INFO) += hash_info.o 12 + 11 13 obj-$(CONFIG_CRYPTO_LIB_UTILS) += libcryptoutils.o 12 14 libcryptoutils-y := memneq.o utils.o 13 15