]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KEYS: encrypted: Use SHA-256 library instead of crypto_shash
authorEric Biggers <ebiggers@kernel.org>
Mon, 15 Sep 2025 18:14:43 +0000 (21:14 +0300)
committerJarkko Sakkinen <jarkko@kernel.org>
Sat, 4 Oct 2025 14:25:35 +0000 (17:25 +0300)
commit9b8d24a49fe83787208479d51f320cead25e856c
treefc71229797e434503cb14f42687abe9b7396f8e8
parent720a485d12c590750f40f4ffbe41e36725f43f3d
KEYS: encrypted: Use SHA-256 library instead of crypto_shash

Instead of the "sha256" crypto_shash, just use sha256().  Similarly,
instead of the "hmac(sha256)" crypto_shash, just use
hmac_sha256_usingrawkey().  This is simpler and faster.

Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Reviewed-by: Mimi Zohar <zohar@linux.ibm.com>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
security/keys/Kconfig
security/keys/encrypted-keys/encrypted.c