]> git.ipfire.org Git - thirdparty/kernel/linux.git/blobdiff - kernel/module/Kconfig
Revert "crypto: pkcs7 - remove sha1 support"
[thirdparty/kernel/linux.git] / kernel / module / Kconfig
index 0ea1b2970a23b544cd6a91c0182fa63c9c98a02d..28db5b7589eb24788560725b4da52ad367fe093d 100644 (file)
@@ -236,6 +236,10 @@ choice
          possible to load a signed module containing the algorithm to check
          the signature on that module.
 
+config MODULE_SIG_SHA1
+       bool "Sign modules with SHA-1"
+       select CRYPTO_SHA1
+
 config MODULE_SIG_SHA256
        bool "Sign modules with SHA-256"
        select CRYPTO_SHA256
@@ -265,6 +269,7 @@ endchoice
 config MODULE_SIG_HASH
        string
        depends on MODULE_SIG || IMA_APPRAISE_MODSIG
+       default "sha1" if MODULE_SIG_SHA1
        default "sha256" if MODULE_SIG_SHA256
        default "sha384" if MODULE_SIG_SHA384
        default "sha512" if MODULE_SIG_SHA512