diff options
| author | Jakub Kicinski <kuba@kernel.org> | 2026-01-28 02:47:44 +0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-01-28 02:47:44 +0300 |
| commit | 90defad242fbfd47967f03ee3bb39f09427195c2 (patch) | |
| tree | 81c40eaf7ed76dbde1f25a410b284eaf1a6c4323 /include | |
| parent | 62777c8015f3d86ab7853790192b24f0cee8a647 (diff) | |
| parent | 9ddfabcc1ed884ef47bcca317e77596c797bef83 (diff) | |
| download | linux-90defad242fbfd47967f03ee3bb39f09427195c2.tar.xz | |
Merge branch 'remove-low-level-sha-1-functions'
Eric Biggers says:
====================
Remove low-level SHA-1 functions
This series updates net/ipv6/addrconf.c to use the regular SHA-1
functions, then removes sha1_init_raw() and sha1_transform().
(These were originally patches 25-26 of the series
https://lore.kernel.org/linux-crypto/20250712232329.818226-1-ebiggers@kernel.org/ )
====================
Link: https://patch.msgid.link/20260123051656.396371-1-ebiggers@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/crypto/sha1.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/include/crypto/sha1.h b/include/crypto/sha1.h index 27f08b972931..4d973e016cd6 100644 --- a/include/crypto/sha1.h +++ b/include/crypto/sha1.h @@ -26,16 +26,6 @@ struct sha1_state { u8 buffer[SHA1_BLOCK_SIZE]; }; -/* - * An implementation of SHA-1's compression function. Don't use in new code! - * You shouldn't be using SHA-1, and even if you *have* to use SHA-1, this isn't - * the correct way to hash something with SHA-1 (use crypto_shash instead). - */ -#define SHA1_DIGEST_WORDS (SHA1_DIGEST_SIZE / 4) -#define SHA1_WORKSPACE_WORDS 16 -void sha1_init_raw(__u32 *buf); -void sha1_transform(__u32 *digest, const char *data, __u32 *W); - /* State for the SHA-1 compression function */ struct sha1_block_state { u32 h[SHA1_DIGEST_SIZE / 4]; |
