Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1m5aVu-0004zS-LG for mharc-grub-devel@gnu.org; Mon, 19 Jul 2021 17:09:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58686) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m5aVs-0004zD-Dz for grub-devel@gnu.org; Mon, 19 Jul 2021 17:09:20 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:15424) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m5aVp-0000Bc-1R for grub-devel@gnu.org; Mon, 19 Jul 2021 17:09:20 -0400 Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 16JL36Ab142304; Mon, 19 Jul 2021 17:09:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=subject : to : cc : references : from : message-id : date : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pp1; bh=hkVnoO8mRmocFLhCQhk0X54MRpnKrjpLeKndhiSazYw=; b=KrFmXC2LVfLxliqX8uLtFXSgs9kAyZfHhmTI0XzUFU4wKGSAZ3sZojy/DTXC8ErBl2hH 18w8LioDYI14fucO7SBBSR1pvg6jIk6Io1RH7qMa4n2KDaa0zmjra6s84idrTd54JE+E cKuUIV6Eem8+9swag4sincOfNYxuMPSU9yjYp1o70GKj/Ig6sgqWaoD4GMEwrL30UrnA VYwCni/66Wyv/yVY60ZLZ01yfmQjXFknYT+p8hkvTYqFKKeOsR9Ca6Vk+mSGQGrCZEgQ wXTUze5aKKptof4HK2RBmA8ORrTSWa0la91fNiVzHb9mIghGxvwh1JCVAX0OJ+epQwpT aA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 39wg0csu3s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 19 Jul 2021 17:09:13 -0400 Received: from m0098410.ppops.net (m0098410.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 16JL3raa146463; Mon, 19 Jul 2021 17:09:13 -0400 Received: from ppma03wdc.us.ibm.com (ba.79.3fa9.ip4.static.sl-reverse.com [169.63.121.186]) by mx0a-001b2d01.pphosted.com with ESMTP id 39wg0csu3b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 19 Jul 2021 17:09:13 -0400 Received: from pps.filterd (ppma03wdc.us.ibm.com [127.0.0.1]) by ppma03wdc.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 16JKxelV008741; Mon, 19 Jul 2021 21:09:12 GMT Received: from b01cxnp23032.gho.pok.ibm.com (b01cxnp23032.gho.pok.ibm.com [9.57.198.27]) by ppma03wdc.us.ibm.com with ESMTP id 39vqdtvbac-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 19 Jul 2021 21:09:12 +0000 Received: from b01ledav005.gho.pok.ibm.com (b01ledav005.gho.pok.ibm.com [9.57.199.110]) by b01cxnp23032.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 16JL9BEq42336620 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 19 Jul 2021 21:09:11 GMT Received: from b01ledav005.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5944FAE064; Mon, 19 Jul 2021 21:09:11 +0000 (GMT) Received: from b01ledav005.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2971FAE062; Mon, 19 Jul 2021 21:09:11 +0000 (GMT) Received: from [9.47.158.152] (unknown [9.47.158.152]) by b01ledav005.gho.pok.ibm.com (Postfix) with ESMTP; Mon, 19 Jul 2021 21:09:11 +0000 (GMT) Subject: Re: [PATCH v2 17/22] appended signatures: import GNUTLS's ASN.1 description files To: The development of GNU GRUB , Daniel Axtens Cc: rashmica.g@gmail.com, alastair@d-silva.org, nayna@linux.ibm.com References: <20210630084031.2663622-1-dja@axtens.net> <20210630084031.2663622-18-dja@axtens.net> From: Stefan Berger Message-ID: <729f8071-509f-ae33-c329-3f7c838d0717@linux.ibm.com> Date: Mon, 19 Jul 2021 17:09:10 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 In-Reply-To: <20210630084031.2663622-18-dja@axtens.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: qxlOXCTEbpajA6JTFl_54b4Mc9DDleT1 X-Proofpoint-GUID: TS7zKgzRISkNrf2Q8hBo1BttfVxmyV5_ Content-Transfer-Encoding: 7bit X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790 definitions=2021-07-19_10:2021-07-19, 2021-07-19 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 mlxlogscore=999 malwarescore=0 clxscore=1015 mlxscore=0 priorityscore=1501 suspectscore=0 spamscore=0 adultscore=0 bulkscore=0 lowpriorityscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104190000 definitions=main-2107190119 Received-SPF: pass client-ip=148.163.156.1; envelope-from=stefanb@linux.ibm.com; helo=mx0a-001b2d01.pphosted.com X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jul 2021 21:09:20 -0000 On 6/30/21 4:40 AM, Daniel Axtens wrote: > In order to parse PKCS#7 messages and X.509 certificates with libtasn1, > we need some information about how they are encoded. > > We get these from GNUTLS, which has the benefit that they support the > features we need and are well tested. > > The GNUTLS license is LGPLv2.1+, which is GPLv3 compatible, allowing > us to import it without issue. > > Signed-off-by: Daniel Axtens The GNUTLS files are here: - https://github.com/gnutls/gnutls/blob/857543cc24114431dd5dde0e83c2c44b9b7e6050/lib/gnutls_asn1_tab.c - https://github.com/gnutls/gnutls/blob/857543cc24114431dd5dde0e83c2c44b9b7e6050/lib/pkix_asn1_tab.c Reviewed-by: Stefan Berger > --- > .../commands/appendedsig/gnutls_asn1_tab.c | 121 +++++ > .../commands/appendedsig/pkix_asn1_tab.c | 484 ++++++++++++++++++ > 2 files changed, 605 insertions(+) > create mode 100644 grub-core/commands/appendedsig/gnutls_asn1_tab.c > create mode 100644 grub-core/commands/appendedsig/pkix_asn1_tab.c > > diff --git a/grub-core/commands/appendedsig/gnutls_asn1_tab.c b/grub-core/commands/appendedsig/gnutls_asn1_tab.c > new file mode 100644 > index 000000000000..ddd1314e63b6 > --- /dev/null > +++ b/grub-core/commands/appendedsig/gnutls_asn1_tab.c > @@ -0,0 +1,121 @@ > +#include > +#include > + > +const asn1_static_node gnutls_asn1_tab[] = { > + { "GNUTLS", 536872976, NULL }, > + { NULL, 1073741836, NULL }, > + { "RSAPublicKey", 1610612741, NULL }, > + { "modulus", 1073741827, NULL }, > + { "publicExponent", 3, NULL }, > + { "RSAPrivateKey", 1610612741, NULL }, > + { "version", 1073741827, NULL }, > + { "modulus", 1073741827, NULL }, > + { "publicExponent", 1073741827, NULL }, > + { "privateExponent", 1073741827, NULL }, > + { "prime1", 1073741827, NULL }, > + { "prime2", 1073741827, NULL }, > + { "exponent1", 1073741827, NULL }, > + { "exponent2", 1073741827, NULL }, > + { "coefficient", 1073741827, NULL }, > + { "otherPrimeInfos", 16386, "OtherPrimeInfos"}, > + { "ProvableSeed", 1610612741, NULL }, > + { "algorithm", 1073741836, NULL }, > + { "seed", 7, NULL }, > + { "OtherPrimeInfos", 1612709899, NULL }, > + { "MAX", 1074266122, "1"}, > + { NULL, 2, "OtherPrimeInfo"}, > + { "OtherPrimeInfo", 1610612741, NULL }, > + { "prime", 1073741827, NULL }, > + { "exponent", 1073741827, NULL }, > + { "coefficient", 3, NULL }, > + { "AlgorithmIdentifier", 1610612741, NULL }, > + { "algorithm", 1073741836, NULL }, > + { "parameters", 541081613, NULL }, > + { "algorithm", 1, NULL }, > + { "DigestInfo", 1610612741, NULL }, > + { "digestAlgorithm", 1073741826, "DigestAlgorithmIdentifier"}, > + { "digest", 7, NULL }, > + { "DigestAlgorithmIdentifier", 1073741826, "AlgorithmIdentifier"}, > + { "DSAPublicKey", 1073741827, NULL }, > + { "DSAParameters", 1610612741, NULL }, > + { "p", 1073741827, NULL }, > + { "q", 1073741827, NULL }, > + { "g", 3, NULL }, > + { "DSASignatureValue", 1610612741, NULL }, > + { "r", 1073741827, NULL }, > + { "s", 3, NULL }, > + { "DSAPrivateKey", 1610612741, NULL }, > + { "version", 1073741827, NULL }, > + { "p", 1073741827, NULL }, > + { "q", 1073741827, NULL }, > + { "g", 1073741827, NULL }, > + { "Y", 1073741827, NULL }, > + { "priv", 3, NULL }, > + { "DHParameter", 1610612741, NULL }, > + { "prime", 1073741827, NULL }, > + { "base", 1073741827, NULL }, > + { "privateValueLength", 16387, NULL }, > + { "ECParameters", 1610612754, NULL }, > + { "namedCurve", 12, NULL }, > + { "ECPrivateKey", 1610612741, NULL }, > + { "Version", 1073741827, NULL }, > + { "privateKey", 1073741831, NULL }, > + { "parameters", 1610637314, "ECParameters"}, > + { NULL, 2056, "0"}, > + { "publicKey", 536895494, NULL }, > + { NULL, 2056, "1"}, > + { "PrincipalName", 1610612741, NULL }, > + { "name-type", 1610620931, NULL }, > + { NULL, 2056, "0"}, > + { "name-string", 536879115, NULL }, > + { NULL, 1073743880, "1"}, > + { NULL, 27, NULL }, > + { "KRB5PrincipalName", 1610612741, NULL }, > + { "realm", 1610620955, NULL }, > + { NULL, 2056, "0"}, > + { "principalName", 536879106, "PrincipalName"}, > + { NULL, 2056, "1"}, > + { "RSAPSSParameters", 1610612741, NULL }, > + { "hashAlgorithm", 1610637314, "AlgorithmIdentifier"}, > + { NULL, 2056, "0"}, > + { "maskGenAlgorithm", 1610637314, "AlgorithmIdentifier"}, > + { NULL, 2056, "1"}, > + { "saltLength", 1610653699, NULL }, > + { NULL, 1073741833, "20"}, > + { NULL, 2056, "2"}, > + { "trailerField", 536911875, NULL }, > + { NULL, 1073741833, "1"}, > + { NULL, 2056, "3"}, > + { "GOSTParameters", 1610612741, NULL }, > + { "publicKeyParamSet", 1073741836, NULL }, > + { "digestParamSet", 16396, NULL }, > + { "GOSTParametersOld", 1610612741, NULL }, > + { "publicKeyParamSet", 1073741836, NULL }, > + { "digestParamSet", 1073741836, NULL }, > + { "encryptionParamSet", 16396, NULL }, > + { "GOSTPrivateKey", 1073741831, NULL }, > + { "GOSTPrivateKeyOld", 1073741827, NULL }, > + { "IssuerSignTool", 1610612741, NULL }, > + { "signTool", 1073741858, NULL }, > + { "cATool", 1073741858, NULL }, > + { "signToolCert", 1073741858, NULL }, > + { "cAToolCert", 34, NULL }, > + { "Gost28147-89-EncryptedKey", 1610612741, NULL }, > + { "encryptedKey", 1073741831, NULL }, > + { "maskKey", 1610637319, NULL }, > + { NULL, 4104, "0"}, > + { "macKey", 7, NULL }, > + { "SubjectPublicKeyInfo", 1610612741, NULL }, > + { "algorithm", 1073741826, "AlgorithmIdentifier"}, > + { "subjectPublicKey", 6, NULL }, > + { "GostR3410-TransportParameters", 1610612741, NULL }, > + { "encryptionParamSet", 1073741836, NULL }, > + { "ephemeralPublicKey", 1610637314, "SubjectPublicKeyInfo"}, > + { NULL, 4104, "0"}, > + { "ukm", 7, NULL }, > + { "GostR3410-KeyTransport", 536870917, NULL }, > + { "sessionEncryptedKey", 1073741826, "Gost28147-89-EncryptedKey"}, > + { "transportParameters", 536895490, "GostR3410-TransportParameters"}, > + { NULL, 4104, "0"}, > + { NULL, 0, NULL } > +}; > diff --git a/grub-core/commands/appendedsig/pkix_asn1_tab.c b/grub-core/commands/appendedsig/pkix_asn1_tab.c > new file mode 100644 > index 000000000000..adef69d95ced > --- /dev/null > +++ b/grub-core/commands/appendedsig/pkix_asn1_tab.c > @@ -0,0 +1,484 @@ > +#include > +#include > + > +const asn1_static_node pkix_asn1_tab[] = { > + { "PKIX1", 536875024, NULL }, > + { NULL, 1073741836, NULL }, > + { "PrivateKeyUsagePeriod", 1610612741, NULL }, > + { "notBefore", 1610637349, NULL }, > + { NULL, 4104, "0"}, > + { "notAfter", 536895525, NULL }, > + { NULL, 4104, "1"}, > + { "AuthorityKeyIdentifier", 1610612741, NULL }, > + { "keyIdentifier", 1610637319, NULL }, > + { NULL, 4104, "0"}, > + { "authorityCertIssuer", 1610637314, "GeneralNames"}, > + { NULL, 4104, "1"}, > + { "authorityCertSerialNumber", 536895490, "CertificateSerialNumber"}, > + { NULL, 4104, "2"}, > + { "SubjectKeyIdentifier", 1073741831, NULL }, > + { "KeyUsage", 1073741830, NULL }, > + { "DirectoryString", 1610612754, NULL }, > + { "teletexString", 1612709918, NULL }, > + { "MAX", 524298, "1"}, > + { "printableString", 1612709919, NULL }, > + { "MAX", 524298, "1"}, > + { "universalString", 1612709920, NULL }, > + { "MAX", 524298, "1"}, > + { "utf8String", 1612709922, NULL }, > + { "MAX", 524298, "1"}, > + { "bmpString", 1612709921, NULL }, > + { "MAX", 524298, "1"}, > + { "ia5String", 538968093, NULL }, > + { "MAX", 524298, "1"}, > + { "SubjectAltName", 1073741826, "GeneralNames"}, > + { "GeneralNames", 1612709899, NULL }, > + { "MAX", 1074266122, "1"}, > + { NULL, 2, "GeneralName"}, > + { "GeneralName", 1610612754, NULL }, > + { "otherName", 1610620930, "AnotherName"}, > + { NULL, 4104, "0"}, > + { "rfc822Name", 1610620957, NULL }, > + { NULL, 4104, "1"}, > + { "dNSName", 1610620957, NULL }, > + { NULL, 4104, "2"}, > + { "x400Address", 1610620941, NULL }, > + { NULL, 4104, "3"}, > + { "directoryName", 1610620939, NULL }, > + { NULL, 1073743880, "4"}, > + { NULL, 2, "RelativeDistinguishedName"}, > + { "ediPartyName", 1610620941, NULL }, > + { NULL, 4104, "5"}, > + { "uniformResourceIdentifier", 1610620957, NULL }, > + { NULL, 4104, "6"}, > + { "iPAddress", 1610620935, NULL }, > + { NULL, 4104, "7"}, > + { "registeredID", 536879116, NULL }, > + { NULL, 4104, "8"}, > + { "AnotherName", 1610612741, NULL }, > + { "type-id", 1073741836, NULL }, > + { "value", 541073421, NULL }, > + { NULL, 1073743880, "0"}, > + { "type-id", 1, NULL }, > + { "IssuerAltName", 1073741826, "GeneralNames"}, > + { "BasicConstraints", 1610612741, NULL }, > + { "cA", 1610645508, NULL }, > + { NULL, 131081, NULL }, > + { "pathLenConstraint", 537411587, NULL }, > + { "0", 10, "MAX"}, > + { "CRLDistributionPoints", 1612709899, NULL }, > + { "MAX", 1074266122, "1"}, > + { NULL, 2, "DistributionPoint"}, > + { "DistributionPoint", 1610612741, NULL }, > + { "distributionPoint", 1610637314, "DistributionPointName"}, > + { NULL, 2056, "0"}, > + { "reasons", 1610637314, "ReasonFlags"}, > + { NULL, 4104, "1"}, > + { "cRLIssuer", 536895490, "GeneralNames"}, > + { NULL, 4104, "2"}, > + { "DistributionPointName", 1610612754, NULL }, > + { "fullName", 1610620930, "GeneralNames"}, > + { NULL, 4104, "0"}, > + { "nameRelativeToCRLIssuer", 536879106, "RelativeDistinguishedName"}, > + { NULL, 4104, "1"}, > + { "ReasonFlags", 1073741830, NULL }, > + { "ExtKeyUsageSyntax", 1612709899, NULL }, > + { "MAX", 1074266122, "1"}, > + { NULL, 12, NULL }, > + { "AuthorityInfoAccessSyntax", 1612709899, NULL }, > + { "MAX", 1074266122, "1"}, > + { NULL, 2, "AccessDescription"}, > + { "AccessDescription", 1610612741, NULL }, > + { "accessMethod", 1073741836, NULL }, > + { "accessLocation", 2, "GeneralName"}, > + { "Attribute", 1610612741, NULL }, > + { "type", 1073741836, NULL }, > + { "values", 536870927, NULL }, > + { NULL, 13, NULL }, > + { "AttributeTypeAndValue", 1610612741, NULL }, > + { "type", 1073741836, NULL }, > + { "value", 13, NULL }, > + { "Name", 1610612754, NULL }, > + { "rdnSequence", 536870923, NULL }, > + { NULL, 2, "RelativeDistinguishedName"}, > + { "DistinguishedName", 1610612747, NULL }, > + { NULL, 2, "RelativeDistinguishedName"}, > + { "RelativeDistinguishedName", 1612709903, NULL }, > + { "MAX", 1074266122, "1"}, > + { NULL, 2, "AttributeTypeAndValue"}, > + { "Certificate", 1610612741, NULL }, > + { "tbsCertificate", 1073741826, "TBSCertificate"}, > + { "signatureAlgorithm", 1073741826, "AlgorithmIdentifier"}, > + { "signature", 6, NULL }, > + { "TBSCertificate", 1610612741, NULL }, > + { "version", 1610653699, NULL }, > + { NULL, 1073741833, "0"}, > + { NULL, 2056, "0"}, > + { "serialNumber", 1073741826, "CertificateSerialNumber"}, > + { "signature", 1073741826, "AlgorithmIdentifier"}, > + { "issuer", 1073741826, "Name"}, > + { "validity", 1073741826, "Validity"}, > + { "subject", 1073741826, "Name"}, > + { "subjectPublicKeyInfo", 1073741826, "SubjectPublicKeyInfo"}, > + { "issuerUniqueID", 1610637314, "UniqueIdentifier"}, > + { NULL, 4104, "1"}, > + { "subjectUniqueID", 1610637314, "UniqueIdentifier"}, > + { NULL, 4104, "2"}, > + { "extensions", 536895490, "Extensions"}, > + { NULL, 2056, "3"}, > + { "CertificateSerialNumber", 1073741827, NULL }, > + { "Validity", 1610612741, NULL }, > + { "notBefore", 1073741826, "Time"}, > + { "notAfter", 2, "Time"}, > + { "Time", 1610612754, NULL }, > + { "utcTime", 1073741860, NULL }, > + { "generalTime", 37, NULL }, > + { "UniqueIdentifier", 1073741830, NULL }, > + { "SubjectPublicKeyInfo", 1610612741, NULL }, > + { "algorithm", 1073741826, "AlgorithmIdentifier"}, > + { "subjectPublicKey", 6, NULL }, > + { "Extensions", 1612709899, NULL }, > + { "MAX", 1074266122, "1"}, > + { NULL, 2, "Extension"}, > + { "Extension", 1610612741, NULL }, > + { "extnID", 1073741836, NULL }, > + { "critical", 1610645508, NULL }, > + { NULL, 131081, NULL }, > + { "extnValue", 7, NULL }, > + { "CertificateList", 1610612741, NULL }, > + { "tbsCertList", 1073741826, "TBSCertList"}, > + { "signatureAlgorithm", 1073741826, "AlgorithmIdentifier"}, > + { "signature", 6, NULL }, > + { "TBSCertList", 1610612741, NULL }, > + { "version", 1073758211, NULL }, > + { "signature", 1073741826, "AlgorithmIdentifier"}, > + { "issuer", 1073741826, "Name"}, > + { "thisUpdate", 1073741826, "Time"}, > + { "nextUpdate", 1073758210, "Time"}, > + { "revokedCertificates", 1610629131, NULL }, > + { NULL, 536870917, NULL }, > + { "userCertificate", 1073741826, "CertificateSerialNumber"}, > + { "revocationDate", 1073741826, "Time"}, > + { "crlEntryExtensions", 16386, "Extensions"}, > + { "crlExtensions", 536895490, "Extensions"}, > + { NULL, 2056, "0"}, > + { "AlgorithmIdentifier", 1610612741, NULL }, > + { "algorithm", 1073741836, NULL }, > + { "parameters", 541081613, NULL }, > + { "algorithm", 1, NULL }, > + { "Dss-Sig-Value", 1610612741, NULL }, > + { "r", 1073741827, NULL }, > + { "s", 3, NULL }, > + { "Dss-Parms", 1610612741, NULL }, > + { "p", 1073741827, NULL }, > + { "q", 1073741827, NULL }, > + { "g", 3, NULL }, > + { "pkcs-7-ContentInfo", 1610612741, NULL }, > + { "contentType", 1073741836, NULL }, > + { "content", 541073421, NULL }, > + { NULL, 1073743880, "0"}, > + { "contentType", 1, NULL }, > + { "pkcs-7-DigestInfo", 1610612741, NULL }, > + { "digestAlgorithm", 1073741826, "AlgorithmIdentifier"}, > + { "digest", 7, NULL }, > + { "pkcs-7-SignedData", 1610612741, NULL }, > + { "version", 1073741827, NULL }, > + { "digestAlgorithms", 1073741826, "pkcs-7-DigestAlgorithmIdentifiers"}, > + { "encapContentInfo", 1073741826, "pkcs-7-EncapsulatedContentInfo"}, > + { "certificates", 1610637314, "pkcs-7-CertificateSet"}, > + { NULL, 4104, "0"}, > + { "crls", 1610637314, "pkcs-7-CertificateRevocationLists"}, > + { NULL, 4104, "1"}, > + { "signerInfos", 2, "pkcs-7-SignerInfos"}, > + { "pkcs-7-DigestAlgorithmIdentifiers", 1610612751, NULL }, > + { NULL, 2, "AlgorithmIdentifier"}, > + { "pkcs-7-EncapsulatedContentInfo", 1610612741, NULL }, > + { "eContentType", 1073741836, NULL }, > + { "eContent", 536895501, NULL }, > + { NULL, 2056, "0"}, > + { "pkcs-7-CertificateRevocationLists", 1610612751, NULL }, > + { NULL, 13, NULL }, > + { "pkcs-7-CertificateChoices", 1610612754, NULL }, > + { "certificate", 13, NULL }, > + { "pkcs-7-CertificateSet", 1610612751, NULL }, > + { NULL, 2, "pkcs-7-CertificateChoices"}, > + { "IssuerAndSerialNumber", 1610612741, NULL }, > + { "issuer", 1073741826, "Name"}, > + { "serialNumber", 2, "CertificateSerialNumber"}, > + { "pkcs-7-SignerInfo", 1610612741, NULL }, > + { "version", 1073741827, NULL }, > + { "sid", 1073741826, "SignerIdentifier"}, > + { "digestAlgorithm", 1073741826, "AlgorithmIdentifier"}, > + { "signedAttrs", 1610637314, "SignedAttributes"}, > + { NULL, 4104, "0"}, > + { "signatureAlgorithm", 1073741826, "AlgorithmIdentifier"}, > + { "signature", 1073741831, NULL }, > + { "unsignedAttrs", 536895490, "SignedAttributes"}, > + { NULL, 4104, "1"}, > + { "SignedAttributes", 1612709903, NULL }, > + { "MAX", 1074266122, "1"}, > + { NULL, 2, "Attribute"}, > + { "SignerIdentifier", 1610612754, NULL }, > + { "issuerAndSerialNumber", 1073741826, "IssuerAndSerialNumber"}, > + { "subjectKeyIdentifier", 536879111, NULL }, > + { NULL, 4104, "0"}, > + { "pkcs-7-SignerInfos", 1610612751, NULL }, > + { NULL, 2, "pkcs-7-SignerInfo"}, > + { "pkcs-10-CertificationRequestInfo", 1610612741, NULL }, > + { "version", 1073741827, NULL }, > + { "subject", 1073741826, "Name"}, > + { "subjectPKInfo", 1073741826, "SubjectPublicKeyInfo"}, > + { "attributes", 536879106, "Attributes"}, > + { NULL, 4104, "0"}, > + { "Attributes", 1610612751, NULL }, > + { NULL, 2, "Attribute"}, > + { "pkcs-10-CertificationRequest", 1610612741, NULL }, > + { "certificationRequestInfo", 1073741826, "pkcs-10-CertificationRequestInfo"}, > + { "signatureAlgorithm", 1073741826, "AlgorithmIdentifier"}, > + { "signature", 6, NULL }, > + { "pkcs-9-at-challengePassword", 1879048204, NULL }, > + { "iso", 1073741825, "1"}, > + { "member-body", 1073741825, "2"}, > + { "us", 1073741825, "840"}, > + { "rsadsi", 1073741825, "113549"}, > + { "pkcs", 1073741825, "1"}, > + { NULL, 1073741825, "9"}, > + { NULL, 1, "7"}, > + { "pkcs-9-challengePassword", 1610612754, NULL }, > + { "printableString", 1073741855, NULL }, > + { "utf8String", 34, NULL }, > + { "pkcs-9-localKeyId", 1073741831, NULL }, > + { "pkcs-8-PrivateKeyInfo", 1610612741, NULL }, > + { "version", 1073741827, NULL }, > + { "privateKeyAlgorithm", 1073741826, "AlgorithmIdentifier"}, > + { "privateKey", 1073741831, NULL }, > + { "attributes", 536895490, "Attributes"}, > + { NULL, 4104, "0"}, > + { "pkcs-8-EncryptedPrivateKeyInfo", 1610612741, NULL }, > + { "encryptionAlgorithm", 1073741826, "AlgorithmIdentifier"}, > + { "encryptedData", 2, "pkcs-8-EncryptedData"}, > + { "pkcs-8-EncryptedData", 1073741831, NULL }, > + { "pkcs-5-des-CBC-params", 1612709895, NULL }, > + { NULL, 1048586, "8"}, > + { "pkcs-5-des-EDE3-CBC-params", 1612709895, NULL }, > + { NULL, 1048586, "8"}, > + { "pkcs-5-aes128-CBC-params", 1612709895, NULL }, > + { NULL, 1048586, "16"}, > + { "pkcs-5-aes192-CBC-params", 1612709895, NULL }, > + { NULL, 1048586, "16"}, > + { "pkcs-5-aes256-CBC-params", 1612709895, NULL }, > + { NULL, 1048586, "16"}, > + { "Gost28147-89-Parameters", 1610612741, NULL }, > + { "iv", 1073741831, NULL }, > + { "encryptionParamSet", 12, NULL }, > + { "pkcs-5-PBE-params", 1610612741, NULL }, > + { "salt", 1073741831, NULL }, > + { "iterationCount", 3, NULL }, > + { "pkcs-5-PBES2-params", 1610612741, NULL }, > + { "keyDerivationFunc", 1073741826, "AlgorithmIdentifier"}, > + { "encryptionScheme", 2, "AlgorithmIdentifier"}, > + { "pkcs-5-PBKDF2-params", 1610612741, NULL }, > + { "salt", 1610612754, NULL }, > + { "specified", 1073741831, NULL }, > + { "otherSource", 2, "AlgorithmIdentifier"}, > + { "iterationCount", 1611137027, NULL }, > + { "1", 10, "MAX"}, > + { "keyLength", 1611153411, NULL }, > + { "1", 10, "MAX"}, > + { "prf", 16386, "AlgorithmIdentifier"}, > + { "pkcs-12-PFX", 1610612741, NULL }, > + { "version", 1610874883, NULL }, > + { "v3", 1, "3"}, > + { "authSafe", 1073741826, "pkcs-7-ContentInfo"}, > + { "macData", 16386, "pkcs-12-MacData"}, > + { "pkcs-12-PbeParams", 1610612741, NULL }, > + { "salt", 1073741831, NULL }, > + { "iterations", 3, NULL }, > + { "pkcs-12-MacData", 1610612741, NULL }, > + { "mac", 1073741826, "pkcs-7-DigestInfo"}, > + { "macSalt", 1073741831, NULL }, > + { "iterations", 536903683, NULL }, > + { NULL, 9, "1"}, > + { "pkcs-12-AuthenticatedSafe", 1610612747, NULL }, > + { NULL, 2, "pkcs-7-ContentInfo"}, > + { "pkcs-12-SafeContents", 1610612747, NULL }, > + { NULL, 2, "pkcs-12-SafeBag"}, > + { "pkcs-12-SafeBag", 1610612741, NULL }, > + { "bagId", 1073741836, NULL }, > + { "bagValue", 1614815245, NULL }, > + { NULL, 1073743880, "0"}, > + { "badId", 1, NULL }, > + { "bagAttributes", 536887311, NULL }, > + { NULL, 2, "Attribute"}, > + { "pkcs-12-CertBag", 1610612741, NULL }, > + { "certId", 1073741836, NULL }, > + { "certValue", 541073421, NULL }, > + { NULL, 1073743880, "0"}, > + { "certId", 1, NULL }, > + { "pkcs-12-CRLBag", 1610612741, NULL }, > + { "crlId", 1073741836, NULL }, > + { "crlValue", 541073421, NULL }, > + { NULL, 1073743880, "0"}, > + { "crlId", 1, NULL }, > + { "pkcs-12-SecretBag", 1610612741, NULL }, > + { "secretTypeId", 1073741836, NULL }, > + { "secretValue", 541073421, NULL }, > + { NULL, 1073743880, "0"}, > + { "secretTypeId", 1, NULL }, > + { "pkcs-7-Data", 1073741831, NULL }, > + { "pkcs-7-EncryptedData", 1610612741, NULL }, > + { "version", 1073741827, NULL }, > + { "encryptedContentInfo", 1073741826, "pkcs-7-EncryptedContentInfo"}, > + { "unprotectedAttrs", 536895490, "pkcs-7-UnprotectedAttributes"}, > + { NULL, 4104, "1"}, > + { "pkcs-7-EncryptedContentInfo", 1610612741, NULL }, > + { "contentType", 1073741836, NULL }, > + { "contentEncryptionAlgorithm", 1073741826, "pkcs-7-ContentEncryptionAlgorithmIdentifier"}, > + { "encryptedContent", 536895495, NULL }, > + { NULL, 4104, "0"}, > + { "pkcs-7-ContentEncryptionAlgorithmIdentifier", 1073741826, "AlgorithmIdentifier"}, > + { "pkcs-7-UnprotectedAttributes", 1612709903, NULL }, > + { "MAX", 1074266122, "1"}, > + { NULL, 2, "Attribute"}, > + { "ProxyCertInfo", 1610612741, NULL }, > + { "pCPathLenConstraint", 1611153411, NULL }, > + { "0", 10, "MAX"}, > + { "proxyPolicy", 2, "ProxyPolicy"}, > + { "ProxyPolicy", 1610612741, NULL }, > + { "policyLanguage", 1073741836, NULL }, > + { "policy", 16391, NULL }, > + { "certificatePolicies", 1612709899, NULL }, > + { "MAX", 1074266122, "1"}, > + { NULL, 2, "PolicyInformation"}, > + { "PolicyInformation", 1610612741, NULL }, > + { "policyIdentifier", 1073741836, NULL }, > + { "policyQualifiers", 538984459, NULL }, > + { "MAX", 1074266122, "1"}, > + { NULL, 2, "PolicyQualifierInfo"}, > + { "PolicyQualifierInfo", 1610612741, NULL }, > + { "policyQualifierId", 1073741836, NULL }, > + { "qualifier", 541065229, NULL }, > + { "policyQualifierId", 1, NULL }, > + { "CPSuri", 1073741853, NULL }, > + { "UserNotice", 1610612741, NULL }, > + { "noticeRef", 1073758210, "NoticeReference"}, > + { "explicitText", 16386, "DisplayText"}, > + { "NoticeReference", 1610612741, NULL }, > + { "organization", 1073741826, "DisplayText"}, > + { "noticeNumbers", 536870923, NULL }, > + { NULL, 3, NULL }, > + { "DisplayText", 1610612754, NULL }, > + { "ia5String", 1612709917, NULL }, > + { "200", 524298, "1"}, > + { "visibleString", 1612709923, NULL }, > + { "200", 524298, "1"}, > + { "bmpString", 1612709921, NULL }, > + { "200", 524298, "1"}, > + { "utf8String", 538968098, NULL }, > + { "200", 524298, "1"}, > + { "OCSPRequest", 1610612741, NULL }, > + { "tbsRequest", 1073741826, "TBSRequest"}, > + { "optionalSignature", 536895490, "Signature"}, > + { NULL, 2056, "0"}, > + { "TBSRequest", 1610612741, NULL }, > + { "version", 1610653699, NULL }, > + { NULL, 1073741833, "0"}, > + { NULL, 2056, "0"}, > + { "requestorName", 1610637314, "GeneralName"}, > + { NULL, 2056, "1"}, > + { "requestList", 1610612747, NULL }, > + { NULL, 2, "Request"}, > + { "requestExtensions", 536895490, "Extensions"}, > + { NULL, 2056, "2"}, > + { "Signature", 1610612741, NULL }, > + { "signatureAlgorithm", 1073741826, "AlgorithmIdentifier"}, > + { "signature", 1073741830, NULL }, > + { "certs", 536895499, NULL }, > + { NULL, 1073743880, "0"}, > + { NULL, 2, "Certificate"}, > + { "Request", 1610612741, NULL }, > + { "reqCert", 1073741826, "CertID"}, > + { "singleRequestExtensions", 536895490, "Extensions"}, > + { NULL, 2056, "0"}, > + { "CertID", 1610612741, NULL }, > + { "hashAlgorithm", 1073741826, "AlgorithmIdentifier"}, > + { "issuerNameHash", 1073741831, NULL }, > + { "issuerKeyHash", 1073741831, NULL }, > + { "serialNumber", 2, "CertificateSerialNumber"}, > + { "OCSPResponse", 1610612741, NULL }, > + { "responseStatus", 1073741826, "OCSPResponseStatus"}, > + { "responseBytes", 536895490, "ResponseBytes"}, > + { NULL, 2056, "0"}, > + { "OCSPResponseStatus", 1610874901, NULL }, > + { "successful", 1073741825, "0"}, > + { "malformedRequest", 1073741825, "1"}, > + { "internalError", 1073741825, "2"}, > + { "tryLater", 1073741825, "3"}, > + { "sigRequired", 1073741825, "5"}, > + { "unauthorized", 1, "6"}, > + { "ResponseBytes", 1610612741, NULL }, > + { "responseType", 1073741836, NULL }, > + { "response", 7, NULL }, > + { "BasicOCSPResponse", 1610612741, NULL }, > + { "tbsResponseData", 1073741826, "ResponseData"}, > + { "signatureAlgorithm", 1073741826, "AlgorithmIdentifier"}, > + { "signature", 1073741830, NULL }, > + { "certs", 536895499, NULL }, > + { NULL, 1073743880, "0"}, > + { NULL, 2, "Certificate"}, > + { "ResponseData", 1610612741, NULL }, > + { "version", 1610653699, NULL }, > + { NULL, 1073741833, "0"}, > + { NULL, 2056, "0"}, > + { "responderID", 1073741826, "ResponderID"}, > + { "producedAt", 1073741861, NULL }, > + { "responses", 1610612747, NULL }, > + { NULL, 2, "SingleResponse"}, > + { "responseExtensions", 536895490, "Extensions"}, > + { NULL, 2056, "1"}, > + { "ResponderID", 1610612754, NULL }, > + { "byName", 1610620939, NULL }, > + { NULL, 1073743880, "1"}, > + { NULL, 2, "RelativeDistinguishedName"}, > + { "byKey", 536879111, NULL }, > + { NULL, 2056, "2"}, > + { "SingleResponse", 1610612741, NULL }, > + { "certID", 1073741826, "CertID"}, > + { "certStatus", 1073741826, "CertStatus"}, > + { "thisUpdate", 1073741861, NULL }, > + { "nextUpdate", 1610637349, NULL }, > + { NULL, 2056, "0"}, > + { "singleExtensions", 536895490, "Extensions"}, > + { NULL, 2056, "1"}, > + { "CertStatus", 1610612754, NULL }, > + { "good", 1610620948, NULL }, > + { NULL, 4104, "0"}, > + { "revoked", 1610620930, "RevokedInfo"}, > + { NULL, 4104, "1"}, > + { "unknown", 536879106, "UnknownInfo"}, > + { NULL, 4104, "2"}, > + { "RevokedInfo", 1610612741, NULL }, > + { "revocationTime", 1073741861, NULL }, > + { "revocationReason", 537157653, NULL }, > + { NULL, 1073743880, "0"}, > + { "unspecified", 1, "0"}, > + { "UnknownInfo", 1073741844, NULL }, > + { "NameConstraints", 1610612741, NULL }, > + { "permittedSubtrees", 1610637314, "GeneralSubtrees"}, > + { NULL, 4104, "0"}, > + { "excludedSubtrees", 536895490, "GeneralSubtrees"}, > + { NULL, 4104, "1"}, > + { "GeneralSubtrees", 1612709899, NULL }, > + { "MAX", 1074266122, "1"}, > + { NULL, 2, "GeneralSubtree"}, > + { "GeneralSubtree", 1610612741, NULL }, > + { "base", 1073741826, "GeneralName"}, > + { "minimum", 1610653699, NULL }, > + { NULL, 1073741833, "0"}, > + { NULL, 4104, "0"}, > + { "maximum", 536895491, NULL }, > + { NULL, 4104, "1"}, > + { "TlsFeatures", 536870923, NULL }, > + { NULL, 3, NULL }, > + { NULL, 0, NULL } > +};