blob: aeb599c593acb623b89977f7ac6ab23eef0502d6 [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 Takahiroc4e961e2019-11-13 09:44:58 +090042endif # ASYMMETRIC_KEY_TYPE