Kconfig 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # SPDX-License-Identifier: GPL-2.0
  2. menuconfig ASYMMETRIC_KEY_TYPE
  3. bool "Asymmetric (public-key cryptographic) key type"
  4. depends on KEYS
  5. help
  6. This option provides support for a key type that holds the data for
  7. the asymmetric keys used for public key cryptographic operations such
  8. as encryption, decryption, signature generation and signature
  9. verification.
  10. if ASYMMETRIC_KEY_TYPE
  11. config ASYMMETRIC_PUBLIC_KEY_SUBTYPE
  12. tristate "Asymmetric public-key crypto algorithm subtype"
  13. select MPILIB
  14. select CRYPTO_HASH_INFO
  15. select CRYPTO_AKCIPHER
  16. select CRYPTO_HASH
  17. help
  18. This option provides support for asymmetric public key type handling.
  19. If signature generation and/or verification are to be used,
  20. appropriate hash algorithms (such as SHA-1) must be available.
  21. ENOPKG will be reported if the requisite algorithm is unavailable.
  22. config X509_CERTIFICATE_PARSER
  23. tristate "X.509 certificate parser"
  24. depends on ASYMMETRIC_PUBLIC_KEY_SUBTYPE
  25. select ASN1
  26. select OID_REGISTRY
  27. help
  28. This option provides support for parsing X.509 format blobs for key
  29. data and provides the ability to instantiate a crypto key from a
  30. public key packet found inside the certificate.
  31. config PKCS7_MESSAGE_PARSER
  32. tristate "PKCS#7 message parser"
  33. depends on X509_CERTIFICATE_PARSER
  34. select CRYPTO_HASH
  35. select ASN1
  36. select OID_REGISTRY
  37. help
  38. This option provides support for parsing PKCS#7 format messages for
  39. signature data and provides the ability to verify the signature.
  40. config PKCS7_TEST_KEY
  41. tristate "PKCS#7 testing key type"
  42. depends on SYSTEM_DATA_VERIFICATION
  43. help
  44. This option provides a type of key that can be loaded up from a
  45. PKCS#7 message - provided the message is signed by a trusted key. If
  46. it is, the PKCS#7 wrapper is discarded and reading the key returns
  47. just the payload. If it isn't, adding the key will fail with an
  48. error.
  49. This is intended for testing the PKCS#7 parser.
  50. config SIGNED_PE_FILE_VERIFICATION
  51. bool "Support for PE file signature verification"
  52. depends on PKCS7_MESSAGE_PARSER=y
  53. depends on SYSTEM_DATA_VERIFICATION
  54. select CRYPTO_HASH
  55. select ASN1
  56. select OID_REGISTRY
  57. help
  58. This option provides support for verifying the signature(s) on a
  59. signed PE binary.
  60. endif # ASYMMETRIC_KEY_TYPE