]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
crypto: sha - split sha.h into sha1.h and sha2.h
authorEric Biggers <ebiggers@google.com>
Fri, 13 Nov 2020 05:20:21 +0000 (21:20 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 20 Nov 2020 03:45:33 +0000 (14:45 +1100)
Currently <crypto/sha.h> contains declarations for both SHA-1 and SHA-2,
and <crypto/sha3.h> contains declarations for SHA-3.

This organization is inconsistent, but more importantly SHA-1 is no
longer considered to be cryptographically secure.  So to the extent
possible, SHA-1 shouldn't be grouped together with any of the other SHA
versions, and usage of it should be phased out.

Therefore, split <crypto/sha.h> into two headers <crypto/sha1.h> and
<crypto/sha2.h>, and make everyone explicitly specify whether they want
the declarations for SHA-1, SHA-2, or both.

This avoids making the SHA-1 declarations visible to files that don't
want anything to do with SHA-1.  It also prepares for potentially moving
sha1.h into a new insecure/ or dangerous/ directory.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Acked-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
121 files changed:
arch/arm/crypto/sha1-ce-glue.c
arch/arm/crypto/sha1.h
arch/arm/crypto/sha1_glue.c
arch/arm/crypto/sha1_neon_glue.c
arch/arm/crypto/sha2-ce-glue.c
arch/arm/crypto/sha256_glue.c
arch/arm/crypto/sha256_neon_glue.c
arch/arm/crypto/sha512-glue.c
arch/arm/crypto/sha512-neon-glue.c
arch/arm64/crypto/aes-glue.c
arch/arm64/crypto/sha1-ce-glue.c
arch/arm64/crypto/sha2-ce-glue.c
arch/arm64/crypto/sha256-glue.c
arch/arm64/crypto/sha512-ce-glue.c
arch/arm64/crypto/sha512-glue.c
arch/mips/cavium-octeon/crypto/octeon-sha1.c
arch/mips/cavium-octeon/crypto/octeon-sha256.c
arch/mips/cavium-octeon/crypto/octeon-sha512.c
arch/powerpc/crypto/sha1-spe-glue.c
arch/powerpc/crypto/sha1.c
arch/powerpc/crypto/sha256-spe-glue.c
arch/s390/crypto/sha.h
arch/s390/crypto/sha1_s390.c
arch/s390/crypto/sha256_s390.c
arch/s390/crypto/sha3_256_s390.c
arch/s390/crypto/sha3_512_s390.c
arch/s390/crypto/sha512_s390.c
arch/s390/purgatory/purgatory.c
arch/sparc/crypto/sha1_glue.c
arch/sparc/crypto/sha256_glue.c
arch/sparc/crypto/sha512_glue.c
arch/x86/crypto/sha1_ssse3_glue.c
arch/x86/crypto/sha256_ssse3_glue.c
arch/x86/crypto/sha512_ssse3_glue.c
arch/x86/purgatory/purgatory.c
crypto/asymmetric_keys/asym_tpm.c
crypto/sha1_generic.c
crypto/sha256_generic.c
crypto/sha512_generic.c
drivers/char/random.c
drivers/crypto/allwinner/sun4i-ss/sun4i-ss.h
drivers/crypto/allwinner/sun8i-ce/sun8i-ce-hash.c
drivers/crypto/allwinner/sun8i-ce/sun8i-ce.h
drivers/crypto/allwinner/sun8i-ss/sun8i-ss-hash.c
drivers/crypto/allwinner/sun8i-ss/sun8i-ss.h
drivers/crypto/amcc/crypto4xx_alg.c
drivers/crypto/amcc/crypto4xx_core.c
drivers/crypto/atmel-authenc.h
drivers/crypto/atmel-sha.c
drivers/crypto/axis/artpec6_crypto.c
drivers/crypto/bcm/cipher.c
drivers/crypto/bcm/cipher.h
drivers/crypto/bcm/spu.h
drivers/crypto/caam/compat.h
drivers/crypto/cavium/nitrox/nitrox_aead.c
drivers/crypto/ccp/ccp-crypto-sha.c
drivers/crypto/ccp/ccp-crypto.h
drivers/crypto/ccree/cc_driver.h
drivers/crypto/chelsio/chcr_algo.c
drivers/crypto/hisilicon/sec2/sec_crypto.c
drivers/crypto/img-hash.c
drivers/crypto/inside-secure/safexcel.h
drivers/crypto/inside-secure/safexcel_cipher.c
drivers/crypto/inside-secure/safexcel_hash.c
drivers/crypto/ixp4xx_crypto.c
drivers/crypto/marvell/cesa/hash.c
drivers/crypto/marvell/octeontx/otx_cptvf_algs.c
drivers/crypto/mediatek/mtk-sha.c
drivers/crypto/mxs-dcp.c
drivers/crypto/n2_core.c
drivers/crypto/nx/nx-sha256.c
drivers/crypto/nx/nx-sha512.c
drivers/crypto/nx/nx.c
drivers/crypto/omap-sham.c
drivers/crypto/padlock-sha.c
drivers/crypto/picoxcell_crypto.c
drivers/crypto/qat/qat_common/qat_algs.c
drivers/crypto/qce/common.c
drivers/crypto/qce/core.c
drivers/crypto/qce/sha.h
drivers/crypto/rockchip/rk3288_crypto.h
drivers/crypto/s5p-sss.c
drivers/crypto/sa2ul.c
drivers/crypto/sa2ul.h
drivers/crypto/sahara.c
drivers/crypto/stm32/stm32-hash.c
drivers/crypto/talitos.c
drivers/crypto/ux500/hash/hash_core.c
drivers/firmware/efi/embedded-firmware.c
drivers/net/ethernet/chelsio/inline_crypto/ch_ipsec/chcr_ipsec.c
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls.h
drivers/nfc/s3fwrn5/firmware.c
drivers/tee/tee_core.c
fs/crypto/fname.c
fs/crypto/hkdf.c
fs/ubifs/auth.c
fs/verity/fsverity_private.h
include/crypto/hash_info.h
include/crypto/sha.h [deleted file]
include/crypto/sha1.h [new file with mode: 0644]
include/crypto/sha1_base.h
include/crypto/sha2.h [new file with mode: 0644]
include/crypto/sha256_base.h
include/crypto/sha512_base.h
include/linux/ccp.h
include/linux/filter.h
include/linux/purgatory.h
kernel/crash_core.c
kernel/kexec_core.c
kernel/kexec_file.c
lib/crypto/sha256.c
lib/digsig.c
lib/sha1.c
net/ipv6/seg6_hmac.c
net/mptcp/crypto.c
net/mptcp/options.c
net/mptcp/subflow.c
security/integrity/integrity.h
security/keys/encrypted-keys/encrypted.c
security/keys/trusted-keys/trusted_tpm1.c
sound/soc/codecs/cros_ec_codec.c

index e79b1fb4b4dcaab1c9b1b577e89dcbacc5cc8d75..de9100c67b3772b211cf4dfd7c0985d181d12eee 100644 (file)
@@ -7,7 +7,7 @@
 
 #include <crypto/internal/hash.h>
 #include <crypto/internal/simd.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
 #include <crypto/sha1_base.h>
 #include <linux/cpufeature.h>
 #include <linux/crypto.h>
index 758db3e9ff0a93e69573d0c86e3dafdab92efbde..b1b7e21da2c3c5bf8e2606d2427121cee4a39fb6 100644 (file)
@@ -3,7 +3,7 @@
 #define ASM_ARM_CRYPTO_SHA1_H
 
 #include <linux/crypto.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
 
 extern int sha1_update_arm(struct shash_desc *desc, const u8 *data,
                           unsigned int len);
index 4e954b3f7ecd5d33749e84746951ec3cf04a1c54..6c2b849e459d4eb8cc605c4ca4ed34db39f7bcbb 100644 (file)
@@ -15,7 +15,7 @@
 #include <linux/init.h>
 #include <linux/module.h>
 #include <linux/types.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
 #include <crypto/sha1_base.h>
 #include <asm/byteorder.h>
 
index 0071e5e4411a241ed314008222e2105188c77ee8..cfe36ae0f3f596fd7e34be2b2d61a61589933849 100644 (file)
@@ -19,7 +19,7 @@
 #include <linux/module.h>
 #include <linux/mm.h>
 #include <linux/types.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
 #include <crypto/sha1_base.h>
 #include <asm/neon.h>
 #include <asm/simd.h>
index 87f0b62386c6a8fc548ee4588f8334ab5f9aeca8..c62ce89dd3e0d886f0aef109790502035256f346 100644 (file)
@@ -7,7 +7,7 @@
 
 #include <crypto/internal/hash.h>
 #include <crypto/internal/simd.h>
-#include <crypto/sha.h>
+#include <crypto/sha2.h>
 #include <crypto/sha256_base.h>
 #include <linux/cpufeature.h>
 #include <linux/crypto.h>
index b8a4f79020cf8a14ae49c05dc241d1eceb55990a..433ee4ddce6c81721978306b547d08693adf4643 100644 (file)
@@ -17,7 +17,7 @@
 #include <linux/mm.h>
 #include <linux/types.h>
 #include <linux/string.h>
-#include <crypto/sha.h>
+#include <crypto/sha2.h>
 #include <crypto/sha256_base.h>
 #include <asm/simd.h>
 #include <asm/neon.h>
index 79820b9e2541de89cd19f79731d47783e42d383f..701706262ef34e831ff25ad8bf84b739ff35f6a1 100644 (file)
@@ -13,7 +13,7 @@
 #include <crypto/internal/simd.h>
 #include <linux/types.h>
 #include <linux/string.h>
-#include <crypto/sha.h>
+#include <crypto/sha2.h>
 #include <crypto/sha256_base.h>
 #include <asm/byteorder.h>
 #include <asm/simd.h>
index 8775aa42bbbe8aa27c5ee393cc5d40befa5f3b1d..0635a65aa488ba201a10f19fea35fe8e551ccf8f 100644 (file)
@@ -6,7 +6,7 @@
  */
 
 #include <crypto/internal/hash.h>
-#include <crypto/sha.h>
+#include <crypto/sha2.h>
 #include <crypto/sha512_base.h>
 #include <linux/crypto.h>
 #include <linux/module.h>
index 96cb944035409bf57cf16ae4847c5d5472bf3cb6..c879ad32db51f27e27bc57d4550b269445b205fe 100644 (file)
@@ -7,7 +7,7 @@
 
 #include <crypto/internal/hash.h>
 #include <crypto/internal/simd.h>
-#include <crypto/sha.h>
+#include <crypto/sha2.h>
 #include <crypto/sha512_base.h>
 #include <linux/crypto.h>
 #include <linux/module.h>
index 395bbf64b2abb31b9be13856e59f2deb4c90aa79..34b8a89197be33f3f2863e257af7614254b02e43 100644 (file)
@@ -10,7 +10,7 @@
 #include <asm/simd.h>
 #include <crypto/aes.h>
 #include <crypto/ctr.h>
-#include <crypto/sha.h>
+#include <crypto/sha2.h>
 #include <crypto/internal/hash.h>
 #include <crypto/internal/simd.h>
 #include <crypto/internal/skcipher.h>
index c63b99211db3d7f4227904bdc2d110b50ccc70e5..c93121bcfdeba5c020ef5b013c0fa2654476693f 100644 (file)
@@ -10,7 +10,7 @@
 #include <asm/unaligned.h>
 #include <crypto/internal/hash.h>
 #include <crypto/internal/simd.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
 #include <crypto/sha1_base.h>
 #include <linux/cpufeature.h>
 #include <linux/crypto.h>
index 5e956d7582a563265e22bfda6ebf69b7ce2152ad..31ba3da5e61bd4265b8a06c66b061b787533cdd1 100644 (file)
@@ -10,7 +10,7 @@
 #include <asm/unaligned.h>
 #include <crypto/internal/hash.h>
 #include <crypto/internal/simd.h>
-#include <crypto/sha.h>
+#include <crypto/sha2.h>
 #include <crypto/sha256_base.h>
 #include <linux/cpufeature.h>
 #include <linux/crypto.h>
index 77bc6e72abae9457af778dc48c4eecca8f54611c..9462f6088b3f424c949e6c3b29eba2120f8e61a8 100644 (file)
@@ -10,7 +10,7 @@
 #include <asm/simd.h>
 #include <crypto/internal/hash.h>
 #include <crypto/internal/simd.h>
-#include <crypto/sha.h>
+#include <crypto/sha2.h>
 #include <crypto/sha256_base.h>
 #include <linux/types.h>
 #include <linux/string.h>
index dc890a719f54c58fd571a2828a56e7c99ada51f0..faa83f6cf376c452a3f9f80d75e2b79ca4c66229 100644 (file)
@@ -14,7 +14,7 @@
 #include <asm/unaligned.h>
 #include <crypto/internal/hash.h>
 #include <crypto/internal/simd.h>
-#include <crypto/sha.h>
+#include <crypto/sha2.h>
 #include <crypto/sha512_base.h>
 #include <linux/cpufeature.h>
 #include <linux/crypto.h>
index 370ccb29602fda88772f8941f08d7a86e9bfe1d3..2acff1c7df5d7699d22674d23ead6a57e59e6c0e 100644 (file)
@@ -8,7 +8,7 @@
 #include <crypto/internal/hash.h>
 #include <linux/types.h>
 #include <linux/string.h>
-#include <crypto/sha.h>
+#include <crypto/sha2.h>
 #include <crypto/sha512_base.h>
 #include <asm/neon.h>
 
index 75e79b47abfe8ae2cf531ba3da35c5054a6c0ff4..30f1d75208a5960f537b5181e5d2e8360bb3dc6d 100644 (file)
@@ -14,7 +14,7 @@
  */
 
 #include <linux/mm.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
 #include <linux/init.h>
 #include <linux/types.h>
 #include <linux/module.h>
index a682ce76716ac8efcca61ab382ba316ce5bf8c34..36cb92895d72594b433c1ec6eea32166a7ac2c0e 100644 (file)
@@ -15,7 +15,7 @@
  */
 
 #include <linux/mm.h>
-#include <crypto/sha.h>
+#include <crypto/sha2.h>
 #include <linux/init.h>
 #include <linux/types.h>
 #include <linux/module.h>
index 50722a0cfb53145dfa9818ea122d071f12ec3646..359f039820d8d8b1d89981a96fbafd7e76e91cef 100644 (file)
@@ -14,7 +14,7 @@
  */
 
 #include <linux/mm.h>
-#include <crypto/sha.h>
+#include <crypto/sha2.h>
 #include <linux/init.h>
 #include <linux/types.h>
 #include <linux/module.h>
index cb57be4ada61cdce3b2e267fd3b40b288652d86b..b1e577cbf00ca73c4460818722f8ab5f54c928f6 100644 (file)
@@ -12,7 +12,7 @@
 #include <linux/module.h>
 #include <linux/mm.h>
 #include <linux/types.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
 #include <asm/byteorder.h>
 #include <asm/switch_to.h>
 #include <linux/hardirq.h>
index b40dc50a6908aeb3be8f7e8bb08d75b076e70863..7a55d790cdb1eb06128ae45de3a0c07057db31ef 100644 (file)
@@ -17,7 +17,7 @@
 #include <linux/module.h>
 #include <linux/mm.h>
 #include <linux/types.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
 #include <asm/byteorder.h>
 
 void powerpc_sha_transform(u32 *state, const u8 *src);
index ceb0b6c980b3bb31e9f4e43618cebb5350709aa6..88530ae0791fd7a5d6e0e5fec5fa31ce225b44e7 100644 (file)
@@ -13,7 +13,7 @@
 #include <linux/module.h>
 #include <linux/mm.h>
 #include <linux/types.h>
-#include <crypto/sha.h>
+#include <crypto/sha2.h>
 #include <asm/byteorder.h>
 #include <asm/switch_to.h>
 #include <linux/hardirq.h>
index ada2f98c27b73fb917d9a9cc8f3049c5b483e6d3..65ea12fc87a1fd51f4a641b317ea70aaf6657626 100644 (file)
@@ -11,7 +11,8 @@
 #define _CRYPTO_ARCH_S390_SHA_H
 
 #include <linux/crypto.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
+#include <crypto/sha2.h>
 #include <crypto/sha3.h>
 
 /* must be big enough for the largest SHA variant */
index 698b1e6d3c14d1c3a2b8176030508d0bb7f2af91..a3fabf310a38fa62883635e20d95c72fa0f0ba3a 100644 (file)
@@ -22,7 +22,7 @@
 #include <linux/init.h>
 #include <linux/module.h>
 #include <linux/cpufeature.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
 #include <asm/cpacf.h>
 
 #include "sha.h"
index b52c87e449398ff3ebf691a0431adfcecaf54566..24983f17567695d97d9393243d9c5f20cba80dca 100644 (file)
@@ -12,7 +12,7 @@
 #include <linux/init.h>
 #include <linux/module.h>
 #include <linux/cpufeature.h>
-#include <crypto/sha.h>
+#include <crypto/sha2.h>
 #include <asm/cpacf.h>
 
 #include "sha.h"
index 460cbbbaa44ad31c039fdeb6e6779381389d1f2c..30ac49b635bf273f85160aded199b68962a529ba 100644 (file)
@@ -12,7 +12,6 @@
 #include <linux/init.h>
 #include <linux/module.h>
 #include <linux/cpufeature.h>
-#include <crypto/sha.h>
 #include <crypto/sha3.h>
 #include <asm/cpacf.h>
 
index 72cf460a53e536dc15935bf8102f4d50623b593a..e70d50f7620f7f197c3ac7a422ff6c32ff6d736e 100644 (file)
@@ -11,7 +11,6 @@
 #include <linux/init.h>
 #include <linux/module.h>
 #include <linux/cpufeature.h>
-#include <crypto/sha.h>
 #include <crypto/sha3.h>
 #include <asm/cpacf.h>
 
index ad29db085a1884973e2f02119b81176c680909eb..29a6bd404c59b4964b8643ff382c94df4c7dda10 100644 (file)
@@ -8,7 +8,7 @@
  * Author(s): Jan Glauber (jang@de.ibm.com)
  */
 #include <crypto/internal/hash.h>
-#include <crypto/sha.h>
+#include <crypto/sha2.h>
 #include <linux/errno.h>
 #include <linux/init.h>
 #include <linux/kernel.h>
index 0a423bcf674699f5264e1e709a325f2e0d807a87..030efda05dbe54143cf9375ed764a24f7cc0211a 100644 (file)
@@ -9,7 +9,7 @@
 
 #include <linux/kexec.h>
 #include <linux/string.h>
-#include <crypto/sha.h>
+#include <crypto/sha2.h>
 #include <asm/purgatory.h>
 
 int verify_sha256_digest(void)
index dc017782be523d000aac2d10e0ace71584fbeaaa..86a654cce5abc8ef47aca3c571356740c4da7361 100644 (file)
@@ -16,7 +16,7 @@
 #include <linux/module.h>
 #include <linux/mm.h>
 #include <linux/types.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
 
 #include <asm/pstate.h>
 #include <asm/elf.h>
index ca2547df96523c10116965422877b806d948d864..60ec524cf9ca89cb4969950fc1974046284b7b85 100644 (file)
@@ -16,7 +16,7 @@
 #include <linux/module.h>
 #include <linux/mm.h>
 #include <linux/types.h>
-#include <crypto/sha.h>
+#include <crypto/sha2.h>
 
 #include <asm/pstate.h>
 #include <asm/elf.h>
index 3b2ca732ff7a5a3b63d5a15c5afd97209d3a40e2..273ce21918c1725542e9a625b273aece1eea9d98 100644 (file)
@@ -15,7 +15,7 @@
 #include <linux/module.h>
 #include <linux/mm.h>
 #include <linux/types.h>
-#include <crypto/sha.h>
+#include <crypto/sha2.h>
 
 #include <asm/pstate.h>
 #include <asm/elf.h>
index 18200135603fc9598075b7aed5d8e3069c149138..44340a1139e0b7cd57be7ee46491199be33ecd31 100644 (file)
@@ -22,7 +22,7 @@
 #include <linux/module.h>
 #include <linux/mm.h>
 #include <linux/types.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
 #include <crypto/sha1_base.h>
 #include <asm/simd.h>
 
index dd06249229e169629ba65411a99ca2d488b72686..3a5f6be7dbba4e5af1cc7e0103ff6cc9ebbf73b2 100644 (file)
@@ -35,7 +35,7 @@
 #include <linux/module.h>
 #include <linux/mm.h>
 #include <linux/types.h>
-#include <crypto/sha.h>
+#include <crypto/sha2.h>
 #include <crypto/sha256_base.h>
 #include <linux/string.h>
 #include <asm/simd.h>
index b0b05c93409e1600ec7ef3098eb74060b7432981..30e70f4fe2f7a4ba9d3869079179d6ddc1601f4d 100644 (file)
@@ -34,7 +34,7 @@
 #include <linux/mm.h>
 #include <linux/string.h>
 #include <linux/types.h>
-#include <crypto/sha.h>
+#include <crypto/sha2.h>
 #include <crypto/sha512_base.h>
 #include <asm/simd.h>
 
index 7b37a412f829d6a865de48d0f5305c189f869d1c..f03b64d9cb51b1d3505605db9019b89032367869 100644 (file)
@@ -9,7 +9,7 @@
  */
 
 #include <linux/bug.h>
-#include <crypto/sha.h>
+#include <crypto/sha2.h>
 #include <asm/purgatory.h>
 
 #include "../boot/string.h"
index 378b18b9bc342a5aa9afb4efb8cf180f0a1edd76..511932aa94a6f5a585c52fbf45d7575e132e83cc 100644 (file)
@@ -10,7 +10,7 @@
 #include <linux/tpm_command.h>
 #include <crypto/akcipher.h>
 #include <crypto/hash.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
 #include <asm/unaligned.h>
 #include <keys/asymmetric-subtype.h>
 #include <keys/trusted_tpm.h>
index 1d43472fecbde1967d0a1b26e814329c65c67ffb..325b57fe28dc1351126f4e9527aaff7b25a2b70b 100644 (file)
@@ -16,7 +16,7 @@
 #include <linux/module.h>
 #include <linux/mm.h>
 #include <linux/types.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
 #include <crypto/sha1_base.h>
 #include <asm/byteorder.h>
 
index 88156e3e2a33e0c24611a55b6a196c4c2de2b5ca..3b377197236e25bdd6ee68647b6784e7cbca80a4 100644 (file)
@@ -12,7 +12,7 @@
 #include <linux/module.h>
 #include <linux/mm.h>
 #include <linux/types.h>
-#include <crypto/sha.h>
+#include <crypto/sha2.h>
 #include <crypto/sha256_base.h>
 #include <asm/byteorder.h>
 #include <asm/unaligned.h>
index e34d09dd9971ef438592704c552a0a36b11efb8c..c72d72ad828e1ff2c09eb2fd02e2270a9a4650ca 100644 (file)
@@ -12,7 +12,7 @@
 #include <linux/init.h>
 #include <linux/crypto.h>
 #include <linux/types.h>
-#include <crypto/sha.h>
+#include <crypto/sha2.h>
 #include <crypto/sha512_base.h>
 #include <linux/percpu.h>
 #include <asm/byteorder.h>
index 2a41b21623ae42b6efdf530287c5f7e20660e3a1..5f3b8ac9d97b0f7502c304ab5eccacab7922bcd0 100644 (file)
 #include <linux/completion.h>
 #include <linux/uuid.h>
 #include <crypto/chacha.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
 
 #include <asm/processor.h>
 #include <linux/uaccess.h>
index 163962f9e28451f694e74f05d0f8df3127193af0..5c291e4a6857b6c4edc9357dd968a6a548c127a7 100644 (file)
@@ -25,7 +25,7 @@
 #include <linux/pm_runtime.h>
 #include <crypto/md5.h>
 #include <crypto/skcipher.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
 #include <crypto/hash.h>
 #include <crypto/internal/hash.h>
 #include <crypto/internal/skcipher.h>
index fa2f1b4fad7b4236214ed8c429fdb4dd8a461ea9..4927a6c82d32d7393f14764d3fa7eb0e7a10203b 100644 (file)
@@ -13,7 +13,8 @@
 #include <linux/pm_runtime.h>
 #include <linux/scatterlist.h>
 #include <crypto/internal/hash.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
+#include <crypto/sha2.h>
 #include <crypto/md5.h>
 #include "sun8i-ce.h"
 
index 558027516aed1a58b3bff583d273d3dd3a623e43..cec781d5063c15675feff2dd0cfd7d63148c2cef 100644 (file)
@@ -16,7 +16,8 @@
 #include <crypto/internal/hash.h>
 #include <crypto/md5.h>
 #include <crypto/rng.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
+#include <crypto/sha2.h>
 
 /* CE Registers */
 #define CE_TDQ 0x00
index b6ab2054f217b279d6038254516c4e7c164b34fd..11cbcbc83a7b67b7b94d8be58017ba0911f9243a 100644 (file)
@@ -13,7 +13,8 @@
 #include <linux/pm_runtime.h>
 #include <linux/scatterlist.h>
 #include <crypto/internal/hash.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
+#include <crypto/sha2.h>
 #include <crypto/md5.h>
 #include "sun8i-ss.h"
 
index 1a66457f4a2052afcbc77d4b99954a9fa2c15a85..28188685b910087feb0a3579e3b7c1f32e438b79 100644 (file)
@@ -15,7 +15,8 @@
 #include <linux/crypto.h>
 #include <crypto/internal/hash.h>
 #include <crypto/md5.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
+#include <crypto/sha2.h>
 
 #define SS_START       1
 
index 7729a637fb02b195edd58d984023f8031335700b..a3fa849b139ae6af29d6353e5706eadf2e3c995d 100644 (file)
@@ -20,7 +20,7 @@
 #include <crypto/aead.h>
 #include <crypto/aes.h>
 #include <crypto/gcm.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
 #include <crypto/ctr.h>
 #include <crypto/skcipher.h>
 #include "crypto4xx_reg_def.h"
index 2e3690f65786d0d9509a344e0d8b3377a8a8e99b..8d1b918a05335daed33140973f5b67b4a65ecb60 100644 (file)
@@ -30,7 +30,7 @@
 #include <crypto/aes.h>
 #include <crypto/ctr.h>
 #include <crypto/gcm.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
 #include <crypto/rng.h>
 #include <crypto/scatterwalk.h>
 #include <crypto/skcipher.h>
index c6530a1c8c20ac1274989e5e38fe8189710b81a9..45171e89a7d28349b7f4d3c1e7d60668d5d0d246 100644 (file)
@@ -16,7 +16,8 @@
 
 #include <crypto/authenc.h>
 #include <crypto/hash.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
+#include <crypto/sha2.h>
 #include "atmel-sha-regs.h"
 
 struct atmel_aes_dev;
index 0eb6f54e3b662df2d4938edc193512a33fc12252..352d80cb5ae95e755519203460cacf69eeb326f3 100644 (file)
@@ -33,7 +33,8 @@
 #include <linux/crypto.h>
 #include <crypto/scatterwalk.h>
 #include <crypto/algapi.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
+#include <crypto/sha2.h>
 #include <crypto/hash.h>
 #include <crypto/internal/hash.h>
 #include "atmel-sha-regs.h"
index 809c3033ca74897e93a06ce1808f91652ee76209..9ad188cffd0d71273c70ead63abbedbd903d5d6f 100644 (file)
@@ -28,7 +28,8 @@
 #include <crypto/internal/hash.h>
 #include <crypto/internal/skcipher.h>
 #include <crypto/scatterwalk.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
+#include <crypto/sha2.h>
 #include <crypto/xts.h>
 
 /* Max length of a line in all cache levels for Artpec SoCs. */
index 50d169e61b41dd100b7b11fa0489e33989d1ddad..30390a7324b2957aabc7b4b0d936ca7f34885124 100644 (file)
 #include <crypto/aes.h>
 #include <crypto/internal/des.h>
 #include <crypto/hmac.h>
-#include <crypto/sha.h>
 #include <crypto/md5.h>
 #include <crypto/authenc.h>
 #include <crypto/skcipher.h>
 #include <crypto/hash.h>
+#include <crypto/sha1.h>
+#include <crypto/sha2.h>
 #include <crypto/sha3.h>
 
 #include "util.h"
index 035c8389cb3dd202f7f0a0c3b5a06d2617eb536c..0ad5892b445d383f8c29b782995280248290e27d 100644 (file)
@@ -16,7 +16,8 @@
 #include <crypto/aead.h>
 #include <crypto/arc4.h>
 #include <crypto/gcm.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
+#include <crypto/sha2.h>
 #include <crypto/sha3.h>
 
 #include "spu.h"
index dd132389bcaadf94cd4370219be375e33bbaf04d..1c386a2d55068b4ccc618fa54f477b9f76d14994 100644 (file)
@@ -17,7 +17,8 @@
 
 #include <linux/types.h>
 #include <linux/scatterlist.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
+#include <crypto/sha2.h>
 
 enum spu_cipher_alg {
        CIPHER_ALG_NONE = 0x0,
index c3c22a8de4c00aca5871b5332ce448038d8fd6cf..c4f79764172bed2bdeb80439c9eb218d6585b453 100644 (file)
@@ -34,7 +34,8 @@
 #include <crypto/ctr.h>
 #include <crypto/internal/des.h>
 #include <crypto/gcm.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
+#include <crypto/sha2.h>
 #include <crypto/md5.h>
 #include <crypto/chacha.h>
 #include <crypto/poly1305.h>
index e5d8607ecb1d3ec546809ba33921dc9ac8fa0c66..c93c4e41d267870d3e341b4821a6017c405772e6 100644 (file)
@@ -7,7 +7,6 @@
 #include <crypto/aead.h>
 #include <crypto/authenc.h>
 #include <crypto/des.h>
-#include <crypto/sha.h>
 #include <crypto/internal/aead.h>
 #include <crypto/scatterwalk.h>
 #include <crypto/gcm.h>
index 8fbfdb9e8cd3c2ccb0ca179093ba6871151bb882..74fa5360e7226d82615e16a515454c8400389f20 100644 (file)
@@ -17,7 +17,8 @@
 #include <crypto/hash.h>
 #include <crypto/hmac.h>
 #include <crypto/internal/hash.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
+#include <crypto/sha2.h>
 #include <crypto/scatterwalk.h>
 #include <linux/string.h>
 
index aed3d2192d013ca397236c901286991f2f455375..e42450d071680e2ef0432ce704bf4a48f1c35962 100644 (file)
@@ -19,7 +19,8 @@
 #include <crypto/aead.h>
 #include <crypto/ctr.h>
 #include <crypto/hash.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
+#include <crypto/sha2.h>
 #include <crypto/akcipher.h>
 #include <crypto/skcipher.h>
 #include <crypto/internal/rsa.h>
index af77b2020350817df55db8644094071de4540287..ed2b2f13a2566481f13978a7135c2852e59c3ea2 100644 (file)
@@ -17,7 +17,8 @@
 #include <crypto/algapi.h>
 #include <crypto/internal/skcipher.h>
 #include <crypto/aes.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
+#include <crypto/sha2.h>
 #include <crypto/aead.h>
 #include <crypto/authenc.h>
 #include <crypto/hash.h>
index 13b908ea48738d2bff8a41a0a85c75a0207e0072..f5a336634daa6333ddd5b28d5fb4411a4f37d5bb 100644 (file)
@@ -53,7 +53,8 @@
 #include <crypto/algapi.h>
 #include <crypto/hash.h>
 #include <crypto/gcm.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
+#include <crypto/sha2.h>
 #include <crypto/authenc.h>
 #include <crypto/ctr.h>
 #include <crypto/gf128mul.h>
index 891e049146155c2a8531a3d70c983854ed83712d..2eaa516b323118c8d897fb5c446c4f5886207a51 100644 (file)
@@ -7,7 +7,8 @@
 #include <crypto/des.h>
 #include <crypto/hash.h>
 #include <crypto/internal/aead.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
+#include <crypto/sha2.h>
 #include <crypto/skcipher.h>
 #include <crypto/xts.h>
 #include <linux/crypto.h>
index 91f555ccbb319eff9926d68e62401c1ff164de85..e813115d5432684e9c844f3eb99cbf1d77c6de95 100644 (file)
@@ -19,7 +19,8 @@
 
 #include <crypto/internal/hash.h>
 #include <crypto/md5.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
+#include <crypto/sha2.h>
 
 #define CR_RESET                       0
 #define CR_RESET_SET                   1
index 9045f2d7f4c6116a8b8aae1146f0b9eca38bc5e2..ce1e611a163e7c2ad006965d03b9c2cbeacfc5b8 100644 (file)
@@ -11,7 +11,8 @@
 #include <crypto/aead.h>
 #include <crypto/algapi.h>
 #include <crypto/internal/hash.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
+#include <crypto/sha2.h>
 #include <crypto/sha3.h>
 #include <crypto/skcipher.h>
 #include <linux/types.h>
index 9bcfb79a030f11345220cae40cf2f7b3d213cdf5..d68ef16650d47da360eefaeb044e833c755af2bd 100644 (file)
@@ -18,7 +18,8 @@
 #include <crypto/gcm.h>
 #include <crypto/ghash.h>
 #include <crypto/poly1305.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
+#include <crypto/sha2.h>
 #include <crypto/sm3.h>
 #include <crypto/sm4.h>
 #include <crypto/xts.h>
index 56d5ccb5cc004ddbebf6e87b0ba3c056cd0c8893..50fb6d90a2e0a36ca53fa73d9f28f4851cb6feef 100644 (file)
@@ -8,7 +8,8 @@
 #include <crypto/aes.h>
 #include <crypto/hmac.h>
 #include <crypto/md5.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
+#include <crypto/sha2.h>
 #include <crypto/sha3.h>
 #include <crypto/skcipher.h>
 #include <crypto/sm3.h>
index 276012e7c482fae284f620740a7dbff219781f53..8b0f17fc09fb5c16da0cc7bb85c4e95f63ab5015 100644 (file)
@@ -20,7 +20,7 @@
 #include <crypto/internal/des.h>
 #include <crypto/aes.h>
 #include <crypto/hmac.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
 #include <crypto/algapi.h>
 #include <crypto/internal/aead.h>
 #include <crypto/internal/skcipher.h>
index add7ea011c9870de4d11f711380a629827c5a254..8cf9fd518d86ceb4b83ce767c62e6a656f7439fd 100644 (file)
@@ -11,7 +11,8 @@
 
 #include <crypto/hmac.h>
 #include <crypto/md5.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
+#include <crypto/sha2.h>
 #include <linux/device.h>
 #include <linux/dma-mapping.h>
 
index 90bb31329d4baf1bd08fbbed6089a707ce7ab457..ccbef01888d42c6007a67c6521506ddfcc521491 100644 (file)
@@ -13,7 +13,8 @@
 #include <crypto/cryptd.h>
 #include <crypto/des.h>
 #include <crypto/internal/aead.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
+#include <crypto/sha2.h>
 #include <crypto/xts.h>
 #include <crypto/scatterwalk.h>
 #include <linux/rtnetlink.h>
index 3d5d7d68b03b2ef8f051e80877880147ad41c6f0..f55aacdafbefdd8bd8410e451db24c070ea5116b 100644 (file)
@@ -10,7 +10,8 @@
  */
 
 #include <crypto/hmac.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
+#include <crypto/sha2.h>
 #include "mtk-platform.h"
 
 #define SHA_ALIGN_MSK          (sizeof(u32) - 1)
index 909a7eb748e35dbae7281b4d445c5bbc80f9c7f0..d6a7784d298881544fb6b25e70d25805789cc007 100644 (file)
@@ -17,7 +17,8 @@
 #include <linux/clk.h>
 
 #include <crypto/aes.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
+#include <crypto/sha2.h>
 #include <crypto/internal/hash.h>
 #include <crypto/internal/skcipher.h>
 #include <crypto/scatterwalk.h>
index 3642bf83d8094c985b29a8f6b660915b76237cf0..3b0bf6fea491a3dc35e37937e42f56ce79c1816f 100644 (file)
@@ -15,7 +15,8 @@
 #include <linux/interrupt.h>
 #include <linux/crypto.h>
 #include <crypto/md5.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
+#include <crypto/sha2.h>
 #include <crypto/aes.h>
 #include <crypto/internal/des.h>
 #include <linux/mutex.h>
index 02fb5345319592116dd34b025ca6a4ac317a7916..90d9a37a57f64565a8d5538e74c0eb04f512be6d 100644 (file)
@@ -8,7 +8,7 @@
  */
 
 #include <crypto/internal/hash.h>
-#include <crypto/sha.h>
+#include <crypto/sha2.h>
 #include <linux/module.h>
 #include <asm/vio.h>
 #include <asm/byteorder.h>
index 4c7a3e3eeebf3dbf6c1bcc3a33054669512ac7e1..eb8627a0f3176ee8e6f5890ef1b75e0c1611a907 100644 (file)
@@ -8,7 +8,7 @@
  */
 
 #include <crypto/internal/hash.h>
-#include <crypto/sha.h>
+#include <crypto/sha2.h>
 #include <linux/module.h>
 #include <asm/vio.h>
 
index 40882d6d52c189b953f25ef127bf13bef360a695..0d2dc5be7f1925f55f930edc651b2e7c8483c56a 100644 (file)
@@ -10,7 +10,7 @@
 #include <crypto/internal/aead.h>
 #include <crypto/internal/hash.h>
 #include <crypto/aes.h>
-#include <crypto/sha.h>
+#include <crypto/sha2.h>
 #include <crypto/algapi.h>
 #include <crypto/scatterwalk.h>
 #include <linux/module.h>
index a3b38d2c92e70b9a6edb9cc98f56553ddd12a78e..ae0d320d3c60d5f0a32c9f602200b27c486b810f 100644 (file)
@@ -35,7 +35,8 @@
 #include <linux/crypto.h>
 #include <crypto/scatterwalk.h>
 #include <crypto/algapi.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
+#include <crypto/sha2.h>
 #include <crypto/hash.h>
 #include <crypto/hmac.h>
 #include <crypto/internal/hash.h>
index a697a4a3f2d0d2fde7865c410059e443b1e90a3e..6865c7f1fc1a2343611ed56fd561461bf5d7ec23 100644 (file)
@@ -9,7 +9,8 @@
 
 #include <crypto/internal/hash.h>
 #include <crypto/padlock.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
+#include <crypto/sha2.h>
 #include <linux/err.h>
 #include <linux/module.h>
 #include <linux/init.h>
index fb34bf92861d17f1dd99cd300b7ed4fbd5598da1..84f9c16d984cc312c36ee1b5c436baef9581a288 100644 (file)
@@ -8,7 +8,8 @@
 #include <crypto/authenc.h>
 #include <crypto/internal/des.h>
 #include <crypto/md5.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
+#include <crypto/sha2.h>
 #include <crypto/internal/skcipher.h>
 #include <linux/clk.h>
 #include <linux/crypto.h>
index 0fab8bb8ca59bc0f88b8b908b8915620a48bb558..b3a68d986417306c491c4605379a40e3522839ad 100644 (file)
@@ -6,7 +6,8 @@
 #include <crypto/internal/aead.h>
 #include <crypto/internal/skcipher.h>
 #include <crypto/aes.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
+#include <crypto/sha2.h>
 #include <crypto/hash.h>
 #include <crypto/hmac.h>
 #include <crypto/algapi.h>
index 5006e74c40cd0efced53fb8c9923a6db31ed0ec7..a73db2a5637f8b2aea8596c313774ccd364d8bb1 100644 (file)
@@ -7,7 +7,8 @@
 #include <linux/interrupt.h>
 #include <linux/types.h>
 #include <crypto/scatterwalk.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
+#include <crypto/sha2.h>
 
 #include "cipher.h"
 #include "common.h"
index ea616b7259aefc732ea33ee5fb093dea7deb438d..5e6717f9bbdaaff725cd00fa7162a8151f5ddee1 100644 (file)
@@ -13,7 +13,6 @@
 #include <linux/types.h>
 #include <crypto/algapi.h>
 #include <crypto/internal/hash.h>
-#include <crypto/sha.h>
 
 #include "core.h"
 #include "cipher.h"
index d63526e3804dda6da6b86a2cdaf9cfb607591d47..a22695361f1654cc94325ec5d886a158fa4bfb9c 100644 (file)
@@ -7,7 +7,8 @@
 #define _SHA_H_
 
 #include <crypto/scatterwalk.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
+#include <crypto/sha2.h>
 
 #include "common.h"
 #include "core.h"
index 3db595570c9c27bb05ec81526101f4fd28f7b861..97278c2574ff93a93c2c7f01467a6a1895f14264 100644 (file)
@@ -12,7 +12,8 @@
 #include <crypto/internal/skcipher.h>
 
 #include <crypto/md5.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
+#include <crypto/sha2.h>
 
 #define _SBF(v, f)                     ((v) << (f))
 
index 88a6c853ffd73f4ba70c025c93ae469e20f15a72..682c8a450a57b8514c8be439e81fcd85bc30979e 100644 (file)
@@ -30,7 +30,8 @@
 
 #include <crypto/hash.h>
 #include <crypto/md5.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
+#include <crypto/sha2.h>
 #include <crypto/internal/hash.h>
 
 #define _SBF(s, v)                     ((v) << (s))
index c357010a159e3fd99eb2819c0ee8f1df0aaf4b5c..f300b0a5958a595f4a40f1637fb4534343d667e9 100644 (file)
@@ -25,7 +25,8 @@
 #include <crypto/internal/hash.h>
 #include <crypto/internal/skcipher.h>
 #include <crypto/scatterwalk.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
+#include <crypto/sha2.h>
 
 #include "sa2ul.h"
 
index bb40df3876e5d822660c23dce2e191731d7cacc3..f597ddecde34f2c626a8440a6cb55fdb0f05a155 100644 (file)
@@ -13,7 +13,8 @@
 #define _K3_SA2UL_
 
 #include <crypto/aes.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
+#include <crypto/sha2.h>
 
 #define SA_ENGINE_ENABLE_CONTROL       0x1000
 
index d60679c79822469684c0a6f1d81ad631de253b37..8b5be29cb4dcb5fd9ec4e33a4f5d2d609f3410c2 100644 (file)
@@ -15,7 +15,8 @@
 #include <crypto/internal/hash.h>
 #include <crypto/internal/skcipher.h>
 #include <crypto/scatterwalk.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
+#include <crypto/sha2.h>
 
 #include <linux/clk.h>
 #include <linux/dma-mapping.h>
index e3e25278a970c0fd4080fbc6ca128f63b537dd28..7ac0573ef66300ec95d643f56973e39d5647d220 100644 (file)
@@ -25,7 +25,8 @@
 #include <crypto/hash.h>
 #include <crypto/md5.h>
 #include <crypto/scatterwalk.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
+#include <crypto/sha2.h>
 #include <crypto/internal/hash.h>
 
 #define HASH_CR                                0x00
index a713a35dc5022dcb3902e8bbfe986bad004e8f13..4fd85f31630ac96de562b7fced035526dafb587e 100644 (file)
@@ -31,7 +31,8 @@
 #include <crypto/algapi.h>
 #include <crypto/aes.h>
 #include <crypto/internal/des.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
+#include <crypto/sha2.h>
 #include <crypto/md5.h>
 #include <crypto/internal/aead.h>
 #include <crypto/authenc.h>
index 3d407eebb2babc816294e588e5575fac63735d11..da284b0ea1b26e72b0af24d8375c8d3be7ec1d23 100644 (file)
@@ -31,7 +31,8 @@
 #include <linux/bitops.h>
 
 #include <crypto/internal/hash.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
+#include <crypto/sha2.h>
 #include <crypto/scatterwalk.h>
 #include <crypto/algapi.h>
 
index 21ae0c48232a118bac79cc4a7783eb30700b4478..f5be8e22305be46a57968e4b3b4fb6ba5e8e205d 100644 (file)
@@ -12,7 +12,7 @@
 #include <linux/slab.h>
 #include <linux/types.h>
 #include <linux/vmalloc.h>
-#include <crypto/sha.h>
+#include <crypto/sha2.h>
 
 /* Exported for use by lib/test_firmware.c only */
 LIST_HEAD(efi_embedded_fw_list);
index 072299b14b8d21dad734583491d9bc828d175beb..47d9268a7e3c94493327c486870bf90137ec18df 100644 (file)
@@ -51,7 +51,8 @@
 #include <crypto/aes.h>
 #include <crypto/algapi.h>
 #include <crypto/hash.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
+#include <crypto/sha2.h>
 #include <crypto/authenc.h>
 #include <crypto/internal/aead.h>
 #include <crypto/null.h>
index 2d3dfdd2a7163a53cd04bcee536f45a3a1d9320a..65617752c63093977dc59865dc0e10fdd63d454e 100644 (file)
@@ -9,7 +9,8 @@
 #include <crypto/aes.h>
 #include <crypto/algapi.h>
 #include <crypto/hash.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
+#include <crypto/sha2.h>
 #include <crypto/authenc.h>
 #include <crypto/ctr.h>
 #include <crypto/gf128mul.h>
index ec930ee2c847e7bff26146e5271ec3cbacf3ebfd..5d5ad8307211122904bca060918e49a1f4e6d7dc 100644 (file)
@@ -9,7 +9,7 @@
 #include <linux/completion.h>
 #include <linux/firmware.h>
 #include <crypto/hash.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
 
 #include "s3fwrn5.h"
 #include "firmware.h"
index f53bf336c0a2025cf49c2ab017b7dfb1c4fce7dc..d70d4be91096b855c0b54b9fddfaf6a7c621e5ee 100644 (file)
@@ -14,7 +14,7 @@
 #include <linux/tee_drv.h>
 #include <linux/uaccess.h>
 #include <crypto/hash.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
 #include "tee_private.h"
 
 #define TEE_NUM_DEVICES        32
index 1fbe6c24d705278edbe6f54663d3ce4dfdbfadcd..cf06ea3870ebcddaabeeea2f942f9eedfbde47b2 100644 (file)
@@ -14,7 +14,7 @@
 #include <linux/namei.h>
 #include <linux/scatterlist.h>
 #include <crypto/hash.h>
-#include <crypto/sha.h>
+#include <crypto/sha2.h>
 #include <crypto/skcipher.h>
 #include "fscrypt_private.h"
 
index 0cba7928446d34732886ff9cdb7b4c5c9bc81571..e0ec2105550534c8cc188712d8826168898fbff3 100644 (file)
@@ -10,7 +10,7 @@
  */
 
 #include <crypto/hash.h>
-#include <crypto/sha.h>
+#include <crypto/sha2.h>
 
 #include "fscrypt_private.h"
 
index b93b3cd10bfd3254838f9efb8ae9a9497a37278b..0886d835f597bac32feebebada30439abcf3e26a 100644 (file)
@@ -12,7 +12,6 @@
 #include <linux/crypto.h>
 #include <linux/verification.h>
 #include <crypto/hash.h>
-#include <crypto/sha.h>
 #include <crypto/algapi.h>
 #include <keys/user-type.h>
 #include <keys/asymmetric-type.h>
index e96d99d5145e1da25fe07f9e26650d57df28b2b6..6a8f2e3cce6c4fe1a5e01501e8857fc60a63af43 100644 (file)
@@ -14,7 +14,7 @@
 
 #define pr_fmt(fmt) "fs-verity: " fmt
 
-#include <crypto/sha.h>
+#include <crypto/sha2.h>
 #include <linux/fsverity.h>
 #include <linux/mempool.h>
 
index eb9d2e36896975d2a32e9dae799ca3d84be8933b..dd4f067850493b46c48d0bb512c57bf5deee2339 100644 (file)
@@ -8,7 +8,8 @@
 #ifndef _CRYPTO_HASH_INFO_H
 #define _CRYPTO_HASH_INFO_H
 
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
+#include <crypto/sha2.h>
 #include <crypto/md5.h>
 #include <crypto/streebog.h>
 
diff --git a/include/crypto/sha.h b/include/crypto/sha.h
deleted file mode 100644 (file)
index 4ff3da8..0000000
+++ /dev/null
@@ -1,167 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-/*
- * Common values for SHA algorithms
- */
-
-#ifndef _CRYPTO_SHA_H
-#define _CRYPTO_SHA_H
-
-#include <linux/types.h>
-
-#define SHA1_DIGEST_SIZE        20
-#define SHA1_BLOCK_SIZE         64
-
-#define SHA224_DIGEST_SIZE     28
-#define SHA224_BLOCK_SIZE      64
-
-#define SHA256_DIGEST_SIZE      32
-#define SHA256_BLOCK_SIZE       64
-
-#define SHA384_DIGEST_SIZE      48
-#define SHA384_BLOCK_SIZE       128
-
-#define SHA512_DIGEST_SIZE      64
-#define SHA512_BLOCK_SIZE       128
-
-#define SHA1_H0                0x67452301UL
-#define SHA1_H1                0xefcdab89UL
-#define SHA1_H2                0x98badcfeUL
-#define SHA1_H3                0x10325476UL
-#define SHA1_H4                0xc3d2e1f0UL
-
-#define SHA224_H0      0xc1059ed8UL
-#define SHA224_H1      0x367cd507UL
-#define SHA224_H2      0x3070dd17UL
-#define SHA224_H3      0xf70e5939UL
-#define SHA224_H4      0xffc00b31UL
-#define SHA224_H5      0x68581511UL
-#define SHA224_H6      0x64f98fa7UL
-#define SHA224_H7      0xbefa4fa4UL
-
-#define SHA256_H0      0x6a09e667UL
-#define SHA256_H1      0xbb67ae85UL
-#define SHA256_H2      0x3c6ef372UL
-#define SHA256_H3      0xa54ff53aUL
-#define SHA256_H4      0x510e527fUL
-#define SHA256_H5      0x9b05688cUL
-#define SHA256_H6      0x1f83d9abUL
-#define SHA256_H7      0x5be0cd19UL
-
-#define SHA384_H0      0xcbbb9d5dc1059ed8ULL
-#define SHA384_H1      0x629a292a367cd507ULL
-#define SHA384_H2      0x9159015a3070dd17ULL
-#define SHA384_H3      0x152fecd8f70e5939ULL
-#define SHA384_H4      0x67332667ffc00b31ULL
-#define SHA384_H5      0x8eb44a8768581511ULL
-#define SHA384_H6      0xdb0c2e0d64f98fa7ULL
-#define SHA384_H7      0x47b5481dbefa4fa4ULL
-
-#define SHA512_H0      0x6a09e667f3bcc908ULL
-#define SHA512_H1      0xbb67ae8584caa73bULL
-#define SHA512_H2      0x3c6ef372fe94f82bULL
-#define SHA512_H3      0xa54ff53a5f1d36f1ULL
-#define SHA512_H4      0x510e527fade682d1ULL
-#define SHA512_H5      0x9b05688c2b3e6c1fULL
-#define SHA512_H6      0x1f83d9abfb41bd6bULL
-#define SHA512_H7      0x5be0cd19137e2179ULL
-
-extern const u8 sha1_zero_message_hash[SHA1_DIGEST_SIZE];
-
-extern const u8 sha224_zero_message_hash[SHA224_DIGEST_SIZE];
-
-extern const u8 sha256_zero_message_hash[SHA256_DIGEST_SIZE];
-
-extern const u8 sha384_zero_message_hash[SHA384_DIGEST_SIZE];
-
-extern const u8 sha512_zero_message_hash[SHA512_DIGEST_SIZE];
-
-struct sha1_state {
-       u32 state[SHA1_DIGEST_SIZE / 4];
-       u64 count;
-       u8 buffer[SHA1_BLOCK_SIZE];
-};
-
-struct sha256_state {
-       u32 state[SHA256_DIGEST_SIZE / 4];
-       u64 count;
-       u8 buf[SHA256_BLOCK_SIZE];
-};
-
-struct sha512_state {
-       u64 state[SHA512_DIGEST_SIZE / 8];
-       u64 count[2];
-       u8 buf[SHA512_BLOCK_SIZE];
-};
-
-struct shash_desc;
-
-extern int crypto_sha1_update(struct shash_desc *desc, const u8 *data,
-                             unsigned int len);
-
-extern int crypto_sha1_finup(struct shash_desc *desc, const u8 *data,
-                            unsigned int len, u8 *hash);
-
-extern int crypto_sha256_update(struct shash_desc *desc, const u8 *data,
-                             unsigned int len);
-
-extern int crypto_sha256_finup(struct shash_desc *desc, const u8 *data,
-                              unsigned int len, u8 *hash);
-
-extern int crypto_sha512_update(struct shash_desc *desc, const u8 *data,
-                             unsigned int len);
-
-extern int crypto_sha512_finup(struct shash_desc *desc, const u8 *data,
-                              unsigned int len, u8 *hash);
-
-/*
- * An implementation of SHA-1's compression function.  Don't use in new code!
- * You shouldn't be using SHA-1, and even if you *have* to use SHA-1, this isn't
- * the correct way to hash something with SHA-1 (use crypto_shash instead).
- */
-#define SHA1_DIGEST_WORDS      (SHA1_DIGEST_SIZE / 4)
-#define SHA1_WORKSPACE_WORDS   16
-void sha1_init(__u32 *buf);
-void sha1_transform(__u32 *digest, const char *data, __u32 *W);
-
-/*
- * Stand-alone implementation of the SHA256 algorithm. It is designed to
- * have as little dependencies as possible so it can be used in the
- * kexec_file purgatory. In other cases you should generally use the
- * hash APIs from include/crypto/hash.h. Especially when hashing large
- * amounts of data as those APIs may be hw-accelerated.
- *
- * For details see lib/crypto/sha256.c
- */
-
-static inline void sha256_init(struct sha256_state *sctx)
-{
-       sctx->state[0] = SHA256_H0;
-       sctx->state[1] = SHA256_H1;
-       sctx->state[2] = SHA256_H2;
-       sctx->state[3] = SHA256_H3;
-       sctx->state[4] = SHA256_H4;
-       sctx->state[5] = SHA256_H5;
-       sctx->state[6] = SHA256_H6;
-       sctx->state[7] = SHA256_H7;
-       sctx->count = 0;
-}
-void sha256_update(struct sha256_state *sctx, const u8 *data, unsigned int len);
-void sha256_final(struct sha256_state *sctx, u8 *out);
-void sha256(const u8 *data, unsigned int len, u8 *out);
-
-static inline void sha224_init(struct sha256_state *sctx)
-{
-       sctx->state[0] = SHA224_H0;
-       sctx->state[1] = SHA224_H1;
-       sctx->state[2] = SHA224_H2;
-       sctx->state[3] = SHA224_H3;
-       sctx->state[4] = SHA224_H4;
-       sctx->state[5] = SHA224_H5;
-       sctx->state[6] = SHA224_H6;
-       sctx->state[7] = SHA224_H7;
-       sctx->count = 0;
-}
-void sha224_update(struct sha256_state *sctx, const u8 *data, unsigned int len);
-void sha224_final(struct sha256_state *sctx, u8 *out);
-
-#endif
diff --git a/include/crypto/sha1.h b/include/crypto/sha1.h
new file mode 100644 (file)
index 0000000..044ecea
--- /dev/null
@@ -0,0 +1,46 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * Common values for SHA-1 algorithms
+ */
+
+#ifndef _CRYPTO_SHA1_H
+#define _CRYPTO_SHA1_H
+
+#include <linux/types.h>
+
+#define SHA1_DIGEST_SIZE        20
+#define SHA1_BLOCK_SIZE         64
+
+#define SHA1_H0                0x67452301UL
+#define SHA1_H1                0xefcdab89UL
+#define SHA1_H2                0x98badcfeUL
+#define SHA1_H3                0x10325476UL
+#define SHA1_H4                0xc3d2e1f0UL
+
+extern const u8 sha1_zero_message_hash[SHA1_DIGEST_SIZE];
+
+struct sha1_state {
+       u32 state[SHA1_DIGEST_SIZE / 4];
+       u64 count;
+       u8 buffer[SHA1_BLOCK_SIZE];
+};
+
+struct shash_desc;
+
+extern int crypto_sha1_update(struct shash_desc *desc, const u8 *data,
+                             unsigned int len);
+
+extern int crypto_sha1_finup(struct shash_desc *desc, const u8 *data,
+                            unsigned int len, u8 *hash);
+
+/*
+ * An implementation of SHA-1's compression function.  Don't use in new code!
+ * You shouldn't be using SHA-1, and even if you *have* to use SHA-1, this isn't
+ * the correct way to hash something with SHA-1 (use crypto_shash instead).
+ */
+#define SHA1_DIGEST_WORDS      (SHA1_DIGEST_SIZE / 4)
+#define SHA1_WORKSPACE_WORDS   16
+void sha1_init(__u32 *buf);
+void sha1_transform(__u32 *digest, const char *data, __u32 *W);
+
+#endif /* _CRYPTO_SHA1_H */
index a5d6033efef7cf8548dc9bdfb07906bfeb096337..2e0e7c3827d106301e44f8b570efe53e5911eb6d 100644 (file)
@@ -9,7 +9,7 @@
 #define _CRYPTO_SHA1_BASE_H
 
 #include <crypto/internal/hash.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
 #include <linux/crypto.h>
 #include <linux/module.h>
 #include <linux/string.h>
diff --git a/include/crypto/sha2.h b/include/crypto/sha2.h
new file mode 100644 (file)
index 0000000..2838f52
--- /dev/null
@@ -0,0 +1,134 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * Common values for SHA-2 algorithms
+ */
+
+#ifndef _CRYPTO_SHA2_H
+#define _CRYPTO_SHA2_H
+
+#include <linux/types.h>
+
+#define SHA224_DIGEST_SIZE     28
+#define SHA224_BLOCK_SIZE      64
+
+#define SHA256_DIGEST_SIZE      32
+#define SHA256_BLOCK_SIZE       64
+
+#define SHA384_DIGEST_SIZE      48
+#define SHA384_BLOCK_SIZE       128
+
+#define SHA512_DIGEST_SIZE      64
+#define SHA512_BLOCK_SIZE       128
+
+#define SHA224_H0      0xc1059ed8UL
+#define SHA224_H1      0x367cd507UL
+#define SHA224_H2      0x3070dd17UL
+#define SHA224_H3      0xf70e5939UL
+#define SHA224_H4      0xffc00b31UL
+#define SHA224_H5      0x68581511UL
+#define SHA224_H6      0x64f98fa7UL
+#define SHA224_H7      0xbefa4fa4UL
+
+#define SHA256_H0      0x6a09e667UL
+#define SHA256_H1      0xbb67ae85UL
+#define SHA256_H2      0x3c6ef372UL
+#define SHA256_H3      0xa54ff53aUL
+#define SHA256_H4      0x510e527fUL
+#define SHA256_H5      0x9b05688cUL
+#define SHA256_H6      0x1f83d9abUL
+#define SHA256_H7      0x5be0cd19UL
+
+#define SHA384_H0      0xcbbb9d5dc1059ed8ULL
+#define SHA384_H1      0x629a292a367cd507ULL
+#define SHA384_H2      0x9159015a3070dd17ULL
+#define SHA384_H3      0x152fecd8f70e5939ULL
+#define SHA384_H4      0x67332667ffc00b31ULL
+#define SHA384_H5      0x8eb44a8768581511ULL
+#define SHA384_H6      0xdb0c2e0d64f98fa7ULL
+#define SHA384_H7      0x47b5481dbefa4fa4ULL
+
+#define SHA512_H0      0x6a09e667f3bcc908ULL
+#define SHA512_H1      0xbb67ae8584caa73bULL
+#define SHA512_H2      0x3c6ef372fe94f82bULL
+#define SHA512_H3      0xa54ff53a5f1d36f1ULL
+#define SHA512_H4      0x510e527fade682d1ULL
+#define SHA512_H5      0x9b05688c2b3e6c1fULL
+#define SHA512_H6      0x1f83d9abfb41bd6bULL
+#define SHA512_H7      0x5be0cd19137e2179ULL
+
+extern const u8 sha224_zero_message_hash[SHA224_DIGEST_SIZE];
+
+extern const u8 sha256_zero_message_hash[SHA256_DIGEST_SIZE];
+
+extern const u8 sha384_zero_message_hash[SHA384_DIGEST_SIZE];
+
+extern const u8 sha512_zero_message_hash[SHA512_DIGEST_SIZE];
+
+struct sha256_state {
+       u32 state[SHA256_DIGEST_SIZE / 4];
+       u64 count;
+       u8 buf[SHA256_BLOCK_SIZE];
+};
+
+struct sha512_state {
+       u64 state[SHA512_DIGEST_SIZE / 8];
+       u64 count[2];
+       u8 buf[SHA512_BLOCK_SIZE];
+};
+
+struct shash_desc;
+
+extern int crypto_sha256_update(struct shash_desc *desc, const u8 *data,
+                             unsigned int len);
+
+extern int crypto_sha256_finup(struct shash_desc *desc, const u8 *data,
+                              unsigned int len, u8 *hash);
+
+extern int crypto_sha512_update(struct shash_desc *desc, const u8 *data,
+                             unsigned int len);
+
+extern int crypto_sha512_finup(struct shash_desc *desc, const u8 *data,
+                              unsigned int len, u8 *hash);
+
+/*
+ * Stand-alone implementation of the SHA256 algorithm. It is designed to
+ * have as little dependencies as possible so it can be used in the
+ * kexec_file purgatory. In other cases you should generally use the
+ * hash APIs from include/crypto/hash.h. Especially when hashing large
+ * amounts of data as those APIs may be hw-accelerated.
+ *
+ * For details see lib/crypto/sha256.c
+ */
+
+static inline void sha256_init(struct sha256_state *sctx)
+{
+       sctx->state[0] = SHA256_H0;
+       sctx->state[1] = SHA256_H1;
+       sctx->state[2] = SHA256_H2;
+       sctx->state[3] = SHA256_H3;
+       sctx->state[4] = SHA256_H4;
+       sctx->state[5] = SHA256_H5;
+       sctx->state[6] = SHA256_H6;
+       sctx->state[7] = SHA256_H7;
+       sctx->count = 0;
+}
+void sha256_update(struct sha256_state *sctx, const u8 *data, unsigned int len);
+void sha256_final(struct sha256_state *sctx, u8 *out);
+void sha256(const u8 *data, unsigned int len, u8 *out);
+
+static inline void sha224_init(struct sha256_state *sctx)
+{
+       sctx->state[0] = SHA224_H0;
+       sctx->state[1] = SHA224_H1;
+       sctx->state[2] = SHA224_H2;
+       sctx->state[3] = SHA224_H3;
+       sctx->state[4] = SHA224_H4;
+       sctx->state[5] = SHA224_H5;
+       sctx->state[6] = SHA224_H6;
+       sctx->state[7] = SHA224_H7;
+       sctx->count = 0;
+}
+void sha224_update(struct sha256_state *sctx, const u8 *data, unsigned int len);
+void sha224_final(struct sha256_state *sctx, u8 *out);
+
+#endif /* _CRYPTO_SHA2_H */
index 93f9fd21cc0686eca7145d8c9e629ab0d7b5b1b8..76173c6130583e44e9080213c5916e3bfd7300fa 100644 (file)
@@ -9,7 +9,7 @@
 #define _CRYPTO_SHA256_BASE_H
 
 #include <crypto/internal/hash.h>
-#include <crypto/sha.h>
+#include <crypto/sha2.h>
 #include <linux/crypto.h>
 #include <linux/module.h>
 #include <linux/string.h>
index 93ab73baa38e518531bcbd32841718e3dff6f2d5..b370b3340b1620b50f565bd02c90505bad8ca430 100644 (file)
@@ -9,7 +9,7 @@
 #define _CRYPTO_SHA512_BASE_H
 
 #include <crypto/internal/hash.h>
-#include <crypto/sha.h>
+#include <crypto/sha2.h>
 #include <linux/crypto.h>
 #include <linux/module.h>
 #include <linux/string.h>
index a5dfbaf2470d7cbf31f8b339b469f0c85fbaea9d..868924dec5a17ba353d6a0e67af8a033fbcf67ff 100644 (file)
@@ -15,7 +15,8 @@
 #include <linux/workqueue.h>
 #include <linux/list.h>
 #include <crypto/aes.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
+#include <crypto/sha2.h>
 
 struct ccp_device;
 struct ccp_cmd;
index 72d62cbc1578f98b2e2fa75164762f61d56e8f60..6c00140538b95e2933bbf2a7a62831d2379ca885 100644 (file)
@@ -21,7 +21,7 @@
 #include <linux/if_vlan.h>
 #include <linux/vmalloc.h>
 #include <linux/sockptr.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
 
 #include <net/sch_generic.h>
 
index b950e961cfa89e3b897213828db15483817095e4..d7dc1559427f0b5e08dece311d540fe695f52142 100644 (file)
@@ -3,7 +3,7 @@
 #define _LINUX_PURGATORY_H
 
 #include <linux/types.h>
-#include <crypto/sha.h>
+#include <crypto/sha2.h>
 #include <uapi/linux/kexec.h>
 
 struct kexec_sha_region {
index 106e4500fd53d36e31444e196b56b3f7ec704b6c..4fcfe0b70c4e5e9bbc7cc75734fcca3ab0b5b783 100644 (file)
@@ -11,7 +11,7 @@
 #include <asm/page.h>
 #include <asm/sections.h>
 
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
 
 /* vmcoreinfo stuff */
 unsigned char *vmcoreinfo_data;
index 8798a8183974e3b3d52ac53dc4b981f4055f0b52..4f8efc278aa75bc22fc4387e11fe6b8d48548135 100644 (file)
@@ -42,7 +42,6 @@
 #include <asm/sections.h>
 
 #include <crypto/hash.h>
-#include <crypto/sha.h>
 #include "kexec_internal.h"
 
 DEFINE_MUTEX(kexec_mutex);
index e21f6b9234f7a2dbcfe17df61d1611b5d3bbb9d7..b02086d7049237c9c54393b4fad21f35635f2341 100644 (file)
@@ -20,7 +20,7 @@
 #include <linux/fs.h>
 #include <linux/ima.h>
 #include <crypto/hash.h>
-#include <crypto/sha.h>
+#include <crypto/sha2.h>
 #include <linux/elf.h>
 #include <linux/elfcore.h>
 #include <linux/kernel.h>
index cdef37c059729c0a344e02193f9ae2c98e76dea4..72a4b0b1df28a0f2011fb4253186602ab40ba2cd 100644 (file)
@@ -15,7 +15,7 @@
 #include <linux/export.h>
 #include <linux/module.h>
 #include <linux/string.h>
-#include <crypto/sha.h>
+#include <crypto/sha2.h>
 #include <asm/unaligned.h>
 
 static const u32 SHA256_K[] = {
index e0627c3e53b2e77ea3d0835e1b7666e24da5e93d..04b5e55ed95f5b3419ad23b6f5ad4984b451303e 100644 (file)
@@ -20,7 +20,7 @@
 #include <linux/key.h>
 #include <linux/crypto.h>
 #include <crypto/hash.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
 #include <keys/user-type.h>
 #include <linux/mpi.h>
 #include <linux/digsig.h>
index 49257a915bb604e3bb17e53b0ef86e3a855ad9ca..9bd1935a14727ef100972a7047b0491854fa2983 100644 (file)
@@ -9,7 +9,7 @@
 #include <linux/kernel.h>
 #include <linux/export.h>
 #include <linux/bitops.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
 #include <asm/unaligned.h>
 
 /*
index 85dddfe3a2c6ed61fc152be01946e818f4e250a9..687d95dce08522bebf6d0c3b0473cb8eb3f2a17d 100644 (file)
@@ -35,7 +35,6 @@
 #include <net/xfrm.h>
 
 #include <crypto/hash.h>
-#include <crypto/sha.h>
 #include <net/seg6.h>
 #include <net/genetlink.h>
 #include <net/seg6_hmac.h>
index 05d398d3fde40aa1c3e728d031fdb5aa1608d5be..b472dc149856996444f0071ddaa177ecc4c3b6c3 100644 (file)
@@ -21,7 +21,7 @@
  */
 
 #include <linux/kernel.h>
-#include <crypto/sha.h>
+#include <crypto/sha2.h>
 #include <asm/unaligned.h>
 
 #include "protocol.h"
index a044dd43411d9d9e0858e52aebb0335caf9a3ca0..90cd52df99a68b39391b3b1e8fcd24e8fb5f2409 100644 (file)
@@ -7,7 +7,7 @@
 #define pr_fmt(fmt) "MPTCP: " fmt
 
 #include <linux/kernel.h>
-#include <crypto/sha.h>
+#include <crypto/sha2.h>
 #include <net/tcp.h>
 #include <net/mptcp.h>
 #include "protocol.h"
index ac4a1fe3550bd0ddee6e4f3d808aa4e48003dac6..b229ae914d76de584f664997a97f95c5774f0576 100644 (file)
@@ -10,7 +10,7 @@
 #include <linux/module.h>
 #include <linux/netdevice.h>
 #include <crypto/algapi.h>
-#include <crypto/sha.h>
+#include <crypto/sha2.h>
 #include <net/sock.h>
 #include <net/inet_common.h>
 #include <net/inet_hashtables.h>
index 413c803c520892abc3d619da1f7500e774376e62..547425c20e11720a40a8fd5a3b5f3f5b007fd905 100644 (file)
@@ -14,7 +14,7 @@
 
 #include <linux/types.h>
 #include <linux/integrity.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
 #include <linux/key.h>
 #include <linux/audit.h>
 
index 192e531c146f5c5b4ab922bd5591dc6f9d0217e1..87432b35d7713f94118ad2be5bca285736a8502b 100644 (file)
@@ -29,7 +29,7 @@
 #include <crypto/aes.h>
 #include <crypto/algapi.h>
 #include <crypto/hash.h>
-#include <crypto/sha.h>
+#include <crypto/sha2.h>
 #include <crypto/skcipher.h>
 
 #include "encrypted.h"
index b9fe02e5f84f0fba551d5874c0915d62ab1ae5b3..74d82093cbaa9a48d4ed75ca8e229173e9d364b3 100644 (file)
@@ -22,7 +22,7 @@
 #include <linux/rcupdate.h>
 #include <linux/crypto.h>
 #include <crypto/hash.h>
-#include <crypto/sha.h>
+#include <crypto/sha1.h>
 #include <linux/capability.h>
 #include <linux/tpm.h>
 #include <linux/tpm_command.h>
index 28f039adfa1388d884a069d3d02e74f9ba88bd5d..58894bf4751465fdf7303eaf7bfacaaab957c059 100644 (file)
@@ -8,7 +8,7 @@
  * EC for audio function.
  */
 
-#include <crypto/sha.h>
+#include <crypto/sha2.h>
 #include <linux/acpi.h>
 #include <linux/delay.h>
 #include <linux/device.h>