using System; using System.Runtime.InteropServices; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms { // Token: 0x0200195E RID: 6494 [Token(Token = "0x200195E")] [StructLayout(3)] public class RecipientInfo : Asn1Encodable, IAsn1Choice { // Token: 0x0600AE52 RID: 44626 RVA: 0x0028C800 File Offset: 0x0028AA00 [Token(Token = "0x600AE52")] [Address(RVA = "0x579A20", Offset = "0x578420", VA = "0x180579A20")] public RecipientInfo(KeyTransRecipientInfo info) { this.info = info; } // Token: 0x0600AE53 RID: 44627 RVA: 0x0028C81C File Offset: 0x0028AA1C [Token(Token = "0x600AE53")] [Address(RVA = "0x28FC640", Offset = "0x28FB040", VA = "0x1828FC640")] public RecipientInfo(KeyAgreeRecipientInfo info) { int num; DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, 1, info); num = 0; this.info = derTaggedObject; } // Token: 0x0600AE54 RID: 44628 RVA: 0x0028C844 File Offset: 0x0028AA44 [Token(Token = "0x600AE54")] [Address(RVA = "0x28FC5C0", Offset = "0x28FAFC0", VA = "0x1828FC5C0")] public RecipientInfo(KekRecipientInfo info) { int num; DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, 2, info); num = 0; this.info = derTaggedObject; } // Token: 0x0600AE55 RID: 44629 RVA: 0x0028C86C File Offset: 0x0028AA6C [Token(Token = "0x600AE55")] [Address(RVA = "0x28FC4C0", Offset = "0x28FAEC0", VA = "0x1828FC4C0")] public RecipientInfo(PasswordRecipientInfo info) { int num; DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, 3, info); num = 0; this.info = derTaggedObject; } // Token: 0x0600AE56 RID: 44630 RVA: 0x0028C894 File Offset: 0x0028AA94 [Token(Token = "0x600AE56")] [Address(RVA = "0x28FC540", Offset = "0x28FAF40", VA = "0x1828FC540")] public RecipientInfo(OtherRecipientInfo info) { int num; DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, 4, info); num = 0; this.info = derTaggedObject; } // Token: 0x0600AE57 RID: 44631 RVA: 0x0028C8BC File Offset: 0x0028AABC [Token(Token = "0x600AE57")] [Address(RVA = "0x579A20", Offset = "0x578420", VA = "0x180579A20")] public RecipientInfo(Asn1Object info) { this.info = info; } // Token: 0x0600AE58 RID: 44632 RVA: 0x0028C8D8 File Offset: 0x0028AAD8 [Token(Token = "0x600AE58")] [Address(RVA = "0x28FC250", Offset = "0x28FAC50", VA = "0x1828FC250")] public static RecipientInfo GetInstance(object o) { /* An exception occurred when decompiling this method (0600AE58) ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.RecipientInfo BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.RecipientInfo::GetInstance(System.Object) ---> System.Exception: Basic block has to end with unconditional control flow. { IL_23: stloc:ArgumentException(var_7_34, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_6)))) } 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: 0x17001BF2 RID: 7154 // (get) Token: 0x0600AE59 RID: 44633 RVA: 0x0028C91C File Offset: 0x0028AB1C [Token(Token = "0x17001BF2")] public DerInteger Version { [Token(Token = "0x600AE59")] [Address(RVA = "0x28FCA10", Offset = "0x28FB410", VA = "0x1828FCA10")] get { Asn1Encodable asn1Encodable; for (;;) { asn1Encodable = this.info; if (asn1Encodable == 0 || asn1Encodable == 0) { goto IL_55; } if (asn1Encodable != 0) { if (asn1Encodable == 0) { goto IL_4C; } if (asn1Encodable == 0) { goto IL_43; } if (asn1Encodable == 0) { goto IL_36; } if (asn1Encodable == (ulong)1L) { break; } } } int num; DerInteger derInteger = new DerInteger(num); num = 0; return derInteger; IL_36: Asn1Sequence asn1Sequence; return PasswordRecipientInfo.GetInstance(asn1Sequence).version; IL_43: Asn1Sequence asn1Sequence2; KekRecipientInfo instance = KekRecipientInfo.GetInstance(asn1Sequence2); IL_4C: Asn1Sequence asn1Sequence3; KeyAgreeRecipientInfo instance2 = KeyAgreeRecipientInfo.GetInstance(asn1Sequence3); IL_55: KeyTransRecipientInfo instance3 = KeyTransRecipientInfo.GetInstance(asn1Encodable); throw new NullReferenceException(); } } // Token: 0x17001BF3 RID: 7155 // (get) Token: 0x0600AE5A RID: 44634 RVA: 0x0028C98C File Offset: 0x0028AB8C [Token(Token = "0x17001BF3")] public bool IsTagged { [Token(Token = "0x600AE5A")] [Address(RVA = "0x28FC990", Offset = "0x28FB390", VA = "0x1828FC990")] get { Asn1Encodable asn1Encodable = this.info; if (asn1Encodable == 0) { return 0 != 0; } return asn1Encodable != 0; } } // Token: 0x17001BF4 RID: 7156 // (get) Token: 0x0600AE5B RID: 44635 RVA: 0x0028C9B8 File Offset: 0x0028ABB8 [Token(Token = "0x17001BF4")] public Asn1Encodable Info { [Token(Token = "0x600AE5B")] [Address(RVA = "0x28FC6C0", Offset = "0x28FB0C0", VA = "0x1828FC6C0")] get { /* An exception occurred when decompiling this method (0600AE5B) ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Encodable BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.RecipientInfo::get_Info() ---> System.Exception: Basic block has to end with unconditional control flow. { IL_8E: stloc:InvalidOperationException(var_18_98, newobj:InvalidOperationException(InvalidOperationException::.ctor, ldstr:string("unknown tag"))) } 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: 0x0600AE5C RID: 44636 RVA: 0x0028CA60 File Offset: 0x0028AC60 [Token(Token = "0x600AE5C")] [Address(RVA = "0x28FC490", Offset = "0x28FAE90", VA = "0x1828FC490")] private KekRecipientInfo GetKekInfo(Asn1TaggedObject o) { bool explicitly = o.explicitly; return KekRecipientInfo.GetInstance(Asn1Sequence.GetInstance(o, explicitly)); } // Token: 0x0600AE5D RID: 44637 RVA: 0x0028CA88 File Offset: 0x0028AC88 [Token(Token = "0x600AE5D")] [Address(RVA = "0x52D760", Offset = "0x52C160", VA = "0x18052D760", Slot = "5")] public override Asn1Object ToAsn1Object() { return this.info.ToAsn1Object(); } // Token: 0x04007280 RID: 29312 [global::Cpp2IlInjected.FieldOffset(Offset = "0x10")] [Token(Token = "0x4007280")] internal Asn1Encodable info; } }