Blame SOURCES/0365-appended-signatures-import-GNUTLS-s-ASN.1-descriptio.patch

80913e
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
80913e
From: Daniel Axtens <dja@axtens.net>
80913e
Date: Thu, 30 Jul 2020 01:35:10 +1000
80913e
Subject: [PATCH] appended signatures: import GNUTLS's ASN.1 description files
80913e
80913e
In order to parse PKCS#7 messages and X.509 certificates with libtasn1,
80913e
we need some information about how they are encoded.
80913e
80913e
We get these from GNUTLS, which has the benefit that they support the
80913e
features we need and are well tested.
80913e
80913e
The GNUTLS license is LGPLv2.1+, which is GPLv3 compatible, allowing
80913e
us to import it without issue.
80913e
80913e
Signed-off-by: Daniel Axtens <dja@axtens.net>
80913e
---
80913e
 grub-core/commands/appendedsig/gnutls_asn1_tab.c | 121 ++++++
80913e
 grub-core/commands/appendedsig/pkix_asn1_tab.c   | 484 +++++++++++++++++++++++
80913e
 2 files changed, 605 insertions(+)
80913e
 create mode 100644 grub-core/commands/appendedsig/gnutls_asn1_tab.c
80913e
 create mode 100644 grub-core/commands/appendedsig/pkix_asn1_tab.c
80913e
80913e
diff --git a/grub-core/commands/appendedsig/gnutls_asn1_tab.c b/grub-core/commands/appendedsig/gnutls_asn1_tab.c
80913e
new file mode 100644
b32e65
index 000000000..ddd1314e6
80913e
--- /dev/null
80913e
+++ b/grub-core/commands/appendedsig/gnutls_asn1_tab.c
80913e
@@ -0,0 +1,121 @@
80913e
+#include <grub/mm.h>
80913e
+#include <grub/libtasn1.h>
80913e
+
80913e
+const asn1_static_node gnutls_asn1_tab[] = {
80913e
+  { "GNUTLS", 536872976, NULL },
80913e
+  { NULL, 1073741836, NULL },
80913e
+  { "RSAPublicKey", 1610612741, NULL },
80913e
+  { "modulus", 1073741827, NULL },
80913e
+  { "publicExponent", 3, NULL },
80913e
+  { "RSAPrivateKey", 1610612741, NULL },
80913e
+  { "version", 1073741827, NULL },
80913e
+  { "modulus", 1073741827, NULL },
80913e
+  { "publicExponent", 1073741827, NULL },
80913e
+  { "privateExponent", 1073741827, NULL },
80913e
+  { "prime1", 1073741827, NULL },
80913e
+  { "prime2", 1073741827, NULL },
80913e
+  { "exponent1", 1073741827, NULL },
80913e
+  { "exponent2", 1073741827, NULL },
80913e
+  { "coefficient", 1073741827, NULL },
80913e
+  { "otherPrimeInfos", 16386, "OtherPrimeInfos"},
80913e
+  { "ProvableSeed", 1610612741, NULL },
80913e
+  { "algorithm", 1073741836, NULL },
80913e
+  { "seed", 7, NULL },
80913e
+  { "OtherPrimeInfos", 1612709899, NULL },
80913e
+  { "MAX", 1074266122, "1"},
80913e
+  { NULL, 2, "OtherPrimeInfo"},
80913e
+  { "OtherPrimeInfo", 1610612741, NULL },
80913e
+  { "prime", 1073741827, NULL },
80913e
+  { "exponent", 1073741827, NULL },
80913e
+  { "coefficient", 3, NULL },
80913e
+  { "AlgorithmIdentifier", 1610612741, NULL },
80913e
+  { "algorithm", 1073741836, NULL },
80913e
+  { "parameters", 541081613, NULL },
80913e
+  { "algorithm", 1, NULL },
80913e
+  { "DigestInfo", 1610612741, NULL },
80913e
+  { "digestAlgorithm", 1073741826, "DigestAlgorithmIdentifier"},
80913e
+  { "digest", 7, NULL },
80913e
+  { "DigestAlgorithmIdentifier", 1073741826, "AlgorithmIdentifier"},
80913e
+  { "DSAPublicKey", 1073741827, NULL },
80913e
+  { "DSAParameters", 1610612741, NULL },
80913e
+  { "p", 1073741827, NULL },
80913e
+  { "q", 1073741827, NULL },
80913e
+  { "g", 3, NULL },
80913e
+  { "DSASignatureValue", 1610612741, NULL },
80913e
+  { "r", 1073741827, NULL },
80913e
+  { "s", 3, NULL },
80913e
+  { "DSAPrivateKey", 1610612741, NULL },
80913e
+  { "version", 1073741827, NULL },
80913e
+  { "p", 1073741827, NULL },
80913e
+  { "q", 1073741827, NULL },
80913e
+  { "g", 1073741827, NULL },
80913e
+  { "Y", 1073741827, NULL },
80913e
+  { "priv", 3, NULL },
80913e
+  { "DHParameter", 1610612741, NULL },
80913e
+  { "prime", 1073741827, NULL },
80913e
+  { "base", 1073741827, NULL },
80913e
+  { "privateValueLength", 16387, NULL },
80913e
+  { "ECParameters", 1610612754, NULL },
80913e
+  { "namedCurve", 12, NULL },
80913e
+  { "ECPrivateKey", 1610612741, NULL },
80913e
+  { "Version", 1073741827, NULL },
80913e
+  { "privateKey", 1073741831, NULL },
80913e
+  { "parameters", 1610637314, "ECParameters"},
80913e
+  { NULL, 2056, "0"},
80913e
+  { "publicKey", 536895494, NULL },
80913e
+  { NULL, 2056, "1"},
80913e
+  { "PrincipalName", 1610612741, NULL },
80913e
+  { "name-type", 1610620931, NULL },
80913e
+  { NULL, 2056, "0"},
80913e
+  { "name-string", 536879115, NULL },
80913e
+  { NULL, 1073743880, "1"},
80913e
+  { NULL, 27, NULL },
80913e
+  { "KRB5PrincipalName", 1610612741, NULL },
80913e
+  { "realm", 1610620955, NULL },
80913e
+  { NULL, 2056, "0"},
80913e
+  { "principalName", 536879106, "PrincipalName"},
80913e
+  { NULL, 2056, "1"},
80913e
+  { "RSAPSSParameters", 1610612741, NULL },
80913e
+  { "hashAlgorithm", 1610637314, "AlgorithmIdentifier"},
80913e
+  { NULL, 2056, "0"},
80913e
+  { "maskGenAlgorithm", 1610637314, "AlgorithmIdentifier"},
80913e
+  { NULL, 2056, "1"},
80913e
+  { "saltLength", 1610653699, NULL },
80913e
+  { NULL, 1073741833, "20"},
80913e
+  { NULL, 2056, "2"},
80913e
+  { "trailerField", 536911875, NULL },
80913e
+  { NULL, 1073741833, "1"},
80913e
+  { NULL, 2056, "3"},
80913e
+  { "GOSTParameters", 1610612741, NULL },
80913e
+  { "publicKeyParamSet", 1073741836, NULL },
80913e
+  { "digestParamSet", 16396, NULL },
80913e
+  { "GOSTParametersOld", 1610612741, NULL },
80913e
+  { "publicKeyParamSet", 1073741836, NULL },
80913e
+  { "digestParamSet", 1073741836, NULL },
80913e
+  { "encryptionParamSet", 16396, NULL },
80913e
+  { "GOSTPrivateKey", 1073741831, NULL },
80913e
+  { "GOSTPrivateKeyOld", 1073741827, NULL },
80913e
+  { "IssuerSignTool", 1610612741, NULL },
80913e
+  { "signTool", 1073741858, NULL },
80913e
+  { "cATool", 1073741858, NULL },
80913e
+  { "signToolCert", 1073741858, NULL },
80913e
+  { "cAToolCert", 34, NULL },
80913e
+  { "Gost28147-89-EncryptedKey", 1610612741, NULL },
80913e
+  { "encryptedKey", 1073741831, NULL },
80913e
+  { "maskKey", 1610637319, NULL },
80913e
+  { NULL, 4104, "0"},
80913e
+  { "macKey", 7, NULL },
80913e
+  { "SubjectPublicKeyInfo", 1610612741, NULL },
80913e
+  { "algorithm", 1073741826, "AlgorithmIdentifier"},
80913e
+  { "subjectPublicKey", 6, NULL },
80913e
+  { "GostR3410-TransportParameters", 1610612741, NULL },
80913e
+  { "encryptionParamSet", 1073741836, NULL },
80913e
+  { "ephemeralPublicKey", 1610637314, "SubjectPublicKeyInfo"},
80913e
+  { NULL, 4104, "0"},
80913e
+  { "ukm", 7, NULL },
80913e
+  { "GostR3410-KeyTransport", 536870917, NULL },
80913e
+  { "sessionEncryptedKey", 1073741826, "Gost28147-89-EncryptedKey"},
80913e
+  { "transportParameters", 536895490, "GostR3410-TransportParameters"},
80913e
+  { NULL, 4104, "0"},
80913e
+  { NULL, 0, NULL }
80913e
+};
80913e
diff --git a/grub-core/commands/appendedsig/pkix_asn1_tab.c b/grub-core/commands/appendedsig/pkix_asn1_tab.c
80913e
new file mode 100644
b32e65
index 000000000..adef69d95
80913e
--- /dev/null
80913e
+++ b/grub-core/commands/appendedsig/pkix_asn1_tab.c
80913e
@@ -0,0 +1,484 @@
80913e
+#include <grub/mm.h>
80913e
+#include <grub/libtasn1.h>
80913e
+
80913e
+const asn1_static_node pkix_asn1_tab[] = {
80913e
+  { "PKIX1", 536875024, NULL },
80913e
+  { NULL, 1073741836, NULL },
80913e
+  { "PrivateKeyUsagePeriod", 1610612741, NULL },
80913e
+  { "notBefore", 1610637349, NULL },
80913e
+  { NULL, 4104, "0"},
80913e
+  { "notAfter", 536895525, NULL },
80913e
+  { NULL, 4104, "1"},
80913e
+  { "AuthorityKeyIdentifier", 1610612741, NULL },
80913e
+  { "keyIdentifier", 1610637319, NULL },
80913e
+  { NULL, 4104, "0"},
80913e
+  { "authorityCertIssuer", 1610637314, "GeneralNames"},
80913e
+  { NULL, 4104, "1"},
80913e
+  { "authorityCertSerialNumber", 536895490, "CertificateSerialNumber"},
80913e
+  { NULL, 4104, "2"},
80913e
+  { "SubjectKeyIdentifier", 1073741831, NULL },
80913e
+  { "KeyUsage", 1073741830, NULL },
80913e
+  { "DirectoryString", 1610612754, NULL },
80913e
+  { "teletexString", 1612709918, NULL },
80913e
+  { "MAX", 524298, "1"},
80913e
+  { "printableString", 1612709919, NULL },
80913e
+  { "MAX", 524298, "1"},
80913e
+  { "universalString", 1612709920, NULL },
80913e
+  { "MAX", 524298, "1"},
80913e
+  { "utf8String", 1612709922, NULL },
80913e
+  { "MAX", 524298, "1"},
80913e
+  { "bmpString", 1612709921, NULL },
80913e
+  { "MAX", 524298, "1"},
80913e
+  { "ia5String", 538968093, NULL },
80913e
+  { "MAX", 524298, "1"},
80913e
+  { "SubjectAltName", 1073741826, "GeneralNames"},
80913e
+  { "GeneralNames", 1612709899, NULL },
80913e
+  { "MAX", 1074266122, "1"},
80913e
+  { NULL, 2, "GeneralName"},
80913e
+  { "GeneralName", 1610612754, NULL },
80913e
+  { "otherName", 1610620930, "AnotherName"},
80913e
+  { NULL, 4104, "0"},
80913e
+  { "rfc822Name", 1610620957, NULL },
80913e
+  { NULL, 4104, "1"},
80913e
+  { "dNSName", 1610620957, NULL },
80913e
+  { NULL, 4104, "2"},
80913e
+  { "x400Address", 1610620941, NULL },
80913e
+  { NULL, 4104, "3"},
80913e
+  { "directoryName", 1610620939, NULL },
80913e
+  { NULL, 1073743880, "4"},
80913e
+  { NULL, 2, "RelativeDistinguishedName"},
80913e
+  { "ediPartyName", 1610620941, NULL },
80913e
+  { NULL, 4104, "5"},
80913e
+  { "uniformResourceIdentifier", 1610620957, NULL },
80913e
+  { NULL, 4104, "6"},
80913e
+  { "iPAddress", 1610620935, NULL },
80913e
+  { NULL, 4104, "7"},
80913e
+  { "registeredID", 536879116, NULL },
80913e
+  { NULL, 4104, "8"},
80913e
+  { "AnotherName", 1610612741, NULL },
80913e
+  { "type-id", 1073741836, NULL },
80913e
+  { "value", 541073421, NULL },
80913e
+  { NULL, 1073743880, "0"},
80913e
+  { "type-id", 1, NULL },
80913e
+  { "IssuerAltName", 1073741826, "GeneralNames"},
80913e
+  { "BasicConstraints", 1610612741, NULL },
80913e
+  { "cA", 1610645508, NULL },
80913e
+  { NULL, 131081, NULL },
80913e
+  { "pathLenConstraint", 537411587, NULL },
80913e
+  { "0", 10, "MAX"},
80913e
+  { "CRLDistributionPoints", 1612709899, NULL },
80913e
+  { "MAX", 1074266122, "1"},
80913e
+  { NULL, 2, "DistributionPoint"},
80913e
+  { "DistributionPoint", 1610612741, NULL },
80913e
+  { "distributionPoint", 1610637314, "DistributionPointName"},
80913e
+  { NULL, 2056, "0"},
80913e
+  { "reasons", 1610637314, "ReasonFlags"},
80913e
+  { NULL, 4104, "1"},
80913e
+  { "cRLIssuer", 536895490, "GeneralNames"},
80913e
+  { NULL, 4104, "2"},
80913e
+  { "DistributionPointName", 1610612754, NULL },
80913e
+  { "fullName", 1610620930, "GeneralNames"},
80913e
+  { NULL, 4104, "0"},
80913e
+  { "nameRelativeToCRLIssuer", 536879106, "RelativeDistinguishedName"},
80913e
+  { NULL, 4104, "1"},
80913e
+  { "ReasonFlags", 1073741830, NULL },
80913e
+  { "ExtKeyUsageSyntax", 1612709899, NULL },
80913e
+  { "MAX", 1074266122, "1"},
80913e
+  { NULL, 12, NULL },
80913e
+  { "AuthorityInfoAccessSyntax", 1612709899, NULL },
80913e
+  { "MAX", 1074266122, "1"},
80913e
+  { NULL, 2, "AccessDescription"},
80913e
+  { "AccessDescription", 1610612741, NULL },
80913e
+  { "accessMethod", 1073741836, NULL },
80913e
+  { "accessLocation", 2, "GeneralName"},
80913e
+  { "Attribute", 1610612741, NULL },
80913e
+  { "type", 1073741836, NULL },
80913e
+  { "values", 536870927, NULL },
80913e
+  { NULL, 13, NULL },
80913e
+  { "AttributeTypeAndValue", 1610612741, NULL },
80913e
+  { "type", 1073741836, NULL },
80913e
+  { "value", 13, NULL },
80913e
+  { "Name", 1610612754, NULL },
80913e
+  { "rdnSequence", 536870923, NULL },
80913e
+  { NULL, 2, "RelativeDistinguishedName"},
80913e
+  { "DistinguishedName", 1610612747, NULL },
80913e
+  { NULL, 2, "RelativeDistinguishedName"},
80913e
+  { "RelativeDistinguishedName", 1612709903, NULL },
80913e
+  { "MAX", 1074266122, "1"},
80913e
+  { NULL, 2, "AttributeTypeAndValue"},
80913e
+  { "Certificate", 1610612741, NULL },
80913e
+  { "tbsCertificate", 1073741826, "TBSCertificate"},
80913e
+  { "signatureAlgorithm", 1073741826, "AlgorithmIdentifier"},
80913e
+  { "signature", 6, NULL },
80913e
+  { "TBSCertificate", 1610612741, NULL },
80913e
+  { "version", 1610653699, NULL },
80913e
+  { NULL, 1073741833, "0"},
80913e
+  { NULL, 2056, "0"},
80913e
+  { "serialNumber", 1073741826, "CertificateSerialNumber"},
80913e
+  { "signature", 1073741826, "AlgorithmIdentifier"},
80913e
+  { "issuer", 1073741826, "Name"},
80913e
+  { "validity", 1073741826, "Validity"},
80913e
+  { "subject", 1073741826, "Name"},
80913e
+  { "subjectPublicKeyInfo", 1073741826, "SubjectPublicKeyInfo"},
80913e
+  { "issuerUniqueID", 1610637314, "UniqueIdentifier"},
80913e
+  { NULL, 4104, "1"},
80913e
+  { "subjectUniqueID", 1610637314, "UniqueIdentifier"},
80913e
+  { NULL, 4104, "2"},
80913e
+  { "extensions", 536895490, "Extensions"},
80913e
+  { NULL, 2056, "3"},
80913e
+  { "CertificateSerialNumber", 1073741827, NULL },
80913e
+  { "Validity", 1610612741, NULL },
80913e
+  { "notBefore", 1073741826, "Time"},
80913e
+  { "notAfter", 2, "Time"},
80913e
+  { "Time", 1610612754, NULL },
80913e
+  { "utcTime", 1073741860, NULL },
80913e
+  { "generalTime", 37, NULL },
80913e
+  { "UniqueIdentifier", 1073741830, NULL },
80913e
+  { "SubjectPublicKeyInfo", 1610612741, NULL },
80913e
+  { "algorithm", 1073741826, "AlgorithmIdentifier"},
80913e
+  { "subjectPublicKey", 6, NULL },
80913e
+  { "Extensions", 1612709899, NULL },
80913e
+  { "MAX", 1074266122, "1"},
80913e
+  { NULL, 2, "Extension"},
80913e
+  { "Extension", 1610612741, NULL },
80913e
+  { "extnID", 1073741836, NULL },
80913e
+  { "critical", 1610645508, NULL },
80913e
+  { NULL, 131081, NULL },
80913e
+  { "extnValue", 7, NULL },
80913e
+  { "CertificateList", 1610612741, NULL },
80913e
+  { "tbsCertList", 1073741826, "TBSCertList"},
80913e
+  { "signatureAlgorithm", 1073741826, "AlgorithmIdentifier"},
80913e
+  { "signature", 6, NULL },
80913e
+  { "TBSCertList", 1610612741, NULL },
80913e
+  { "version", 1073758211, NULL },
80913e
+  { "signature", 1073741826, "AlgorithmIdentifier"},
80913e
+  { "issuer", 1073741826, "Name"},
80913e
+  { "thisUpdate", 1073741826, "Time"},
80913e
+  { "nextUpdate", 1073758210, "Time"},
80913e
+  { "revokedCertificates", 1610629131, NULL },
80913e
+  { NULL, 536870917, NULL },
80913e
+  { "userCertificate", 1073741826, "CertificateSerialNumber"},
80913e
+  { "revocationDate", 1073741826, "Time"},
80913e
+  { "crlEntryExtensions", 16386, "Extensions"},
80913e
+  { "crlExtensions", 536895490, "Extensions"},
80913e
+  { NULL, 2056, "0"},
80913e
+  { "AlgorithmIdentifier", 1610612741, NULL },
80913e
+  { "algorithm", 1073741836, NULL },
80913e
+  { "parameters", 541081613, NULL },
80913e
+  { "algorithm", 1, NULL },
80913e
+  { "Dss-Sig-Value", 1610612741, NULL },
80913e
+  { "r", 1073741827, NULL },
80913e
+  { "s", 3, NULL },
80913e
+  { "Dss-Parms", 1610612741, NULL },
80913e
+  { "p", 1073741827, NULL },
80913e
+  { "q", 1073741827, NULL },
80913e
+  { "g", 3, NULL },
80913e
+  { "pkcs-7-ContentInfo", 1610612741, NULL },
80913e
+  { "contentType", 1073741836, NULL },
80913e
+  { "content", 541073421, NULL },
80913e
+  { NULL, 1073743880, "0"},
80913e
+  { "contentType", 1, NULL },
80913e
+  { "pkcs-7-DigestInfo", 1610612741, NULL },
80913e
+  { "digestAlgorithm", 1073741826, "AlgorithmIdentifier"},
80913e
+  { "digest", 7, NULL },
80913e
+  { "pkcs-7-SignedData", 1610612741, NULL },
80913e
+  { "version", 1073741827, NULL },
80913e
+  { "digestAlgorithms", 1073741826, "pkcs-7-DigestAlgorithmIdentifiers"},
80913e
+  { "encapContentInfo", 1073741826, "pkcs-7-EncapsulatedContentInfo"},
80913e
+  { "certificates", 1610637314, "pkcs-7-CertificateSet"},
80913e
+  { NULL, 4104, "0"},
80913e
+  { "crls", 1610637314, "pkcs-7-CertificateRevocationLists"},
80913e
+  { NULL, 4104, "1"},
80913e
+  { "signerInfos", 2, "pkcs-7-SignerInfos"},
80913e
+  { "pkcs-7-DigestAlgorithmIdentifiers", 1610612751, NULL },
80913e
+  { NULL, 2, "AlgorithmIdentifier"},
80913e
+  { "pkcs-7-EncapsulatedContentInfo", 1610612741, NULL },
80913e
+  { "eContentType", 1073741836, NULL },
80913e
+  { "eContent", 536895501, NULL },
80913e
+  { NULL, 2056, "0"},
80913e
+  { "pkcs-7-CertificateRevocationLists", 1610612751, NULL },
80913e
+  { NULL, 13, NULL },
80913e
+  { "pkcs-7-CertificateChoices", 1610612754, NULL },
80913e
+  { "certificate", 13, NULL },
80913e
+  { "pkcs-7-CertificateSet", 1610612751, NULL },
80913e
+  { NULL, 2, "pkcs-7-CertificateChoices"},
80913e
+  { "IssuerAndSerialNumber", 1610612741, NULL },
80913e
+  { "issuer", 1073741826, "Name"},
80913e
+  { "serialNumber", 2, "CertificateSerialNumber"},
80913e
+  { "pkcs-7-SignerInfo", 1610612741, NULL },
80913e
+  { "version", 1073741827, NULL },
80913e
+  { "sid", 1073741826, "SignerIdentifier"},
80913e
+  { "digestAlgorithm", 1073741826, "AlgorithmIdentifier"},
80913e
+  { "signedAttrs", 1610637314, "SignedAttributes"},
80913e
+  { NULL, 4104, "0"},
80913e
+  { "signatureAlgorithm", 1073741826, "AlgorithmIdentifier"},
80913e
+  { "signature", 1073741831, NULL },
80913e
+  { "unsignedAttrs", 536895490, "SignedAttributes"},
80913e
+  { NULL, 4104, "1"},
80913e
+  { "SignedAttributes", 1612709903, NULL },
80913e
+  { "MAX", 1074266122, "1"},
80913e
+  { NULL, 2, "Attribute"},
80913e
+  { "SignerIdentifier", 1610612754, NULL },
80913e
+  { "issuerAndSerialNumber", 1073741826, "IssuerAndSerialNumber"},
80913e
+  { "subjectKeyIdentifier", 536879111, NULL },
80913e
+  { NULL, 4104, "0"},
80913e
+  { "pkcs-7-SignerInfos", 1610612751, NULL },
80913e
+  { NULL, 2, "pkcs-7-SignerInfo"},
80913e
+  { "pkcs-10-CertificationRequestInfo", 1610612741, NULL },
80913e
+  { "version", 1073741827, NULL },
80913e
+  { "subject", 1073741826, "Name"},
80913e
+  { "subjectPKInfo", 1073741826, "SubjectPublicKeyInfo"},
80913e
+  { "attributes", 536879106, "Attributes"},
80913e
+  { NULL, 4104, "0"},
80913e
+  { "Attributes", 1610612751, NULL },
80913e
+  { NULL, 2, "Attribute"},
80913e
+  { "pkcs-10-CertificationRequest", 1610612741, NULL },
80913e
+  { "certificationRequestInfo", 1073741826, "pkcs-10-CertificationRequestInfo"},
80913e
+  { "signatureAlgorithm", 1073741826, "AlgorithmIdentifier"},
80913e
+  { "signature", 6, NULL },
80913e
+  { "pkcs-9-at-challengePassword", 1879048204, NULL },
80913e
+  { "iso", 1073741825, "1"},
80913e
+  { "member-body", 1073741825, "2"},
80913e
+  { "us", 1073741825, "840"},
80913e
+  { "rsadsi", 1073741825, "113549"},
80913e
+  { "pkcs", 1073741825, "1"},
80913e
+  { NULL, 1073741825, "9"},
80913e
+  { NULL, 1, "7"},
80913e
+  { "pkcs-9-challengePassword", 1610612754, NULL },
80913e
+  { "printableString", 1073741855, NULL },
80913e
+  { "utf8String", 34, NULL },
80913e
+  { "pkcs-9-localKeyId", 1073741831, NULL },
80913e
+  { "pkcs-8-PrivateKeyInfo", 1610612741, NULL },
80913e
+  { "version", 1073741827, NULL },
80913e
+  { "privateKeyAlgorithm", 1073741826, "AlgorithmIdentifier"},
80913e
+  { "privateKey", 1073741831, NULL },
80913e
+  { "attributes", 536895490, "Attributes"},
80913e
+  { NULL, 4104, "0"},
80913e
+  { "pkcs-8-EncryptedPrivateKeyInfo", 1610612741, NULL },
80913e
+  { "encryptionAlgorithm", 1073741826, "AlgorithmIdentifier"},
80913e
+  { "encryptedData", 2, "pkcs-8-EncryptedData"},
80913e
+  { "pkcs-8-EncryptedData", 1073741831, NULL },
80913e
+  { "pkcs-5-des-CBC-params", 1612709895, NULL },
80913e
+  { NULL, 1048586, "8"},
80913e
+  { "pkcs-5-des-EDE3-CBC-params", 1612709895, NULL },
80913e
+  { NULL, 1048586, "8"},
80913e
+  { "pkcs-5-aes128-CBC-params", 1612709895, NULL },
80913e
+  { NULL, 1048586, "16"},
80913e
+  { "pkcs-5-aes192-CBC-params", 1612709895, NULL },
80913e
+  { NULL, 1048586, "16"},
80913e
+  { "pkcs-5-aes256-CBC-params", 1612709895, NULL },
80913e
+  { NULL, 1048586, "16"},
80913e
+  { "Gost28147-89-Parameters", 1610612741, NULL },
80913e
+  { "iv", 1073741831, NULL },
80913e
+  { "encryptionParamSet", 12, NULL },
80913e
+  { "pkcs-5-PBE-params", 1610612741, NULL },
80913e
+  { "salt", 1073741831, NULL },
80913e
+  { "iterationCount", 3, NULL },
80913e
+  { "pkcs-5-PBES2-params", 1610612741, NULL },
80913e
+  { "keyDerivationFunc", 1073741826, "AlgorithmIdentifier"},
80913e
+  { "encryptionScheme", 2, "AlgorithmIdentifier"},
80913e
+  { "pkcs-5-PBKDF2-params", 1610612741, NULL },
80913e
+  { "salt", 1610612754, NULL },
80913e
+  { "specified", 1073741831, NULL },
80913e
+  { "otherSource", 2, "AlgorithmIdentifier"},
80913e
+  { "iterationCount", 1611137027, NULL },
80913e
+  { "1", 10, "MAX"},
80913e
+  { "keyLength", 1611153411, NULL },
80913e
+  { "1", 10, "MAX"},
80913e
+  { "prf", 16386, "AlgorithmIdentifier"},
80913e
+  { "pkcs-12-PFX", 1610612741, NULL },
80913e
+  { "version", 1610874883, NULL },
80913e
+  { "v3", 1, "3"},
80913e
+  { "authSafe", 1073741826, "pkcs-7-ContentInfo"},
80913e
+  { "macData", 16386, "pkcs-12-MacData"},
80913e
+  { "pkcs-12-PbeParams", 1610612741, NULL },
80913e
+  { "salt", 1073741831, NULL },
80913e
+  { "iterations", 3, NULL },
80913e
+  { "pkcs-12-MacData", 1610612741, NULL },
80913e
+  { "mac", 1073741826, "pkcs-7-DigestInfo"},
80913e
+  { "macSalt", 1073741831, NULL },
80913e
+  { "iterations", 536903683, NULL },
80913e
+  { NULL, 9, "1"},
80913e
+  { "pkcs-12-AuthenticatedSafe", 1610612747, NULL },
80913e
+  { NULL, 2, "pkcs-7-ContentInfo"},
80913e
+  { "pkcs-12-SafeContents", 1610612747, NULL },
80913e
+  { NULL, 2, "pkcs-12-SafeBag"},
80913e
+  { "pkcs-12-SafeBag", 1610612741, NULL },
80913e
+  { "bagId", 1073741836, NULL },
80913e
+  { "bagValue", 1614815245, NULL },
80913e
+  { NULL, 1073743880, "0"},
80913e
+  { "badId", 1, NULL },
80913e
+  { "bagAttributes", 536887311, NULL },
80913e
+  { NULL, 2, "Attribute"},
80913e
+  { "pkcs-12-CertBag", 1610612741, NULL },
80913e
+  { "certId", 1073741836, NULL },
80913e
+  { "certValue", 541073421, NULL },
80913e
+  { NULL, 1073743880, "0"},
80913e
+  { "certId", 1, NULL },
80913e
+  { "pkcs-12-CRLBag", 1610612741, NULL },
80913e
+  { "crlId", 1073741836, NULL },
80913e
+  { "crlValue", 541073421, NULL },
80913e
+  { NULL, 1073743880, "0"},
80913e
+  { "crlId", 1, NULL },
80913e
+  { "pkcs-12-SecretBag", 1610612741, NULL },
80913e
+  { "secretTypeId", 1073741836, NULL },
80913e
+  { "secretValue", 541073421, NULL },
80913e
+  { NULL, 1073743880, "0"},
80913e
+  { "secretTypeId", 1, NULL },
80913e
+  { "pkcs-7-Data", 1073741831, NULL },
80913e
+  { "pkcs-7-EncryptedData", 1610612741, NULL },
80913e
+  { "version", 1073741827, NULL },
80913e
+  { "encryptedContentInfo", 1073741826, "pkcs-7-EncryptedContentInfo"},
80913e
+  { "unprotectedAttrs", 536895490, "pkcs-7-UnprotectedAttributes"},
80913e
+  { NULL, 4104, "1"},
80913e
+  { "pkcs-7-EncryptedContentInfo", 1610612741, NULL },
80913e
+  { "contentType", 1073741836, NULL },
80913e
+  { "contentEncryptionAlgorithm", 1073741826, "pkcs-7-ContentEncryptionAlgorithmIdentifier"},
80913e
+  { "encryptedContent", 536895495, NULL },
80913e
+  { NULL, 4104, "0"},
80913e
+  { "pkcs-7-ContentEncryptionAlgorithmIdentifier", 1073741826, "AlgorithmIdentifier"},
80913e
+  { "pkcs-7-UnprotectedAttributes", 1612709903, NULL },
80913e
+  { "MAX", 1074266122, "1"},
80913e
+  { NULL, 2, "Attribute"},
80913e
+  { "ProxyCertInfo", 1610612741, NULL },
80913e
+  { "pCPathLenConstraint", 1611153411, NULL },
80913e
+  { "0", 10, "MAX"},
80913e
+  { "proxyPolicy", 2, "ProxyPolicy"},
80913e
+  { "ProxyPolicy", 1610612741, NULL },
80913e
+  { "policyLanguage", 1073741836, NULL },
80913e
+  { "policy", 16391, NULL },
80913e
+  { "certificatePolicies", 1612709899, NULL },
80913e
+  { "MAX", 1074266122, "1"},
80913e
+  { NULL, 2, "PolicyInformation"},
80913e
+  { "PolicyInformation", 1610612741, NULL },
80913e
+  { "policyIdentifier", 1073741836, NULL },
80913e
+  { "policyQualifiers", 538984459, NULL },
80913e
+  { "MAX", 1074266122, "1"},
80913e
+  { NULL, 2, "PolicyQualifierInfo"},
80913e
+  { "PolicyQualifierInfo", 1610612741, NULL },
80913e
+  { "policyQualifierId", 1073741836, NULL },
80913e
+  { "qualifier", 541065229, NULL },
80913e
+  { "policyQualifierId", 1, NULL },
80913e
+  { "CPSuri", 1073741853, NULL },
80913e
+  { "UserNotice", 1610612741, NULL },
80913e
+  { "noticeRef", 1073758210, "NoticeReference"},
80913e
+  { "explicitText", 16386, "DisplayText"},
80913e
+  { "NoticeReference", 1610612741, NULL },
80913e
+  { "organization", 1073741826, "DisplayText"},
80913e
+  { "noticeNumbers", 536870923, NULL },
80913e
+  { NULL, 3, NULL },
80913e
+  { "DisplayText", 1610612754, NULL },
80913e
+  { "ia5String", 1612709917, NULL },
80913e
+  { "200", 524298, "1"},
80913e
+  { "visibleString", 1612709923, NULL },
80913e
+  { "200", 524298, "1"},
80913e
+  { "bmpString", 1612709921, NULL },
80913e
+  { "200", 524298, "1"},
80913e
+  { "utf8String", 538968098, NULL },
80913e
+  { "200", 524298, "1"},
80913e
+  { "OCSPRequest", 1610612741, NULL },
80913e
+  { "tbsRequest", 1073741826, "TBSRequest"},
80913e
+  { "optionalSignature", 536895490, "Signature"},
80913e
+  { NULL, 2056, "0"},
80913e
+  { "TBSRequest", 1610612741, NULL },
80913e
+  { "version", 1610653699, NULL },
80913e
+  { NULL, 1073741833, "0"},
80913e
+  { NULL, 2056, "0"},
80913e
+  { "requestorName", 1610637314, "GeneralName"},
80913e
+  { NULL, 2056, "1"},
80913e
+  { "requestList", 1610612747, NULL },
80913e
+  { NULL, 2, "Request"},
80913e
+  { "requestExtensions", 536895490, "Extensions"},
80913e
+  { NULL, 2056, "2"},
80913e
+  { "Signature", 1610612741, NULL },
80913e
+  { "signatureAlgorithm", 1073741826, "AlgorithmIdentifier"},
80913e
+  { "signature", 1073741830, NULL },
80913e
+  { "certs", 536895499, NULL },
80913e
+  { NULL, 1073743880, "0"},
80913e
+  { NULL, 2, "Certificate"},
80913e
+  { "Request", 1610612741, NULL },
80913e
+  { "reqCert", 1073741826, "CertID"},
80913e
+  { "singleRequestExtensions", 536895490, "Extensions"},
80913e
+  { NULL, 2056, "0"},
80913e
+  { "CertID", 1610612741, NULL },
80913e
+  { "hashAlgorithm", 1073741826, "AlgorithmIdentifier"},
80913e
+  { "issuerNameHash", 1073741831, NULL },
80913e
+  { "issuerKeyHash", 1073741831, NULL },
80913e
+  { "serialNumber", 2, "CertificateSerialNumber"},
80913e
+  { "OCSPResponse", 1610612741, NULL },
80913e
+  { "responseStatus", 1073741826, "OCSPResponseStatus"},
80913e
+  { "responseBytes", 536895490, "ResponseBytes"},
80913e
+  { NULL, 2056, "0"},
80913e
+  { "OCSPResponseStatus", 1610874901, NULL },
80913e
+  { "successful", 1073741825, "0"},
80913e
+  { "malformedRequest", 1073741825, "1"},
80913e
+  { "internalError", 1073741825, "2"},
80913e
+  { "tryLater", 1073741825, "3"},
80913e
+  { "sigRequired", 1073741825, "5"},
80913e
+  { "unauthorized", 1, "6"},
80913e
+  { "ResponseBytes", 1610612741, NULL },
80913e
+  { "responseType", 1073741836, NULL },
80913e
+  { "response", 7, NULL },
80913e
+  { "BasicOCSPResponse", 1610612741, NULL },
80913e
+  { "tbsResponseData", 1073741826, "ResponseData"},
80913e
+  { "signatureAlgorithm", 1073741826, "AlgorithmIdentifier"},
80913e
+  { "signature", 1073741830, NULL },
80913e
+  { "certs", 536895499, NULL },
80913e
+  { NULL, 1073743880, "0"},
80913e
+  { NULL, 2, "Certificate"},
80913e
+  { "ResponseData", 1610612741, NULL },
80913e
+  { "version", 1610653699, NULL },
80913e
+  { NULL, 1073741833, "0"},
80913e
+  { NULL, 2056, "0"},
80913e
+  { "responderID", 1073741826, "ResponderID"},
80913e
+  { "producedAt", 1073741861, NULL },
80913e
+  { "responses", 1610612747, NULL },
80913e
+  { NULL, 2, "SingleResponse"},
80913e
+  { "responseExtensions", 536895490, "Extensions"},
80913e
+  { NULL, 2056, "1"},
80913e
+  { "ResponderID", 1610612754, NULL },
80913e
+  { "byName", 1610620939, NULL },
80913e
+  { NULL, 1073743880, "1"},
80913e
+  { NULL, 2, "RelativeDistinguishedName"},
80913e
+  { "byKey", 536879111, NULL },
80913e
+  { NULL, 2056, "2"},
80913e
+  { "SingleResponse", 1610612741, NULL },
80913e
+  { "certID", 1073741826, "CertID"},
80913e
+  { "certStatus", 1073741826, "CertStatus"},
80913e
+  { "thisUpdate", 1073741861, NULL },
80913e
+  { "nextUpdate", 1610637349, NULL },
80913e
+  { NULL, 2056, "0"},
80913e
+  { "singleExtensions", 536895490, "Extensions"},
80913e
+  { NULL, 2056, "1"},
80913e
+  { "CertStatus", 1610612754, NULL },
80913e
+  { "good", 1610620948, NULL },
80913e
+  { NULL, 4104, "0"},
80913e
+  { "revoked", 1610620930, "RevokedInfo"},
80913e
+  { NULL, 4104, "1"},
80913e
+  { "unknown", 536879106, "UnknownInfo"},
80913e
+  { NULL, 4104, "2"},
80913e
+  { "RevokedInfo", 1610612741, NULL },
80913e
+  { "revocationTime", 1073741861, NULL },
80913e
+  { "revocationReason", 537157653, NULL },
80913e
+  { NULL, 1073743880, "0"},
80913e
+  { "unspecified", 1, "0"},
80913e
+  { "UnknownInfo", 1073741844, NULL },
80913e
+  { "NameConstraints", 1610612741, NULL },
80913e
+  { "permittedSubtrees", 1610637314, "GeneralSubtrees"},
80913e
+  { NULL, 4104, "0"},
80913e
+  { "excludedSubtrees", 536895490, "GeneralSubtrees"},
80913e
+  { NULL, 4104, "1"},
80913e
+  { "GeneralSubtrees", 1612709899, NULL },
80913e
+  { "MAX", 1074266122, "1"},
80913e
+  { NULL, 2, "GeneralSubtree"},
80913e
+  { "GeneralSubtree", 1610612741, NULL },
80913e
+  { "base", 1073741826, "GeneralName"},
80913e
+  { "minimum", 1610653699, NULL },
80913e
+  { NULL, 1073741833, "0"},
80913e
+  { NULL, 4104, "0"},
80913e
+  { "maximum", 536895491, NULL },
80913e
+  { NULL, 4104, "1"},
80913e
+  { "TlsFeatures", 536870923, NULL },
80913e
+  { NULL, 3, NULL },
80913e
+  { NULL, 0, NULL }
80913e
+};