Blame view

crypto/asymmetric_keys/Kconfig 3.17 KB
b24413180   Greg Kroah-Hartman   License cleanup: ...
1
  # SPDX-License-Identifier: GPL-2.0
964f3b3bf   David Howells   KEYS: Implement a...
2
  menuconfig ASYMMETRIC_KEY_TYPE
99716b7ca   David Howells   KEYS: Make the sy...
3
  	bool "Asymmetric (public-key cryptographic) key type"
964f3b3bf   David Howells   KEYS: Implement a...
4
5
6
7
8
9
10
11
  	depends on KEYS
  	help
  	  This option provides support for a key type that holds the data for
  	  the asymmetric keys used for public key cryptographic operations such
  	  as encryption, decryption, signature generation and signature
  	  verification.
  
  if ASYMMETRIC_KEY_TYPE
a9681bf3d   David Howells   KEYS: Asymmetric ...
12
13
14
  config ASYMMETRIC_PUBLIC_KEY_SUBTYPE
  	tristate "Asymmetric public-key crypto algorithm subtype"
  	select MPILIB
3fe78ca2f   Dmitry Kasatkin   keys: change asym...
15
  	select CRYPTO_HASH_INFO
bad6a185b   Arnd Bergmann   crypto: public_ke...
16
  	select CRYPTO_AKCIPHER
90acc0653   Arnd Bergmann   crypto: asymmetri...
17
  	select CRYPTO_HASH
a9681bf3d   David Howells   KEYS: Asymmetric ...
18
19
20
21
22
  	help
  	  This option provides support for asymmetric public key type handling.
  	  If signature generation and/or verification are to be used,
  	  appropriate hash algorithms (such as SHA-1) must be available.
  	  ENOPKG will be reported if the requisite algorithm is unavailable.
964f3b3bf   David Howells   KEYS: Implement a...
23

903be6bb8   Denis Kenzior   KEYS: asym_tpm: a...
24
25
26
  config ASYMMETRIC_TPM_KEY_SUBTYPE
  	tristate "Asymmetric TPM backed private key subtype"
  	depends on TCG_TPM
e1ea9f860   Denis Kenzior   KEYS: trusted: Ex...
27
  	depends on TRUSTED_KEYS
903be6bb8   Denis Kenzior   KEYS: asym_tpm: a...
28
29
30
31
32
33
34
  	select CRYPTO_HMAC
  	select CRYPTO_SHA1
  	select CRYPTO_HASH_INFO
  	help
  	  This option provides support for TPM backed private key type handling.
  	  Operations such as sign, verify, encrypt, decrypt are performed by
  	  the TPM after the private key is loaded.
c26fd69fa   David Howells   X.509: Add a cryp...
35
36
37
38
39
40
  config X509_CERTIFICATE_PARSER
  	tristate "X.509 certificate parser"
  	depends on ASYMMETRIC_PUBLIC_KEY_SUBTYPE
  	select ASN1
  	select OID_REGISTRY
  	help
452069867   David Howells   KEYS: X.509: Fix ...
41
  	  This option provides support for parsing X.509 format blobs for key
c26fd69fa   David Howells   X.509: Add a cryp...
42
43
  	  data and provides the ability to instantiate a crypto key from a
  	  public key packet found inside the certificate.
3c58b2362   David Howells   KEYS: Implement P...
44
45
46
47
48
49
50
51
52
  config PKCS8_PRIVATE_KEY_PARSER
  	tristate "PKCS#8 private key parser"
  	depends on ASYMMETRIC_PUBLIC_KEY_SUBTYPE
  	select ASN1
  	select OID_REGISTRY
  	help
  	  This option provides support for parsing PKCS#8 format blobs for
  	  private key data and provides the ability to instantiate a crypto key
  	  from that data.
d5e72745c   Denis Kenzior   KEYS: Add parser ...
53
54
55
56
57
58
59
60
  config TPM_KEY_PARSER
  	tristate "TPM private key parser"
  	depends on ASYMMETRIC_TPM_KEY_SUBTYPE
  	select ASN1
  	help
  	  This option provides support for parsing TPM format blobs for
  	  private key data and provides the ability to instantiate a crypto key
  	  from that data.
2e3fadbf7   David Howells   PKCS#7: Implement...
61
62
63
  config PKCS7_MESSAGE_PARSER
  	tristate "PKCS#7 message parser"
  	depends on X509_CERTIFICATE_PARSER
90acc0653   Arnd Bergmann   crypto: asymmetri...
64
  	select CRYPTO_HASH
2e3fadbf7   David Howells   PKCS#7: Implement...
65
66
67
68
69
  	select ASN1
  	select OID_REGISTRY
  	help
  	  This option provides support for parsing PKCS#7 format messages for
  	  signature data and provides the ability to verify the signature.
22d01afb2   David Howells   PKCS#7: Provide a...
70
71
  config PKCS7_TEST_KEY
  	tristate "PKCS#7 testing key type"
e68503bd6   David Howells   KEYS: Generalise ...
72
  	depends on SYSTEM_DATA_VERIFICATION
22d01afb2   David Howells   PKCS#7: Provide a...
73
74
75
76
77
78
79
80
  	help
  	  This option provides a type of key that can be loaded up from a
  	  PKCS#7 message - provided the message is signed by a trusted key.  If
  	  it is, the PKCS#7 wrapper is discarded and reading the key returns
  	  just the payload.  If it isn't, adding the key will fail with an
  	  error.
  
  	  This is intended for testing the PKCS#7 parser.
26d1164be   David Howells   pefile: Parse a P...
81
82
83
  config SIGNED_PE_FILE_VERIFICATION
  	bool "Support for PE file signature verification"
  	depends on PKCS7_MESSAGE_PARSER=y
e68503bd6   David Howells   KEYS: Generalise ...
84
  	depends on SYSTEM_DATA_VERIFICATION
90acc0653   Arnd Bergmann   crypto: asymmetri...
85
  	select CRYPTO_HASH
26d1164be   David Howells   pefile: Parse a P...
86
87
88
89
90
  	select ASN1
  	select OID_REGISTRY
  	help
  	  This option provides support for verifying the signature(s) on a
  	  signed PE binary.
964f3b3bf   David Howells   KEYS: Implement a...
91
  endif # ASYMMETRIC_KEY_TYPE