using System; using System.IO; using System.Runtime.InteropServices; using System.Text; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1 { // Token: 0x020017DA RID: 6106 [Token(Token = "0x20017DA")] [StructLayout(3)] public class DerUtf8String : DerStringBase { // Token: 0x0600A4EA RID: 42218 RVA: 0x00265A68 File Offset: 0x00263C68 [Token(Token = "0x600A4EA")] [Address(RVA = "0x1DEBB60", Offset = "0x1DEA560", VA = "0x181DEBB60")] public static DerUtf8String GetInstance(object obj) { /* An exception occurred when decompiling this method (0600A4EA) ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerUtf8String BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerUtf8String::GetInstance(System.Object) ---> System.Exception: Basic block has to end with unconditional control flow. { IL_16: stloc:string(var_3_1C, call:string(Platform::GetTypeName, ldloc:object(obj))) stloc:ArgumentException(var_4_2D, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("illegal object in GetInstance: "), ldloc:string(var_3_1C)))) } 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: 0x0600A4EB RID: 42219 RVA: 0x00265AA4 File Offset: 0x00263CA4 [Token(Token = "0x600A4EB")] [Address(RVA = "0x1DEBC90", Offset = "0x1DEA690", VA = "0x181DEBC90")] public static DerUtf8String GetInstance(Asn1TaggedObject obj, bool isExplicit) { Asn1Object @object = obj.GetObject(); if (!isExplicit && (@object == 0 || @object == 0)) { Stream octetStream = Asn1OctetString.GetInstance(@object).GetOctetStream(); Encoding utf = Encoding.UTF8; DerUtf8String derUtf8String; return derUtf8String; } return DerUtf8String.GetInstance(@object); } // Token: 0x0600A4EC RID: 42220 RVA: 0x00265AF0 File Offset: 0x00263CF0 [Token(Token = "0x600A4EC")] [Address(RVA = "0x1DEBE50", Offset = "0x1DEA850", VA = "0x181DEBE50")] public DerUtf8String(byte[] str) { string @string = Encoding.UTF8.GetString(str); } // Token: 0x0600A4ED RID: 42221 RVA: 0x00265B14 File Offset: 0x00263D14 [Token(Token = "0x600A4ED")] [Address(RVA = "0x1DEBDD0", Offset = "0x1DEA7D0", VA = "0x181DEBDD0")] public DerUtf8String(string str) { /* An exception occurred when decompiling this method (0600A4ED) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerUtf8String::.ctor(System.String) ---> System.Exception: Basic block has to end with unconditional control flow. { IL_12: stloc:ArgumentNullException(var_0_1C, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("str"))) } 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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846 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: 0x0600A4EE RID: 42222 RVA: 0x00265B40 File Offset: 0x00263D40 [Token(Token = "0x600A4EE")] [Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "10")] public override string GetString() { return this.str; } // Token: 0x0600A4EF RID: 42223 RVA: 0x00265B54 File Offset: 0x00263D54 [Token(Token = "0x600A4EF")] [Address(RVA = "0x1DEBA60", Offset = "0x1DEA460", VA = "0x181DEBA60", Slot = "7")] protected override bool Asn1Equals(Asn1Object asn1Object) { if (asn1Object != 0 && asn1Object != 0) { string text = this.str; bool flag; return flag; } throw new NullReferenceException(); } // Token: 0x0600A4F0 RID: 42224 RVA: 0x00265B7C File Offset: 0x00263D7C [Token(Token = "0x600A4F0")] [Address(RVA = "0x1DEBB00", Offset = "0x1DEA500", VA = "0x181DEBB00", Slot = "6")] internal override void Encode(DerOutputStream derOut) { Encoding utf = Encoding.UTF8; string text = this.str; } // Token: 0x04006B87 RID: 27527 [global::Cpp2IlInjected.FieldOffset(Offset = "0x10")] [Token(Token = "0x4006B87")] private readonly string str; } }