x86/sgx: Use SHA-256 library API instead of crypto_shash API
authorEric Biggers <ebiggers@google.com>
Mon, 28 Apr 2025 18:38:38 +0000 (11:38 -0700)
committerDave Hansen <dave.hansen@linux.intel.com>
Mon, 28 Apr 2025 19:39:33 +0000 (12:39 -0700)
commite59236b5a09e168fdf961a10d2519cef44f5d6b4
treeaa05a7a7e526583cde2729945729d6a95d4fd536
parentb4432656b36e5cc1d50a1f2dc15357543add530e
x86/sgx: 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.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Link: https://lore.kernel.org/all/20250428183838.799333-1-ebiggers%40kernel.org
arch/x86/Kconfig
arch/x86/kernel/cpu/sgx/driver.h
arch/x86/kernel/cpu/sgx/ioctl.c