summaryrefslogtreecommitdiffstats
path: root/crypto/testmgr.c
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@kernel.org>2025-06-30 09:06:39 -0700
committerEric Biggers <ebiggers@kernel.org>2025-07-04 10:23:11 -0700
commit077833cd600908359391bd22d5350c9106ea238c (patch)
tree6920c7ea3d8c1ddec7818b5969c993f276d93afb /crypto/testmgr.c
parentlib/crypto: sha256: Propagate sha256_block_state type to implementations (diff)
downloadlinux-077833cd600908359391bd22d5350c9106ea238c.tar.gz
linux-077833cd600908359391bd22d5350c9106ea238c.zip
lib/crypto: sha256: Add HMAC-SHA224 and HMAC-SHA256 support
Since HMAC support is commonly needed and is fairly simple, include it as a first-class citizen of the SHA-256 library. The API supports both incremental and one-shot computation, and either preparing the key ahead of time or just using a raw key. The implementation is much more streamlined than crypto/hmac.c. I've kept it consistent with the HMAC-SHA384 and HMAC-SHA512 code as much as possible. Testing of these functions will be via sha224_kunit and sha256_kunit, added by a later commit. Acked-by: Ard Biesheuvel <ardb@kernel.org> Link: https://lore.kernel.org/r/20250630160645.3198-9-ebiggers@kernel.org Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Diffstat (limited to 'crypto/testmgr.c')
0 files changed, 0 insertions, 0 deletions