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

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