diff options
author | AKASHI Takahiro <takahiro.akashi@linaro.org> | 2019-11-13 03:44:59 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-12-07 00:44:20 +0300 |
commit | 9b933bf6f4fa4db2f8ab94d3b977b7fefa2644dd (patch) | |
tree | dd8f930e0c77879b93f183e38498d9d2a6d9a7d4 /lib/crypto/Kconfig | |
parent | c4e961ecec994059dbdd5f34b58454d5243ad8f0 (diff) | |
download | u-boot-9b933bf6f4fa4db2f8ab94d3b977b7fefa2644dd.tar.xz |
lib: crypto: add rsa public key parser
Imported from linux kernel v5.3:
rsapubkey.asn1 without changes
rsa.h without changes
rsa_helper.c with changes marked as __UBOOT__
Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Diffstat (limited to 'lib/crypto/Kconfig')
-rw-r--r-- | lib/crypto/Kconfig | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/crypto/Kconfig b/lib/crypto/Kconfig index b8e8288d2f..9572ea8c87 100644 --- a/lib/crypto/Kconfig +++ b/lib/crypto/Kconfig @@ -16,4 +16,15 @@ config ASYMMETRIC_PUBLIC_KEY_SUBTYPE appropriate hash algorithms (such as SHA-1) must be available. ENOPKG will be reported if the requisite algorithm is unavailable. +config RSA_PUBLIC_KEY_PARSER + bool "RSA public key parser" + depends on ASYMMETRIC_PUBLIC_KEY_SUBTYPE + select ASN1_DECODER + select ASN1_COMPILER + select OID_REGISTRY + help + This option provides support for parsing a blob containing RSA + public key data and provides the ability to instantiate a public + key. + endif # ASYMMETRIC_KEY_TYPE |