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 | |
Philippe Reynes | e44ec9f | 2022-03-28 22:56:57 +0200 | [diff] [blame^] | 11 | config SPL_ASYMMETRIC_KEY_TYPE |
| 12 | bool "Asymmetric (public-key cryptographic) key Support within SPL" |
| 13 | depends on SPL |
| 14 | help |
| 15 | This option provides support for a key type that holds the data for |
| 16 | the asymmetric keys used for public key cryptographic operations such |
| 17 | as encryption, decryption, signature generation and signature |
| 18 | verification in the SPL. |
| 19 | |
AKASHI Takahiro | c4e961e | 2019-11-13 09:44:58 +0900 | [diff] [blame] | 20 | config ASYMMETRIC_PUBLIC_KEY_SUBTYPE |
| 21 | bool "Asymmetric public-key crypto algorithm subtype" |
| 22 | help |
| 23 | This option provides support for asymmetric public key type handling. |
| 24 | If signature generation and/or verification are to be used, |
| 25 | appropriate hash algorithms (such as SHA-1) must be available. |
| 26 | ENOPKG will be reported if the requisite algorithm is unavailable. |
| 27 | |
Philippe Reynes | e44ec9f | 2022-03-28 22:56:57 +0200 | [diff] [blame^] | 28 | config SPL_ASYMMETRIC_PUBLIC_KEY_SUBTYPE |
| 29 | bool "Asymmetric public-key crypto algorithm subtype within SPL" |
| 30 | depends on ASYMMETRIC_PUBLIC_KEY_SUBTYPE |
| 31 | help |
| 32 | This option provides support for asymmetric public key type handling in the SPL. |
| 33 | If signature generation and/or verification are to be used, |
| 34 | appropriate hash algorithms (such as SHA-1) must be available. |
| 35 | ENOPKG will be reported if the requisite algorithm is unavailable. |
| 36 | |
AKASHI Takahiro | 9b933bf | 2019-11-13 09:44:59 +0900 | [diff] [blame] | 37 | config RSA_PUBLIC_KEY_PARSER |
| 38 | bool "RSA public key parser" |
| 39 | depends on ASYMMETRIC_PUBLIC_KEY_SUBTYPE |
| 40 | select ASN1_DECODER |
| 41 | select ASN1_COMPILER |
| 42 | select OID_REGISTRY |
| 43 | help |
| 44 | This option provides support for parsing a blob containing RSA |
| 45 | public key data and provides the ability to instantiate a public |
| 46 | key. |
| 47 | |
Philippe Reynes | e44ec9f | 2022-03-28 22:56:57 +0200 | [diff] [blame^] | 48 | config SPL_RSA_PUBLIC_KEY_PARSER |
| 49 | bool "RSA public key parser within SPL" |
| 50 | depends on ASYMMETRIC_PUBLIC_KEY_SUBTYPE |
| 51 | select SPL_ASN1_DECODER |
| 52 | select ASN1_COMPILER |
| 53 | select SPL_OID_REGISTRY |
| 54 | help |
| 55 | This option provides support for parsing a blob containing RSA |
| 56 | public key data and provides the ability to instantiate a public |
| 57 | key in the SPL. |
| 58 | |
AKASHI Takahiro | b4adf62 | 2019-11-13 09:45:00 +0900 | [diff] [blame] | 59 | config X509_CERTIFICATE_PARSER |
| 60 | bool "X.509 certificate parser" |
| 61 | depends on ASYMMETRIC_PUBLIC_KEY_SUBTYPE |
| 62 | select ASN1_DECODER |
| 63 | select ASN1_COMPILER |
| 64 | select OID_REGISTRY |
| 65 | select LIB_DATE |
| 66 | help |
| 67 | This option provides support for parsing X.509 format blobs for key |
| 68 | data and provides the ability to instantiate a crypto key from a |
| 69 | public key packet found inside the certificate. |
| 70 | |
AKASHI Takahiro | e85a787 | 2019-11-13 09:45:01 +0900 | [diff] [blame] | 71 | config PKCS7_MESSAGE_PARSER |
| 72 | bool "PKCS#7 message parser" |
| 73 | depends on X509_CERTIFICATE_PARSER |
| 74 | select ASN1_DECODER |
| 75 | select ASN1_COMPILER |
| 76 | select OID_REGISTRY |
| 77 | help |
| 78 | This option provides support for parsing PKCS#7 format messages for |
| 79 | signature data and provides the ability to verify the signature. |
| 80 | |
AKASHI Takahiro | 063499e | 2020-07-21 19:35:19 +0900 | [diff] [blame] | 81 | config PKCS7_VERIFY |
| 82 | bool |
| 83 | |
AKASHI Takahiro | c4e961e | 2019-11-13 09:44:58 +0900 | [diff] [blame] | 84 | endif # ASYMMETRIC_KEY_TYPE |