linux/fs/verity
Eric Biggers 998646b3c1 fsverity: Switch from crypto_shash to SHA-2 library
fsverity supports two hash algorithms: SHA-256 and SHA-512.  Since both
of these have a library API now, just use the library API instead of
crypto_shash.  Even with multiple algorithms, the library-based code
still ends up being quite a bit simpler, due to how clumsy the
old-school crypto API is.  The library-based code is also more
efficient, since it avoids overheads such as indirect calls.

Acked-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20250630172224.46909-3-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
2025-07-14 11:29:32 -07:00
..
enable.c fsverity: Switch from crypto_shash to SHA-2 library 2025-07-14 11:29:32 -07:00
fsverity_private.h fsverity: Switch from crypto_shash to SHA-2 library 2025-07-14 11:29:32 -07:00
hash_algs.c fsverity: Switch from crypto_shash to SHA-2 library 2025-07-14 11:29:32 -07:00
init.c treewide: const qualify ctl_tables where applicable 2025-01-28 13:48:37 +01:00
Kconfig fsverity: Switch from crypto_shash to SHA-2 library 2025-07-14 11:29:32 -07:00
Makefile fs-verity: add FS_IOC_READ_VERITY_METADATA ioctl 2021-02-07 14:51:11 -08:00
measure.c fsverity: Explicitly include <linux/export.h> 2025-07-14 11:29:32 -07:00
open.c fsverity: Switch from crypto_shash to SHA-2 library 2025-07-14 11:29:32 -07:00
read_metadata.c fsverity: Explicitly include <linux/export.h> 2025-07-14 11:29:32 -07:00
signature.c fsverity: expose verified fsverity built-in signatures to LSMs 2024-08-20 14:03:18 -04:00
verify.c fsverity: Switch from crypto_shash to SHA-2 library 2025-07-14 11:29:32 -07:00