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

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