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: 0x02001D54 RID: 7508 [Token(Token = "0x2001D54")] public class DefaultAuthenticatedAttributeTableGenerator : CmsAttributeTableGenerator { // Token: 0x0600BE3B RID: 48699 RVA: 0x002B536C File Offset: 0x002B356C [Token(Token = "0x600BE3B")] [Address(RVA = "0x2007220", Offset = "0x2006020", VA = "0x182007220")] public DefaultAuthenticatedAttributeTableGenerator() { IDictionary dictionary = Platform.CreateHashtable(); this.table = dictionary; } // Token: 0x0600BE3C RID: 48700 RVA: 0x002B5390 File Offset: 0x002B3590 [Token(Token = "0x600BE3C")] [Address(RVA = "0x2007190", Offset = "0x2005F90", VA = "0x182007190")] public DefaultAuthenticatedAttributeTableGenerator(AttributeTable attributeTable) { if (attributeTable == 0) { IDictionary dictionary = Platform.CreateHashtable(); this.table = dictionary; return; } IDictionary dictionary2 = attributeTable.ToDictionary(); this.table = dictionary2; } // Token: 0x0600BE3D RID: 48701 RVA: 0x002B53C8 File Offset: 0x002B35C8 [Token(Token = "0x600BE3D")] [Address(RVA = "0x2006DA0", Offset = "0x2005BA0", VA = "0x182006DA0", Slot = "5")] protected virtual IDictionary CreateStandardAttributeTable(IDictionary parameters) { IDictionary dictionary; CmsAttributeTableParameter cmsAttributeTableParameter2; do { dictionary = Platform.CreateHashtable(this.table); if (dictionary == 0) { CmsAttributeTableParameter cmsAttributeTableParameter; if (cmsAttributeTableParameter == CmsAttributeTableParameter.ContentType) { } if (cmsAttributeTableParameter == CmsAttributeTableParameter.ContentType) { continue; } DerObjectIdentifier contentType = CmsAttributes.ContentType; DerSet derSet = new DerSet(cmsAttributeTableParameter); BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.Attribute attribute = new BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.Attribute(contentType, derSet); } } while (cmsAttributeTableParameter2 != CmsAttributeTableParameter.ContentType && cmsAttributeTableParameter2 == CmsAttributeTableParameter.ContentType); DerObjectIdentifier messageDigest = CmsAttributes.MessageDigest; DerOctetString derOctetString; DerSet derSet2 = new DerSet(derOctetString); BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.Attribute attribute2 = new BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.Attribute(messageDigest, derSet2); return dictionary; } // Token: 0x0600BE3E RID: 48702 RVA: 0x002B543C File Offset: 0x002B363C [Token(Token = "0x600BE3E")] [Address(RVA = "0x2007120", Offset = "0x2005F20", VA = "0x182007120", Slot = "6")] public virtual AttributeTable GetAttributes(IDictionary parameters) { AttributeTable attributes = this.GetAttributes(parameters); AttributeTable attributeTable; return attributeTable; } // Token: 0x04007914 RID: 30996 [FieldOffset(Offset = "0x10")] [Token(Token = "0x4007914")] private readonly IDictionary table; } }