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: 0x02001E35 RID: 7733 [Token(Token = "0x2001E35")] public class DefaultSignedAttributeTableGenerator : CmsAttributeTableGenerator { // Token: 0x0600C20D RID: 49677 RVA: 0x002BDD4C File Offset: 0x002BBF4C [Token(Token = "0x600C20D")] [Address(RVA = "0x292C3D0", Offset = "0x292B3D0", VA = "0x18292C3D0")] public DefaultSignedAttributeTableGenerator() { IDictionary dictionary = Platform.CreateHashtable(); this.table = dictionary; } // Token: 0x0600C20E RID: 49678 RVA: 0x002BDD70 File Offset: 0x002BBF70 [Token(Token = "0x600C20E")] [Address(RVA = "0x292C340", Offset = "0x292B340", VA = "0x18292C340")] public DefaultSignedAttributeTableGenerator(AttributeTable attributeTable) { if (attributeTable == 0) { IDictionary dictionary = Platform.CreateHashtable(); this.table = dictionary; return; } IDictionary dictionary2 = attributeTable.ToDictionary(); this.table = dictionary2; } // Token: 0x0600C20F RID: 49679 RVA: 0x002BDDA8 File Offset: 0x002BBFA8 [Token(Token = "0x600C20F")] [Address(RVA = "0x292C430", Offset = "0x292B430", VA = "0x18292C430", Slot = "5")] protected virtual Hashtable createStandardAttributeTable(IDictionary parameters) { Hashtable hashtable = new Hashtable(this.table); this.DoCreateStandardAttributeTable(parameters, hashtable); return hashtable; } // Token: 0x0600C210 RID: 49680 RVA: 0x002BDDCC File Offset: 0x002BBFCC [Token(Token = "0x600C210")] [Address(RVA = "0x292BE20", Offset = "0x292AE20", VA = "0x18292BE20")] 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: 0x0600C211 RID: 49681 RVA: 0x002BDE58 File Offset: 0x002BC058 [Token(Token = "0x600C211")] [Address(RVA = "0x292C2D0", Offset = "0x292B2D0", VA = "0x18292C2D0", Slot = "6")] public virtual AttributeTable GetAttributes(IDictionary parameters) { AttributeTable attributes = this.GetAttributes(parameters); AttributeTable attributeTable; return attributeTable; } // Token: 0x04007ACE RID: 31438 [FieldOffset(Offset = "0x10")] [Token(Token = "0x4007ACE")] private readonly IDictionary table; } }