diff options
author | Eric Biggers <ebiggers@google.com> | 2024-04-22 14:10:41 -0700 |
---|---|---|
committer | Jarkko Sakkinen <jarkko@kernel.org> | 2024-05-13 23:30:15 +0300 |
commit | 05d223af0a9273be52951a1533751df1b5169794 (patch) | |
tree | df4244ca92bfec289510da6a7410e40cbed245a4 | |
parent | d4680442852ac77a713836b1c082988c4f686290 (diff) | |
download | linux-crypto-05d223af0a9273be52951a1533751df1b5169794.tar.gz linux-crypto-05d223af0a9273be52951a1533751df1b5169794.zip |
KEYS: asymmetric: Add missing dependencies of FIPS_SIGNATURE_SELFTEST
Since the signature self-test uses RSA and SHA-256, it must only be
enabled when those algorithms are enabled. Otherwise it fails and
panics the kernel on boot-up.
Reported-by: kernel test robot <oliver.sang@intel.com>
Closes: https://lore.kernel.org/oe-lkp/202404221528.51d75177-lkp@intel.com
Fixes: 041ec6e33d48 ("certs: Add FIPS selftests")
Cc: stable@vger.kernel.org
Cc: Simo Sorce <simo@redhat.com>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Diffstat (limited to '')
-rw-r--r-- | crypto/asymmetric_keys/Kconfig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/asymmetric_keys/Kconfig b/crypto/asymmetric_keys/Kconfig index 3f089abd..684767ab 100644 --- a/crypto/asymmetric_keys/Kconfig +++ b/crypto/asymmetric_keys/Kconfig @@ -86,5 +86,7 @@ config FIPS_SIGNATURE_SELFTEST depends on ASYMMETRIC_KEY_TYPE depends on PKCS7_MESSAGE_PARSER=X509_CERTIFICATE_PARSER depends on X509_CERTIFICATE_PARSER + depends on CRYPTO_RSA + depends on CRYPTO_SHA256 endif # ASYMMETRIC_KEY_TYPE |