using System; using System.Collections; using System.Runtime.InteropServices; using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1; using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms; using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Cms { // Token: 0x02001778 RID: 6008 [Token(Token = "0x2001778")] [StructLayout(3)] public class DefaultSignedAttributeTableGenerator : CmsAttributeTableGenerator { // Token: 0x0600A265 RID: 41573 RVA: 0x0025D044 File Offset: 0x0025B244 [Token(Token = "0x600A265")] [Address(RVA = "0x657DB0", Offset = "0x6567B0", VA = "0x180657DB0")] public DefaultSignedAttributeTableGenerator() { IDictionary dictionary = Platform.CreateHashtable(); this.table = dictionary; } // Token: 0x0600A266 RID: 41574 RVA: 0x0025D068 File Offset: 0x0025B268 [Token(Token = "0x600A266")] [Address(RVA = "0x657D20", Offset = "0x656720", VA = "0x180657D20")] public DefaultSignedAttributeTableGenerator(AttributeTable attributeTable) { if (attributeTable == 0) { IDictionary dictionary = Platform.CreateHashtable(); this.table = dictionary; return; } IDictionary dictionary2 = attributeTable.ToDictionary(); this.table = dictionary2; } // Token: 0x0600A267 RID: 41575 RVA: 0x0025D0A0 File Offset: 0x0025B2A0 [Token(Token = "0x600A267")] [Address(RVA = "0x657E10", Offset = "0x656810", VA = "0x180657E10", Slot = "5")] protected virtual Hashtable createStandardAttributeTable(IDictionary parameters) { Hashtable hashtable = new Hashtable(this.table); this.DoCreateStandardAttributeTable(parameters, hashtable); return hashtable; } // Token: 0x0600A268 RID: 41576 RVA: 0x0025D0C4 File Offset: 0x0025B2C4 [Token(Token = "0x600A268")] [Address(RVA = "0x657800", Offset = "0x656200", VA = "0x180657800")] private void DoCreateStandardAttributeTable(IDictionary parameters, IDictionary std) { CmsAttributeTableParameter cmsAttributeTableParameter3; do { CmsAttributeTableParameter cmsAttributeTableParameter; if (cmsAttributeTableParameter != CmsAttributeTableParameter.ContentType) { CmsAttributeTableParameter cmsAttributeTableParameter2; if (cmsAttributeTableParameter2 == CmsAttributeTableParameter.ContentType) { } if (cmsAttributeTableParameter2 == CmsAttributeTableParameter.ContentType) { continue; } DerObjectIdentifier contentType = CmsAttributes.ContentType; DerSet derSet = new DerSet(cmsAttributeTableParameter2); BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.Attribute attribute = new BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.Attribute(contentType, derSet); } DerObjectIdentifier signingTime = CmsAttributes.SigningTime; DerSet derSet2 = new DerSet(new Time(DateTime.UtcNow)); BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.Attribute attribute2 = new BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.Attribute(signingTime, derSet2); } while (cmsAttributeTableParameter3 != CmsAttributeTableParameter.ContentType && cmsAttributeTableParameter3 == CmsAttributeTableParameter.ContentType); DerObjectIdentifier messageDigest = CmsAttributes.MessageDigest; DerOctetString derOctetString; DerSet derSet3 = new DerSet(derOctetString); BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.Attribute attribute3 = new BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.Attribute(messageDigest, derSet3); } // Token: 0x0600A269 RID: 41577 RVA: 0x0025D150 File Offset: 0x0025B350 [Token(Token = "0x600A269")] [Address(RVA = "0x657CB0", Offset = "0x6566B0", VA = "0x180657CB0", Slot = "6")] public virtual AttributeTable GetAttributes(IDictionary parameters) { AttributeTable attributes = this.GetAttributes(parameters); AttributeTable attributeTable; return attributeTable; } // Token: 0x04006AD2 RID: 27346 [global::Cpp2IlInjected.FieldOffset(Offset = "0x10")] [Token(Token = "0x4006AD2")] private readonly IDictionary table; } }