blob: 6369bafac07b6674b6d472d64d519137122f1ae8 [file] [log] [blame]
AKASHI Takahiroc4e961e2019-11-13 09:44:58 +09001menuconfig ASYMMETRIC_KEY_TYPE
2 bool "Asymmetric (public-key cryptographic) key Support"
3 help
4 This option provides support for a key type that holds the data for
5 the asymmetric keys used for public key cryptographic operations such
6 as encryption, decryption, signature generation and signature
7 verification.
8
9if ASYMMETRIC_KEY_TYPE
10
11config ASYMMETRIC_PUBLIC_KEY_SUBTYPE
12 bool "Asymmetric public-key crypto algorithm subtype"
13 help
14 This option provides support for asymmetric public key type handling.
15 If signature generation and/or verification are to be used,
16 appropriate hash algorithms (such as SHA-1) must be available.
17 ENOPKG will be reported if the requisite algorithm is unavailable.
18
AKASHI Takahiro9b933bf2019-11-13 09:44:59 +090019config RSA_PUBLIC_KEY_PARSER
20 bool "RSA public key parser"
21 depends on ASYMMETRIC_PUBLIC_KEY_SUBTYPE
22 select ASN1_DECODER
23 select ASN1_COMPILER
24 select OID_REGISTRY
25 help
26 This option provides support for parsing a blob containing RSA
27 public key data and provides the ability to instantiate a public
28 key.
29
AKASHI Takahirob4adf622019-11-13 09:45:00 +090030config X509_CERTIFICATE_PARSER
31 bool "X.509 certificate parser"
32 depends on ASYMMETRIC_PUBLIC_KEY_SUBTYPE
33 select ASN1_DECODER
34 select ASN1_COMPILER
35 select OID_REGISTRY
36 select LIB_DATE
37 help
38 This option provides support for parsing X.509 format blobs for key
39 data and provides the ability to instantiate a crypto key from a
40 public key packet found inside the certificate.
41
AKASHI Takahiroe85a7872019-11-13 09:45:01 +090042config PKCS7_MESSAGE_PARSER
43 bool "PKCS#7 message parser"
44 depends on X509_CERTIFICATE_PARSER
45 select ASN1_DECODER
46 select ASN1_COMPILER
47 select OID_REGISTRY
48 help
49 This option provides support for parsing PKCS#7 format messages for
50 signature data and provides the ability to verify the signature.
51
AKASHI Takahiro063499e2020-07-21 19:35:19 +090052config PKCS7_VERIFY
53 bool
54
AKASHI Takahiroc4e961e2019-11-13 09:44:58 +090055endif # ASYMMETRIC_KEY_TYPE