Merge tag 'for-linus-20130509' of git://git.infradead.org/linux-mtd
[firefly-linux-kernel-4.4.55.git] / crypto / asymmetric_keys / Kconfig
index cad29b3efa0e638273e9f0eecff4d941c0093c13..6d2c2ea12559c57624b687a06e0b6f3f3ae4291a 100644 (file)
@@ -9,5 +9,30 @@ menuconfig ASYMMETRIC_KEY_TYPE
 
 if ASYMMETRIC_KEY_TYPE
 
+config ASYMMETRIC_PUBLIC_KEY_SUBTYPE
+       tristate "Asymmetric public-key crypto algorithm subtype"
+       select MPILIB
+       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.
+
+config PUBLIC_KEY_ALGO_RSA
+       tristate "RSA public-key algorithm"
+       depends on ASYMMETRIC_PUBLIC_KEY_SUBTYPE
+       select MPILIB_EXTRA
+       help
+         This option enables support for the RSA algorithm (PKCS#1, RFC3447).
+
+config X509_CERTIFICATE_PARSER
+       tristate "X.509 certificate parser"
+       depends on ASYMMETRIC_PUBLIC_KEY_SUBTYPE
+       select ASN1
+       select OID_REGISTRY
+       help
+         This option procides support for parsing X.509 format blobs for key
+         data and provides the ability to instantiate a crypto key from a
+         public key packet found inside the certificate.
 
 endif # ASYMMETRIC_KEY_TYPE