]> Gentwo Git Trees - linux/.git/commit
firmware_loader: use SHA-256 library API instead of crypto_shash API
authorEric Biggers <ebiggers@google.com>
Mon, 28 Apr 2025 19:09:09 +0000 (12:09 -0700)
committerDanilo Krummrich <dakr@kernel.org>
Wed, 30 Apr 2025 19:55:54 +0000 (21:55 +0200)
commit4f894483c902a49d428348f6ec8874fce59c63cb
treed518a29ecf5d1824f92dd01b64f59f9d7075585e
parente99efa8ac8fd9cebca99652cb55b277b7200455e
firmware_loader: 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.

Also take advantage of printk's built-in hex conversion using %*phN.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20250428190909.852705-1-ebiggers@kernel.org
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
drivers/base/firmware_loader/Kconfig
drivers/base/firmware_loader/main.c