using System; using System.Runtime.InteropServices; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms { // Token: 0x0200193E RID: 6462 [Token(Token = "0x200193E")] [StructLayout(3)] public class AuthEnvelopedData : Asn1Encodable { // Token: 0x0600AD60 RID: 44384 RVA: 0x0028919C File Offset: 0x0028739C [Token(Token = "0x600AD60")] [Address(RVA = "0x28EA810", Offset = "0x28E9210", VA = "0x1828EA810")] public AuthEnvelopedData(OriginatorInfo originatorInfo, Asn1Set recipientInfos, EncryptedContentInfo authEncryptedContentInfo, Asn1Set authAttrs, Asn1OctetString mac, Asn1Set unauthAttrs) { int num; DerInteger derInteger = new DerInteger(num); num = 0; this.authAttrs = 0; this.mac = 0; this.version = derInteger; this.recipientInfos = recipientInfos; this.authEncryptedContentInfo = authEncryptedContentInfo; this.unauthAttrs = 0; this.originatorInfo = originatorInfo; } // Token: 0x0600AD61 RID: 44385 RVA: 0x002891EC File Offset: 0x002873EC [Token(Token = "0x600AD61")] [Address(RVA = "0x28EA8C0", Offset = "0x28E92C0", VA = "0x1828EA8C0")] private AuthEnvelopedData(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.authEncryptedContentInfo = encryptedContentInfo; Asn1SequenceParser parser5 = seq.Parser; if (parser5 != 0 && parser5 != 0) { if (parser5 == 0) { continue; } Asn1Set asn1Set2; this.authAttrs = asn1Set2; Asn1SequenceParser parser6 = seq.Parser; } Asn1OctetString asn1OctetString; this.mac = asn1OctetString; Asn1Encodable asn1Encodable; if (asn1Encodable <= 1) { return; } Asn1SequenceParser parser7 = seq.Parser; if (parser7 == 0 || parser7 != 0) { break; } } } Asn1Set asn1Set3; this.unauthAttrs = asn1Set3; } // Token: 0x0600AD62 RID: 44386 RVA: 0x002892C4 File Offset: 0x002874C4 [Token(Token = "0x600AD62")] [Address(RVA = "0x28EA1A0", Offset = "0x28E8BA0", VA = "0x1828EA1A0")] public static AuthEnvelopedData GetInstance(Asn1TaggedObject obj, bool isExplicit) { return AuthEnvelopedData.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit)); } // Token: 0x0600AD63 RID: 44387 RVA: 0x002892E0 File Offset: 0x002874E0 [Token(Token = "0x600AD63")] [Address(RVA = "0x28EA1C0", Offset = "0x28E8BC0", VA = "0x1828EA1C0")] public static AuthEnvelopedData GetInstance(object obj) { /* An exception occurred when decompiling this method (0600AD63) ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.AuthEnvelopedData BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.AuthEnvelopedData::GetInstance(System.Object) ---> System.Exception: Basic block has to end with unconditional control flow. { IL_26: stloc:string(var_6_2C, call:string(Platform::GetTypeName, ldloc:object(obj))) stloc:ArgumentException(var_7_3F, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid AuthEnvelopedData: "), ldloc:string(var_6_2C)))) } at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88 --- End of inner exception stack trace --- at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663 */; } // Token: 0x17001B9A RID: 7066 // (get) Token: 0x0600AD64 RID: 44388 RVA: 0x00289330 File Offset: 0x00287530 [Token(Token = "0x17001B9A")] public DerInteger Version { [Token(Token = "0x600AD64")] [Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")] get { return this.version; } } // Token: 0x17001B9B RID: 7067 // (get) Token: 0x0600AD65 RID: 44389 RVA: 0x00289344 File Offset: 0x00287544 [Token(Token = "0x17001B9B")] public OriginatorInfo OriginatorInfo { [Token(Token = "0x600AD65")] [Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")] get { return this.originatorInfo; } } // Token: 0x17001B9C RID: 7068 // (get) Token: 0x0600AD66 RID: 44390 RVA: 0x00289358 File Offset: 0x00287558 [Token(Token = "0x17001B9C")] public Asn1Set RecipientInfos { [Token(Token = "0x600AD66")] [Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")] get { return this.recipientInfos; } } // Token: 0x17001B9D RID: 7069 // (get) Token: 0x0600AD67 RID: 44391 RVA: 0x0028936C File Offset: 0x0028756C [Token(Token = "0x17001B9D")] public EncryptedContentInfo AuthEncryptedContentInfo { [Token(Token = "0x600AD67")] [Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230")] get { return this.authEncryptedContentInfo; } } // Token: 0x17001B9E RID: 7070 // (get) Token: 0x0600AD68 RID: 44392 RVA: 0x00289380 File Offset: 0x00287580 [Token(Token = "0x17001B9E")] public Asn1Set AuthAttrs { [Token(Token = "0x600AD68")] [Address(RVA = "0x3C1250", Offset = "0x3BFC50", VA = "0x1803C1250")] get { return this.authAttrs; } } // Token: 0x17001B9F RID: 7071 // (get) Token: 0x0600AD69 RID: 44393 RVA: 0x00289394 File Offset: 0x00287594 [Token(Token = "0x17001B9F")] public Asn1OctetString Mac { [Token(Token = "0x600AD69")] [Address(RVA = "0x3EE8E0", Offset = "0x3ED2E0", VA = "0x1803EE8E0")] get { return this.mac; } } // Token: 0x17001BA0 RID: 7072 // (get) Token: 0x0600AD6A RID: 44394 RVA: 0x002893A8 File Offset: 0x002875A8 [Token(Token = "0x17001BA0")] public Asn1Set UnauthAttrs { [Token(Token = "0x600AD6A")] [Address(RVA = "0x3D32F0", Offset = "0x3D1CF0", VA = "0x1803D32F0")] get { return this.unauthAttrs; } } // Token: 0x0600AD6B RID: 44395 RVA: 0x002893BC File Offset: 0x002875BC [Token(Token = "0x600AD6B")] [Address(RVA = "0x28EA3B0", Offset = "0x28E8DB0", VA = "0x1828EA3B0", 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.authEncryptedContentInfo; if (encryptedContentInfo != 0) { } array3[1] = encryptedContentInfo; asn1EncodableVector.Add(array3); if (this.authAttrs != (ulong)0L) { Asn1Encodable[] array4 = new Asn1Encodable[1]; Asn1Set asn1Set2 = this.authAttrs; int num3; DerTaggedObject derTaggedObject2 = new DerTaggedObject(num3 != 0, 1, asn1Set2); num3 = 0; if (derTaggedObject2 != 0) { } array4[0] = derTaggedObject2; asn1EncodableVector.Add(array4); } Asn1Encodable[] array5 = new Asn1Encodable[1]; Asn1OctetString asn1OctetString = this.mac; if (asn1OctetString != 0) { } array5[0] = asn1OctetString; asn1EncodableVector.Add(array5); if (this.unauthAttrs != (ulong)0L) { Asn1Encodable[] array6 = new Asn1Encodable[1]; Asn1Set asn1Set3 = this.unauthAttrs; int num4; DerTaggedObject derTaggedObject3 = new DerTaggedObject(num4 != 0, 2, asn1Set3); num4 = 0; if (derTaggedObject3 != 0) { } array6[0] = derTaggedObject3; asn1EncodableVector.Add(array6); } BerSequence berSequence = new BerSequence(asn1EncodableVector); throw new NullReferenceException(); } // Token: 0x0400720F RID: 29199 [global::Cpp2IlInjected.FieldOffset(Offset = "0x10")] [Token(Token = "0x400720F")] private DerInteger version; // Token: 0x04007210 RID: 29200 [global::Cpp2IlInjected.FieldOffset(Offset = "0x18")] [Token(Token = "0x4007210")] private OriginatorInfo originatorInfo; // Token: 0x04007211 RID: 29201 [global::Cpp2IlInjected.FieldOffset(Offset = "0x20")] [Token(Token = "0x4007211")] private Asn1Set recipientInfos; // Token: 0x04007212 RID: 29202 [global::Cpp2IlInjected.FieldOffset(Offset = "0x28")] [Token(Token = "0x4007212")] private EncryptedContentInfo authEncryptedContentInfo; // Token: 0x04007213 RID: 29203 [global::Cpp2IlInjected.FieldOffset(Offset = "0x30")] [Token(Token = "0x4007213")] private Asn1Set authAttrs; // Token: 0x04007214 RID: 29204 [global::Cpp2IlInjected.FieldOffset(Offset = "0x38")] [Token(Token = "0x4007214")] private Asn1OctetString mac; // Token: 0x04007215 RID: 29205 [global::Cpp2IlInjected.FieldOffset(Offset = "0x40")] [Token(Token = "0x4007215")] private Asn1Set unauthAttrs; } }