diff options
| author | Eric Biggers <[email protected]> | 2025-07-12 23:22:55 +0000 |
|---|---|---|
| committer | Eric Biggers <[email protected]> | 2025-07-14 15:59:20 +0000 |
| commit | 4cbc84471bb606ddfaf424709dd8d56b56d7ae7b (patch) | |
| tree | b357bebae640703af730fb107bd00b8c56959fd3 /lib/strncpy_from_user.c | |
| parent | lib/crypto: sha1: Add SHA-1 library functions (diff) | |
| download | kernel-4cbc84471bb606ddfaf424709dd8d56b56d7ae7b.tar.gz kernel-4cbc84471bb606ddfaf424709dd8d56b56d7ae7b.zip | |
lib/crypto: sha1: Add HMAC support
Add HMAC support to the SHA-1 library, again following what was done for
SHA-2. Besides providing the basis for a more streamlined "hmac(sha1)"
shash, this will also be useful for multiple in-kernel users such as
net/sctp/auth.c, net/ipv6/seg6_hmac.c, and
security/keys/trusted-keys/trusted_tpm1.c. Those are currently using
crypto_shash, but using the library functions would be much simpler.
Reviewed-by: Ard Biesheuvel <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Eric Biggers <[email protected]>
Diffstat (limited to 'lib/strncpy_from_user.c')
0 files changed, 0 insertions, 0 deletions
