using System; using System.Collections; 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: 0x02001D55 RID: 7509 [Token(Token = "0x2001D55")] public class DefaultSignedAttributeTableGenerator : CmsAttributeTableGenerator { // Token: 0x0600BE3F RID: 48703 RVA: 0x002B5454 File Offset: 0x002B3654 [Token(Token = "0x600BE3F")] [Address(RVA = "0x2008C50", Offset = "0x2007A50", VA = "0x182008C50")] public DefaultSignedAttributeTableGenerator() { IDictionary dictionary = Platform.CreateHashtable(); this.table = dictionary; } // Token: 0x0600BE40 RID: 48704 RVA: 0x002B5478 File Offset: 0x002B3678 [Token(Token = "0x600BE40")] [Address(RVA = "0x2008BC0", Offset = "0x20079C0", VA = "0x182008BC0")] public DefaultSignedAttributeTableGenerator(AttributeTable attributeTable) { if (attributeTable == 0) { IDictionary dictionary = Platform.CreateHashtable(); this.table = dictionary; return; } IDictionary dictionary2 = attributeTable.ToDictionary(); this.table = dictionary2; } // Token: 0x0600BE41 RID: 48705 RVA: 0x002B54B0 File Offset: 0x002B36B0 [Token(Token = "0x600BE41")] [Address(RVA = "0x2008CB0", Offset = "0x2007AB0", VA = "0x182008CB0", Slot = "5")] protected virtual Hashtable createStandardAttributeTable(IDictionary parameters) { Hashtable hashtable = new Hashtable(this.table); this.DoCreateStandardAttributeTable(parameters, hashtable); return hashtable; } // Token: 0x0600BE42 RID: 48706 RVA: 0x002B54D4 File Offset: 0x002B36D4 [Token(Token = "0x600BE42")] [Address(RVA = "0x20086A0", Offset = "0x20074A0", VA = "0x1820086A0")] 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: 0x0600BE43 RID: 48707 RVA: 0x002B5560 File Offset: 0x002B3760 [Token(Token = "0x600BE43")] [Address(RVA = "0x2008B50", Offset = "0x2007950", VA = "0x182008B50", Slot = "6")] public virtual AttributeTable GetAttributes(IDictionary parameters) { AttributeTable attributes = this.GetAttributes(parameters); AttributeTable attributeTable; return attributeTable; } // Token: 0x04007915 RID: 30997 [FieldOffset(Offset = "0x10")] [Token(Token = "0x4007915")] private readonly IDictionary table; } }