using System; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms { // Token: 0x02001F28 RID: 7976 [Token(Token = "0x2001F28")] public class EnvelopedData : Asn1Encodable { // Token: 0x0600C994 RID: 51604 RVA: 0x002E2C10 File Offset: 0x002E0E10 [Token(Token = "0x600C994")] [Address(RVA = "0x2AD7C40", Offset = "0x2AD6A40", VA = "0x182AD7C40")] 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: 0x0600C995 RID: 51605 RVA: 0x002E2C50 File Offset: 0x002E0E50 [Token(Token = "0x600C995")] [Address(RVA = "0x2AD7F80", Offset = "0x2AD6D80", VA = "0x182AD7F80")] 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: 0x0600C996 RID: 51606 RVA: 0x002E2C94 File Offset: 0x002E0E94 [Token(Token = "0x600C996")] [Address(RVA = "0x2AD7D00", Offset = "0x2AD6B00", VA = "0x182AD7D00")] [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: 0x0600C997 RID: 51607 RVA: 0x002E2D34 File Offset: 0x002E0F34 [Token(Token = "0x600C997")] [Address(RVA = "0x2AD7700", Offset = "0x2AD6500", VA = "0x182AD7700")] 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: 0x0600C998 RID: 51608 RVA: 0x002E2D70 File Offset: 0x002E0F70 [Token(Token = "0x600C998")] [Address(RVA = "0x2AD7800", Offset = "0x2AD6600", VA = "0x182AD7800")] 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: 0x17001FBD RID: 8125 // (get) Token: 0x0600C999 RID: 51609 RVA: 0x002E2DA4 File Offset: 0x002E0FA4 [Token(Token = "0x17001FBD")] public DerInteger Version { [Token(Token = "0x600C999")] [Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")] get { return this.version; } } // Token: 0x17001FBE RID: 8126 // (get) Token: 0x0600C99A RID: 51610 RVA: 0x002E2DB8 File Offset: 0x002E0FB8 [Token(Token = "0x17001FBE")] public OriginatorInfo OriginatorInfo { [Token(Token = "0x600C99A")] [Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")] get { return this.originatorInfo; } } // Token: 0x17001FBF RID: 8127 // (get) Token: 0x0600C99B RID: 51611 RVA: 0x002E2DCC File Offset: 0x002E0FCC [Token(Token = "0x17001FBF")] public Asn1Set RecipientInfos { [Token(Token = "0x600C99B")] [Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")] get { return this.recipientInfos; } } // Token: 0x17001FC0 RID: 8128 // (get) Token: 0x0600C99C RID: 51612 RVA: 0x002E2DE0 File Offset: 0x002E0FE0 [Token(Token = "0x17001FC0")] public EncryptedContentInfo EncryptedContentInfo { [Token(Token = "0x600C99C")] [Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")] get { return this.encryptedContentInfo; } } // Token: 0x17001FC1 RID: 8129 // (get) Token: 0x0600C99D RID: 51613 RVA: 0x002E2DF4 File Offset: 0x002E0FF4 [Token(Token = "0x17001FC1")] public Asn1Set UnprotectedAttrs { [Token(Token = "0x600C99D")] [Address(RVA = "0x3FA180", Offset = "0x3F8F80", VA = "0x1803FA180")] get { return this.unprotectedAttrs; } } // Token: 0x0600C99E RID: 51614 RVA: 0x002E2E08 File Offset: 0x002E1008 [Token(Token = "0x600C99E")] [Address(RVA = "0x2AD7900", Offset = "0x2AD6700", VA = "0x182AD7900", 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: 0x0600C99F RID: 51615 RVA: 0x002E2F04 File Offset: 0x002E1104 [Token(Token = "0x600C99F")] [Address(RVA = "0x2AD7520", Offset = "0x2AD6320", VA = "0x182AD7520")] public static int CalculateVersion(OriginatorInfo originatorInfo, Asn1Set recipientInfos, Asn1Set unprotectedAttrs) { int num; do { num = 0; if (originatorInfo != 0 || unprotectedAttrs != 0) { return 2; } int intValue; if (recipientInfos.GetEnumerator() != 0) { RecipientInfo recipientInfo; intValue = recipientInfo.Version.Value.IntValue; while (intValue == 0) { } } if (intValue != 0) { } } while (num != 0); if (num != -1) { } return 2; } // Token: 0x0400808F RID: 32911 [FieldOffset(Offset = "0x10")] [Token(Token = "0x400808F")] private DerInteger version; // Token: 0x04008090 RID: 32912 [FieldOffset(Offset = "0x18")] [Token(Token = "0x4008090")] private OriginatorInfo originatorInfo; // Token: 0x04008091 RID: 32913 [FieldOffset(Offset = "0x20")] [Token(Token = "0x4008091")] private Asn1Set recipientInfos; // Token: 0x04008092 RID: 32914 [FieldOffset(Offset = "0x28")] [Token(Token = "0x4008092")] private EncryptedContentInfo encryptedContentInfo; // Token: 0x04008093 RID: 32915 [FieldOffset(Offset = "0x30")] [Token(Token = "0x4008093")] private Asn1Set unprotectedAttrs; } }