]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KEYS: trusted_tpm1: Use SHA-1 library instead of crypto_shash
authorEric Biggers <ebiggers@kernel.org>
Sat, 9 Aug 2025 17:19:40 +0000 (10:19 -0700)
committerJarkko Sakkinen <jarkko@kernel.org>
Sat, 27 Sep 2025 18:05:06 +0000 (21:05 +0300)
commit366284cfbc8ff4110c00fc23285449f53df739a7
tree08ce82133c961a01e73c28ca84463d6a7d22cd1b
parenteed0e3d305530066b4fc5370107cff8ef1a0d229
KEYS: trusted_tpm1: Use SHA-1 library instead of crypto_shash

Use the SHA-1 and HMAC-SHA1 library functions instead of crypto_shash.
This is simpler and faster.

Replace the selection of CRYPTO, CRYPTO_HMAC, and CRYPTO_SHA1 with
CRYPTO_LIB_SHA1 and CRYPTO_LIB_UTILS.  The latter is needed for
crypto_memneq() which was previously being pulled in via CRYPTO.

Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
security/keys/trusted-keys/Kconfig
security/keys/trusted-keys/trusted_tpm1.c