Merge branch 'master' of https://gitlab.denx.de/u-boot/custodians/u-boot-net
[oweals/u-boot.git] / lib / crypto / Kconfig
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
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
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
42 config 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
52 endif # ASYMMETRIC_KEY_TYPE