linux_dsm_epyc7002/Documentation/security
Eric Biggers 6b0b0fa2bc 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>.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2020-05-08 15:32:17 +10:00
..
keys Documentation: security: core.rst: fix warnings 2019-11-22 10:01:47 -07:00
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 Documentation: Use "while" instead of "whilst" 2018-11-20 09:30:43 -07:00
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: fix section hyperlink 2019-10-01 06:47:37 -06:00
sak.rst docs: security: move some books to it and update 2019-07-15 11:03:01 -03:00
SCTP.rst doc: sctp: Merge and clean up rst files 2019-02-22 08:51:40 -07:00
self-protection.rst doc: self-protection: Add information about STACKLEAK feature 2018-09-04 10:35:48 -07:00
siphash.rst crypto: lib/sha1 - rename "sha" to "sha1" 2020-05-08 15:32:17 +10:00