using System; using System.Runtime.InteropServices; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms { // Token: 0x0200194B RID: 6475 [Token(Token = "0x200194B")] [StructLayout(3)] public class EnvelopedData : Asn1Encodable { // Token: 0x0600ADBA RID: 44474 RVA: 0x0028A750 File Offset: 0x00288950 [Token(Token = "0x600ADBA")] [Address(RVA = "0x28EF390", Offset = "0x28EDD90", VA = "0x1828EF390")] public EnvelopedData(OriginatorInfo originatorInfo, Asn1Set recipientInfos, EncryptedContentInfo encryptedContentInfo, Asn1Set unprotectedAttrs) { int num; DerInteger derInteger = new DerInteger(num); this.version = derInteger; this.unprotectedAttrs = 0; this.originatorInfo = originatorInfo; this.recipientInfos = recipientInfos; this.encryptedContentInfo = encryptedContentInfo; } // Token: 0x0600ADBB RID: 44475 RVA: 0x0028A790 File Offset: 0x00288990 [Token(Token = "0x600ADBB")] [Address(RVA = "0x28EF6D0", Offset = "0x28EE0D0", VA = "0x1828EF6D0")] public EnvelopedData(OriginatorInfo originatorInfo, Asn1Set recipientInfos, EncryptedContentInfo encryptedContentInfo, Attributes unprotectedAttrs) { Asn1Set asn1Set; DerInteger derInteger = new DerInteger(EnvelopedData.CalculateVersion(originatorInfo, recipientInfos, asn1Set)); this.version = derInteger; this.originatorInfo = originatorInfo; this.recipientInfos = recipientInfos; this.encryptedContentInfo = encryptedContentInfo; Asn1Set asn1Set2; this.unprotectedAttrs = asn1Set2; } // Token: 0x0600ADBC RID: 44476 RVA: 0x0028A7D4 File Offset: 0x002889D4 [Token(Token = "0x600ADBC")] [Address(RVA = "0x28EF450", Offset = "0x28EDE50", VA = "0x1828EF450")] [Obsolete] public EnvelopedData(Asn1Sequence seq) { for (;;) { base..ctor(); Asn1SequenceParser parser = seq.Parser; if (parser == 0) { } if (parser != 0) { this.version = parser; Asn1SequenceParser parser2 = seq.Parser; if (parser2 != 0 && parser2 != 0) { if (parser2 == 0) { continue; } Asn1Sequence asn1Sequence; OriginatorInfo instance = OriginatorInfo.GetInstance(asn1Sequence); this.originatorInfo = instance; Asn1SequenceParser parser3 = seq.Parser; } Asn1Set asn1Set; this.recipientInfos = asn1Set; Asn1SequenceParser parser4 = seq.Parser; EncryptedContentInfo encryptedContentInfo; this.encryptedContentInfo = encryptedContentInfo; Asn1Encodable asn1Encodable; if (asn1Encodable <= (uint)3) { return; } Asn1SequenceParser parser5 = seq.Parser; if (parser5 == 0 || parser5 != 0) { break; } } } Asn1Set asn1Set2; this.unprotectedAttrs = asn1Set2; } // Token: 0x0600ADBD RID: 44477 RVA: 0x0028A874 File Offset: 0x00288A74 [Token(Token = "0x600ADBD")] [Address(RVA = "0x28EEE50", Offset = "0x28ED850", VA = "0x1828EEE50")] public static EnvelopedData GetInstance(Asn1TaggedObject obj, bool explicitly) { Asn1Sequence instance; Asn1Sequence instance2; for (;;) { instance = Asn1Sequence.GetInstance(obj, explicitly); if (instance == 0) { return; } if (instance == 0) { break; } if (instance2 != 0) { return; } } instance2 = Asn1Sequence.GetInstance(instance); return new EnvelopedData(instance2); } // Token: 0x0600ADBE RID: 44478 RVA: 0x0028A8B0 File Offset: 0x00288AB0 [Token(Token = "0x600ADBE")] [Address(RVA = "0x28EEF50", Offset = "0x28ED950", VA = "0x1828EEF50")] public static EnvelopedData GetInstance(object obj) { while (obj != 0) { Asn1Sequence instance; if (obj == 0) { instance = Asn1Sequence.GetInstance(obj); return new EnvelopedData(instance); } if (instance != 0) { return; } } } // Token: 0x17001BBC RID: 7100 // (get) Token: 0x0600ADBF RID: 44479 RVA: 0x0028A8E4 File Offset: 0x00288AE4 [Token(Token = "0x17001BBC")] public DerInteger Version { [Token(Token = "0x600ADBF")] [Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")] get { return this.version; } } // Token: 0x17001BBD RID: 7101 // (get) Token: 0x0600ADC0 RID: 44480 RVA: 0x0028A8F8 File Offset: 0x00288AF8 [Token(Token = "0x17001BBD")] public OriginatorInfo OriginatorInfo { [Token(Token = "0x600ADC0")] [Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")] get { return this.originatorInfo; } } // Token: 0x17001BBE RID: 7102 // (get) Token: 0x0600ADC1 RID: 44481 RVA: 0x0028A90C File Offset: 0x00288B0C [Token(Token = "0x17001BBE")] public Asn1Set RecipientInfos { [Token(Token = "0x600ADC1")] [Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")] get { return this.recipientInfos; } } // Token: 0x17001BBF RID: 7103 // (get) Token: 0x0600ADC2 RID: 44482 RVA: 0x0028A920 File Offset: 0x00288B20 [Token(Token = "0x17001BBF")] public EncryptedContentInfo EncryptedContentInfo { [Token(Token = "0x600ADC2")] [Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230")] get { return this.encryptedContentInfo; } } // Token: 0x17001BC0 RID: 7104 // (get) Token: 0x0600ADC3 RID: 44483 RVA: 0x0028A934 File Offset: 0x00288B34 [Token(Token = "0x17001BC0")] public Asn1Set UnprotectedAttrs { [Token(Token = "0x600ADC3")] [Address(RVA = "0x3C1250", Offset = "0x3BFC50", VA = "0x1803C1250")] get { return this.unprotectedAttrs; } } // Token: 0x0600ADC4 RID: 44484 RVA: 0x0028A948 File Offset: 0x00288B48 [Token(Token = "0x600ADC4")] [Address(RVA = "0x28EF050", Offset = "0x28EDA50", VA = "0x1828EF050", Slot = "5")] public override Asn1Object ToAsn1Object() { Asn1Encodable[] array = new Asn1Encodable[1]; DerInteger derInteger = this.version; if (derInteger != 0) { } array[0] = derInteger; Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array); if (this.originatorInfo != (ulong)0L) { Asn1Encodable[] array2 = new Asn1Encodable[1]; OriginatorInfo originatorInfo = this.originatorInfo; int num; int num2; DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, num2, originatorInfo); num2 = 0; num = 0; if (derTaggedObject != 0) { } array2[0] = derTaggedObject; asn1EncodableVector.Add(array2); } Asn1Encodable[] array3 = new Asn1Encodable[2]; Asn1Set asn1Set = this.recipientInfos; if (asn1Set != 0) { } array3[0] = asn1Set; EncryptedContentInfo encryptedContentInfo = this.encryptedContentInfo; if (encryptedContentInfo != 0) { } array3[1] = encryptedContentInfo; asn1EncodableVector.Add(array3); if (this.unprotectedAttrs != (ulong)0L) { Asn1Encodable[] array4 = new Asn1Encodable[1]; Asn1Set asn1Set2 = this.unprotectedAttrs; int num3; DerTaggedObject derTaggedObject2 = new DerTaggedObject(num3 != 0, 1, asn1Set2); num3 = 0; if (derTaggedObject2 != 0) { } array4[0] = derTaggedObject2; asn1EncodableVector.Add(array4); } BerSequence berSequence = new BerSequence(asn1EncodableVector); throw new NullReferenceException(); } // Token: 0x0600ADC5 RID: 44485 RVA: 0x0028AA44 File Offset: 0x00288C44 [Token(Token = "0x600ADC5")] [Address(RVA = "0x28EEC70", Offset = "0x28ED670", VA = "0x1828EEC70")] public static int CalculateVersion(OriginatorInfo originatorInfo, Asn1Set recipientInfos, Asn1Set unprotectedAttrs) { int num; do { num = 0; if (originatorInfo != 0 || unprotectedAttrs != 0) { break; } int intValue; if (recipientInfos.GetEnumerator() != 0) { RecipientInfo recipientInfo; intValue = recipientInfo.Version.Value.IntValue; while (intValue == 0) { } } if (intValue != 0) { } if (num != -1) { if (typeof(IDisposable).TypeHandle == (ulong)78L) { } if (typeof(IDisposable).TypeHandle == (ulong)76L) { break; } } } while (num != 0); return 2; } // Token: 0x0400724C RID: 29260 [global::Cpp2IlInjected.FieldOffset(Offset = "0x10")] [Token(Token = "0x400724C")] private DerInteger version; // Token: 0x0400724D RID: 29261 [global::Cpp2IlInjected.FieldOffset(Offset = "0x18")] [Token(Token = "0x400724D")] private OriginatorInfo originatorInfo; // Token: 0x0400724E RID: 29262 [global::Cpp2IlInjected.FieldOffset(Offset = "0x20")] [Token(Token = "0x400724E")] private Asn1Set recipientInfos; // Token: 0x0400724F RID: 29263 [global::Cpp2IlInjected.FieldOffset(Offset = "0x28")] [Token(Token = "0x400724F")] private EncryptedContentInfo encryptedContentInfo; // Token: 0x04007250 RID: 29264 [global::Cpp2IlInjected.FieldOffset(Offset = "0x30")] [Token(Token = "0x4007250")] private Asn1Set unprotectedAttrs; } }