]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: lib/sha1 - fold linux/cryptohash.h into crypto/sha.h
authorEric Biggers <ebiggers@google.com>
Sat, 2 May 2020 18:24:27 +0000 (11:24 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 8 May 2020 05:32:17 +0000 (15:32 +1000)
commitea475d247c5a9cafe73e78e11e7e7e3c704502ea
treeaf8e07c49d95c2a4fe460d1ec59c3c215a314cd7
parentb2c309797757de238c4ed7314968a03947a5b020
crypto: lib/sha1 - fold linux/cryptohash.h into crypto/sha.h

<linux/cryptohash.h> sounds very generic and important, like it's the
header to include if you're doing cryptographic hashing in the kernel.
But actually it only includes the library implementation of the SHA-1
compression function (not even the full SHA-1).  This should basically
never be used anymore; SHA-1 is no longer considered secure, and there
are much better ways to do cryptographic hashing in the kernel.

Remove this header and fold it into <crypto/sha.h> which already
contains constants and functions for SHA-1 (along with SHA-2).

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/sha1_generic.c
drivers/char/random.c
include/crypto/sha.h
include/linux/cryptohash.h [deleted file]
include/linux/filter.h
lib/sha1.c