diff options
| author | Eric Biggers <ebiggers@google.com> | 2025-04-28 11:57:20 -0700 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2025-05-11 17:54:12 -0700 |
| commit | f7a667a046cf9962b0b3eb763b1fbe3eec925a2c (patch) | |
| tree | fc601d81f87f689e1ee2ab713c1820775d3b4183 /kernel/Kconfig.kexec | |
| parent | c91d78622e16f628176d7248044106b03818af6d (diff) | |
| download | lwn-f7a667a046cf9962b0b3eb763b1fbe3eec925a2c.tar.gz lwn-f7a667a046cf9962b0b3eb763b1fbe3eec925a2c.zip | |
kexec_file: use SHA-256 library API instead of crypto_shash API
This user of SHA-256 does not support any other algorithm, so the
crypto_shash abstraction provides no value. Just use the SHA-256 library
API instead, which is much simpler and easier to use.
Tested with '/sbin/kexec --kexec-file-syscall'.
Link: https://lkml.kernel.org/r/20250428185721.844686-1-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
Cc: Baoquan He <bhe@redhat.com>
Cc: Vivek Goyal <vgoyal@redhat.com>
Cc: Dave Young <dyoung@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'kernel/Kconfig.kexec')
| -rw-r--r-- | kernel/Kconfig.kexec | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/Kconfig.kexec b/kernel/Kconfig.kexec index 4d111f871951..9fea9dca15bd 100644 --- a/kernel/Kconfig.kexec +++ b/kernel/Kconfig.kexec @@ -38,8 +38,7 @@ config KEXEC config KEXEC_FILE bool "Enable kexec file based system call" depends on ARCH_SUPPORTS_KEXEC_FILE - select CRYPTO - select CRYPTO_SHA256 + select CRYPTO_LIB_SHA256 select KEXEC_CORE help This is new version of kexec system call. This system call is |
