android_kernel_motorola_sm6375/Documentation/security
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Eric Biggers 39c446881b
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: I644073a52d964f4c641a089cd42b9085d5454d5f
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2025-12-23 13:36:17 -08:00
..
keys
tpm It's a somewhat calmer cycle for docs this time, as the churn of the mass 2019-09-17 16:22:26 -07:00
credentials.rst
IMA-templates.rst ima: Define ima-modsig template 2019-08-05 18:40:25 -04:00
index.rst docs: security: move some books to it and update 2019-07-15 11:03:01 -03:00
lsm-development.rst docs: security: move some books to it and update 2019-07-15 11:03:01 -03:00
lsm.rst docs: security: move some books to it and update 2019-07-15 11:03:01 -03:00
sak.rst docs: security: move some books to it and update 2019-07-15 11:03:01 -03:00
SCTP.rst
self-protection.rst
siphash.rst BACKPORT: crypto: lib/sha1 - rename "sha" to "sha1" 2025-12-23 13:36:17 -08:00