AKASHI Takahiro | c4e961e | 2019-11-13 09:44:58 +0900 | [diff] [blame] | 1 | menuconfig 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 | |
| 9 | if ASYMMETRIC_KEY_TYPE |
| 10 | |
| 11 | config 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 Takahiro | 9b933bf | 2019-11-13 09:44:59 +0900 | [diff] [blame] | 19 | config 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 Takahiro | b4adf62 | 2019-11-13 09:45:00 +0900 | [diff] [blame^] | 30 | config 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 Takahiro | c4e961e | 2019-11-13 09:44:58 +0900 | [diff] [blame] | 42 | endif # ASYMMETRIC_KEY_TYPE |