diff options
author | Eric Biggers <ebiggers@kernel.org> | 2025-06-30 09:06:39 -0700 |
---|---|---|
committer | Eric Biggers <ebiggers@kernel.org> | 2025-07-04 10:23:11 -0700 |
commit | 077833cd600908359391bd22d5350c9106ea238c (patch) | |
tree | 6920c7ea3d8c1ddec7818b5969c993f276d93afb /scripts/clang-tools/gen_compile_commands.py | |
parent | 4c855d5069ee2edbcf62fafc7f1a5d4cfea1bce1 (diff) |
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 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions