Eric Biggers
70e2a9b121
BACKPORT: crypto: lib/sha1 - rename "sha" to "sha1"
...
The library implementation of the SHA-1 compression function is
confusingly called just "sha_transform()". Alongside it are some "SHA_"
constants and "sha_init()". Presumably these are left over from a time
when SHA just meant SHA-1. But now there are also SHA-2 and SHA-3, and
moreover SHA-1 is now considered insecure and thus shouldn't be used.
Therefore, rename these functions and constants to make it very clear
that they are for SHA-1. Also add a comment to make it clear that these
shouldn't be used.
For the extra-misleadingly named "SHA_MESSAGE_BYTES", rename it to
SHA1_BLOCK_SIZE and define it to just '64' rather than '(512/8)' so that
it matches the same definition in <crypto/sha.h>. This prepares for
merging <linux/cryptohash.h> into <crypto/sha.h>.
Change-Id: I16b8f12df33a2ac84a27c2087fbccf8fdf547d1f
Signed-off-by: Eric Biggers <ebiggers@google.com >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
2025-09-08 17:26:49 +03:00
..
2023-09-23 10:48:11 +02:00
2018-06-18 20:17:38 +05:30
2018-08-03 18:06:04 +08:00
2020-10-25 11:47:54 +01:00
2024-11-08 16:19:08 +01:00
2019-03-23 20:09:54 +01:00
2019-03-23 20:09:54 +01:00
2019-03-23 20:09:54 +01:00
2018-11-13 11:08:46 -08:00
2018-12-05 09:48:14 -08:00
2019-02-12 19:46:58 +01:00
2024-03-26 18:22:43 -04:00
2019-04-05 01:06:22 -07:00
2024-05-02 16:17:13 +02:00
2020-06-25 15:33:09 +02:00
2024-09-06 02:00:44 +03:00
2020-10-27 15:33:35 +08:00
2018-05-26 09:16:44 +02:00
2024-03-26 18:22:34 -04:00
2021-05-22 10:59:14 +02:00
2022-05-12 18:44:49 +08:00
2019-02-27 02:23:22 -08:00
2021-10-20 10:11:13 -07:00
2022-07-07 17:14:19 +00:00
2018-08-03 18:06:04 +08:00
2017-11-29 17:33:25 +11:00
2017-11-29 17:33:25 +11:00
2017-11-29 17:33:25 +11:00
2018-12-13 09:16:21 +01:00
2019-07-08 00:33:34 -07:00
2019-03-23 20:09:40 +01:00
2019-07-26 10:32:40 +02:00
2020-11-16 09:22:35 +01:00
2024-11-08 16:19:08 +01:00
2018-05-27 00:12:09 +08:00
2018-05-27 00:12:08 +08:00
2019-05-22 07:37:37 +02:00
2019-08-13 01:19:52 -07:00
2018-02-15 23:26:50 +08:00
2018-11-07 10:03:09 -08:00
2019-12-13 08:52:48 +01:00
2018-04-21 00:58:34 +08:00
2018-04-21 00:58:34 +08:00
2020-10-24 22:42:43 +02:00
2018-08-03 18:06:06 +08:00
2018-07-20 13:51:21 +08:00
2023-05-17 11:13:13 +02:00
2018-07-20 13:51:22 +08:00
2019-12-13 08:52:48 +01:00
2018-04-21 00:58:29 +08:00
2021-03-04 09:39:41 +01:00
2021-01-12 20:10:20 +01:00
2018-11-07 10:03:09 -08:00
2019-07-08 00:33:34 -07:00
2017-12-22 19:52:40 +11:00
2019-07-26 09:14:19 +02:00
2017-11-29 13:39:15 +11:00
2020-05-28 18:06:23 +05:30
2024-09-06 02:00:44 +03:00
2017-11-29 17:33:26 +11:00
2020-05-20 08:18:46 +02:00
2024-09-06 02:00:44 +03:00
2018-02-15 23:26:45 +08:00
2018-07-09 00:30:24 +08:00
2018-07-09 00:30:24 +08:00
2019-03-23 20:09:54 +01:00
2019-03-23 20:09:54 +01:00
2020-10-25 11:47:54 +01:00
2020-05-30 02:16:26 +08:00
2019-03-23 20:09:55 +01:00
2024-12-05 10:59:30 +01:00
2020-10-25 11:47:54 +01:00
2018-05-16 07:23:35 +02:00
2018-07-09 00:30:24 +08:00
2018-07-09 00:30:24 +08:00
2018-07-27 19:28:36 +08:00
2018-07-27 19:28:36 +08:00
2018-04-07 19:04:02 +09:00
2023-03-11 16:31:37 +01:00
2018-04-21 00:58:37 +08:00
2019-05-22 07:37:36 +02:00
2018-08-03 18:06:03 +08:00
2024-01-25 14:33:39 -08:00
2023-04-11 03:17:25 +00:00
2019-07-26 09:14:13 +02:00
2025-09-08 17:26:49 +03:00
2018-08-03 17:55:12 +08:00
2018-07-09 00:30:24 +08:00
2018-07-09 00:30:24 +08:00
2021-08-18 20:48:52 +08:00
2018-12-01 09:37:32 +01:00
2020-03-12 10:46:18 -07:00
2019-01-22 21:40:31 +01:00
2018-05-05 14:52:51 +08:00
2023-01-18 12:02:44 +00:00
2021-10-20 10:10:26 -07:00
2021-10-20 10:10:26 -07:00
2020-05-28 18:06:23 +05:30
2017-11-29 17:33:25 +11:00
2017-11-29 17:33:25 +11:00
2018-07-01 21:00:44 +08:00
2018-07-09 00:30:24 +08:00
2018-11-07 10:01:50 -08:00
2020-05-20 08:18:46 +02:00
2018-04-21 00:58:30 +08:00