lib/crypto: hash_info: Move hash_info.c into lib/crypto/
authorEric Biggers <ebiggers@kernel.org>
Mon, 30 Jun 2025 17:22:23 +0000 (10:22 -0700)
committerEric Biggers <ebiggers@kernel.org>
Tue, 8 Jul 2025 19:03:44 +0000 (12:03 -0700)
commitaacb37f597d0b50800a233ab2c29c195a1595147
tree00122a9a4cb092afa56a2a29f9d5747ff45f3e74
parent57b15e9260a31438e91cf83dbfcb63333b24c684
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>
crypto/Kconfig
crypto/Makefile
crypto/hash_info.c [deleted file]
lib/crypto/Kconfig
lib/crypto/Makefile
lib/crypto/hash_info.c [new file with mode: 0644]