]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
integrity: Select CRYPTO from INTEGRITY_ASYMMETRIC_KEYS
authorEric Biggers <ebiggers@kernel.org>
Fri, 15 Aug 2025 02:17:32 +0000 (19:17 -0700)
committerMimi Zohar <zohar@linux.ibm.com>
Fri, 3 Oct 2025 11:50:56 +0000 (07:50 -0400)
Select CRYPTO from INTEGRITY_ASYMMETRIC_KEYS, since
INTEGRITY_ASYMMETRIC_KEYS selects several options that depend on CRYPTO.

This unblocks the removal of the CRYPTO selection from SIGNATURE.
SIGNATURE (lib/digsig.c) itself will no longer need CRYPTO, but
INTEGRITY_ASYMMETRIC_KEYS was depending on it indirectly via the chain
SIGNATURE => INTEGRITY_SIGNATURE => INTEGRITY_ASYMMETRIC_KEYS.

Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
security/integrity/Kconfig

index 3c45f4f3455fb652f3847132d8c3d7290a57c3fa..916d4f2bfc44187838bdc25c7a4fdac4375f7c79 100644 (file)
@@ -36,6 +36,7 @@ config INTEGRITY_ASYMMETRIC_KEYS
        default n
        select ASYMMETRIC_KEY_TYPE
        select ASYMMETRIC_PUBLIC_KEY_SUBTYPE
+       select CRYPTO
        select CRYPTO_RSA
        select X509_CERTIFICATE_PARSER
        help