]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
crypto: lib/sha1 - remove unnecessary includes of linux/cryptohash.h
authorEric Biggers <ebiggers@google.com>
Sat, 2 May 2020 18:24:26 +0000 (11:24 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 8 May 2020 05:32:17 +0000 (15:32 +1000)
commit2aaba014b55be46affcae78edff356c5e3389081
treeab82c7f657ad87bfb6f941781b0738ba8d6550c6
parent6b0b0fa2bce61db790efc8070ae6e5696435b0a8
crypto: lib/sha1 - remove unnecessary includes of linux/cryptohash.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.

Most files that include this header don't actually need it.  So in
preparation for removing it, remove all these unneeded includes of it.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
29 files changed:
arch/arm/crypto/sha1_glue.c
arch/arm/crypto/sha1_neon_glue.c
arch/arm/crypto/sha256_glue.c
arch/arm/crypto/sha256_neon_glue.c
arch/arm/kernel/armksyms.c
arch/arm64/crypto/sha256-glue.c
arch/arm64/crypto/sha512-glue.c
arch/microblaze/kernel/microblaze_ksyms.c
arch/mips/cavium-octeon/crypto/octeon-md5.c
arch/powerpc/crypto/md5-glue.c
arch/powerpc/crypto/sha1-spe-glue.c
arch/powerpc/crypto/sha256-spe-glue.c
arch/sparc/crypto/md5_glue.c
arch/sparc/crypto/sha1_glue.c
arch/sparc/crypto/sha256_glue.c
arch/sparc/crypto/sha512_glue.c
arch/unicore32/kernel/ksyms.c
arch/x86/crypto/sha1_ssse3_glue.c
arch/x86/crypto/sha256_ssse3_glue.c
arch/x86/crypto/sha512_ssse3_glue.c
drivers/crypto/atmel-sha.c
drivers/crypto/chelsio/chcr_algo.c
drivers/crypto/chelsio/chcr_ipsec.c
drivers/crypto/omap-sham.c
fs/f2fs/hash.c
include/net/tcp.h
lib/crypto/chacha.c
net/core/secure_seq.c
net/ipv6/seg6_hmac.c