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

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