using System; using System.IO; using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1; using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms; using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Cms { // Token: 0x02001E13 RID: 7699 [Token(Token = "0x2001E13")] public class CmsEnvelopedData { // Token: 0x0600C0F8 RID: 49400 RVA: 0x002B90F4 File Offset: 0x002B72F4 [Token(Token = "0x600C0F8")] [Address(RVA = "0x2145DA0", Offset = "0x2144DA0", VA = "0x182145DA0")] public CmsEnvelopedData(byte[] envelopedData) { ContentInfo contentInfo = CmsUtilities.ReadContentInfo(envelopedData); } // Token: 0x0600C0F9 RID: 49401 RVA: 0x002B9108 File Offset: 0x002B7308 [Token(Token = "0x600C0F9")] [Address(RVA = "0x2145C30", Offset = "0x2144C30", VA = "0x182145C30")] public CmsEnvelopedData(Stream envelopedData) { ContentInfo contentInfo = CmsUtilities.ReadContentInfo(envelopedData); } // Token: 0x0600C0FA RID: 49402 RVA: 0x002B911C File Offset: 0x002B731C [Token(Token = "0x600C0FA")] [Address(RVA = "0x2145C60", Offset = "0x2144C60", VA = "0x182145C60")] public CmsEnvelopedData(ContentInfo contentInfo) { this.contentInfo = contentInfo; EnvelopedData instance = EnvelopedData.GetInstance(contentInfo.content); Asn1Set recipientInfos = instance.recipientInfos; EncryptedContentInfo encryptedContentInfo = instance.encryptedContentInfo; AlgorithmIdentifier contentEncryptionAlgorithm = encryptedContentInfo.contentEncryptionAlgorithm; this.encAlg = contentEncryptionAlgorithm; Stream octetStream = encryptedContentInfo.encryptedContent.GetOctetStream(); CmsProcessableByteArray cmsProcessableByteArray; cmsProcessableByteArray.bytes = octetStream; AlgorithmIdentifier algorithmIdentifier = this.encAlg; CmsEnvelopedHelper.CmsEnvelopedSecureReadable cmsEnvelopedSecureReadable; cmsEnvelopedSecureReadable.readable = cmsProcessableByteArray; cmsEnvelopedSecureReadable.algorithm = algorithmIdentifier; RecipientInformationStore recipientInformationStore = CmsEnvelopedHelper.BuildRecipientInformationStore(recipientInfos, cmsEnvelopedSecureReadable); this.recipientInfoStore = recipientInformationStore; Asn1Set unprotectedAttrs = instance.unprotectedAttrs; this.unprotectedAttributes = unprotectedAttrs; } // Token: 0x17001DEB RID: 7659 // (get) Token: 0x0600C0FB RID: 49403 RVA: 0x002B91B8 File Offset: 0x002B73B8 [Token(Token = "0x17001DEB")] public AlgorithmIdentifier EncryptionAlgorithmID { [Token(Token = "0x600C0FB")] [Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")] get { return this.encAlg; } } // Token: 0x17001DEC RID: 7660 // (get) Token: 0x0600C0FC RID: 49404 RVA: 0x002B91CC File Offset: 0x002B73CC [Token(Token = "0x17001DEC")] public string EncryptionAlgOid { [Token(Token = "0x600C0FC")] [Address(RVA = "0x21429A0", Offset = "0x21419A0", VA = "0x1821429A0")] get { Asn1Object asn1Object = this.encAlg.ToAsn1Object(); throw new NullReferenceException(); } } // Token: 0x0600C0FD RID: 49405 RVA: 0x002B91EC File Offset: 0x002B73EC [Token(Token = "0x600C0FD")] [Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")] public RecipientInformationStore GetRecipientInfos() { return this.recipientInfoStore; } // Token: 0x17001DED RID: 7661 // (get) Token: 0x0600C0FE RID: 49406 RVA: 0x002B9200 File Offset: 0x002B7400 [Token(Token = "0x17001DED")] public ContentInfo ContentInfo { [Token(Token = "0x600C0FE")] [Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")] get { return this.contentInfo; } } // Token: 0x0600C0FF RID: 49407 RVA: 0x002B9214 File Offset: 0x002B7414 [Token(Token = "0x600C0FF")] [Address(RVA = "0x2145BC0", Offset = "0x2144BC0", VA = "0x182145BC0")] public BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.AttributeTable GetUnprotectedAttributes() { Asn1Set asn1Set = this.unprotectedAttributes; if (asn1Set != 0) { return new BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.AttributeTable(asn1Set); } } // Token: 0x0600C100 RID: 49408 RVA: 0x002B9234 File Offset: 0x002B7434 [Token(Token = "0x600C100")] [Address(RVA = "0x21426E0", Offset = "0x21416E0", VA = "0x1821426E0")] public byte[] GetEncoded() { return this.contentInfo.GetEncoded(); } // Token: 0x04007A2F RID: 31279 [FieldOffset(Offset = "0x10")] [Token(Token = "0x4007A2F")] internal RecipientInformationStore recipientInfoStore; // Token: 0x04007A30 RID: 31280 [FieldOffset(Offset = "0x18")] [Token(Token = "0x4007A30")] internal ContentInfo contentInfo; // Token: 0x04007A31 RID: 31281 [FieldOffset(Offset = "0x20")] [Token(Token = "0x4007A31")] private AlgorithmIdentifier encAlg; // Token: 0x04007A32 RID: 31282 [FieldOffset(Offset = "0x28")] [Token(Token = "0x4007A32")] private Asn1Set unprotectedAttributes; } }