Skip to content

Commit

Permalink
KEYS: asymmetric: Add missing dependencies of FIPS_SIGNATURE_SELFTEST
Browse files Browse the repository at this point in the history
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 <[email protected]>
Closes: https://lore.kernel.org/oe-lkp/[email protected]
Fixes: 3cde317 ("certs: Add FIPS selftests")
Cc: [email protected]
Cc: Simo Sorce <[email protected]>
Cc: David Howells <[email protected]>
Signed-off-by: Eric Biggers <[email protected]>
Reviewed-by: Jarkko Sakkinen <[email protected]>
Signed-off-by: Jarkko Sakkinen <[email protected]>
  • Loading branch information
ebiggers authored and jarkkojs committed May 13, 2024
1 parent dcaa86b commit 9d2fd8b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crypto/asymmetric_keys/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9d2fd8b

Please sign in to comment.