using System; using System.IO; using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess { // Token: 0x02001FB9 RID: 8121 [Token(Token = "0x2001FB9")] public class EssCertID : Asn1Encodable { // Token: 0x0600CB45 RID: 52037 RVA: 0x002E2A20 File Offset: 0x002E0C20 [Token(Token = "0x600CB45")] [Address(RVA = "0x2EAB820", Offset = "0x2EAA820", VA = "0x182EAB820")] public static EssCertID GetInstance(object o) { /* An exception occurred when decompiling this method (0600CB45) ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess.EssCertID BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess.EssCertID::GetInstance(System.Object) ---> System.Exception: Basic block has to end with unconditional control flow. { IL_39: stloc:string(var_9_3F, call:string(Platform::GetTypeName, ldloc:object(o))) stloc:ArgumentException(var_10_57, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in 'EssCertID' factory : "), ldloc:string(var_9_3F), ldstr:string(".")))) } 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: 0x0600CB46 RID: 52038 RVA: 0x002E2A88 File Offset: 0x002E0C88 [Token(Token = "0x600CB46")] [Address(RVA = "0x2EABD90", Offset = "0x2EAAD90", VA = "0x182EABD90")] public EssCertID(Asn1Sequence seq) { Asn1SequenceParser parser = seq.Parser; Asn1OctetString asn1OctetString; this.certHash = asn1OctetString; Asn1Encodable asn1Encodable; if (asn1Encodable > (ulong)1L) { Asn1SequenceParser parser2 = seq.Parser; IssuerSerial issuerSerial; this.issuerSerial = issuerSerial; } } // Token: 0x0600CB47 RID: 52039 RVA: 0x002E2AC8 File Offset: 0x002E0CC8 [Token(Token = "0x600CB47")] [Address(RVA = "0x2EABD20", Offset = "0x2EAAD20", VA = "0x182EABD20")] public EssCertID(byte[] hash) { DerOctetString derOctetString = new DerOctetString(hash); this.certHash = derOctetString; } // Token: 0x0600CB48 RID: 52040 RVA: 0x002E2AEC File Offset: 0x002E0CEC [Token(Token = "0x600CB48")] [Address(RVA = "0x2EABCA0", Offset = "0x2EAACA0", VA = "0x182EABCA0")] public EssCertID(byte[] hash, IssuerSerial issuerSerial) { DerOctetString derOctetString = new DerOctetString(hash); this.certHash = derOctetString; this.issuerSerial = issuerSerial; } // Token: 0x0600CB49 RID: 52041 RVA: 0x002E2B14 File Offset: 0x002E0D14 [Token(Token = "0x600CB49")] [Address(RVA = "0x4DB0F0", Offset = "0x4DA0F0", VA = "0x1804DB0F0")] public byte[] GetCertHash() { Stream octetStream = ((Asn1OctetStringParser)this.certHash).GetOctetStream(); throw new NullReferenceException(); } // Token: 0x17001FCD RID: 8141 // (get) Token: 0x0600CB4A RID: 52042 RVA: 0x002E2B34 File Offset: 0x002E0D34 [Token(Token = "0x17001FCD")] public IssuerSerial IssuerSerial { [Token(Token = "0x600CB4A")] [Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")] get { return this.issuerSerial; } } // Token: 0x0600CB4B RID: 52043 RVA: 0x002E2B48 File Offset: 0x002E0D48 [Token(Token = "0x600CB4B")] [Address(RVA = "0x2EABB30", Offset = "0x2EAAB30", VA = "0x182EABB30", Slot = "5")] public override Asn1Object ToAsn1Object() { Asn1Encodable[] array = new Asn1Encodable[1]; Asn1OctetString asn1OctetString = this.certHash; if (asn1OctetString != 0) { } array[0] = asn1OctetString; Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array); if (this.issuerSerial != (ulong)0L) { Asn1Encodable[] array2 = new Asn1Encodable[1]; IssuerSerial issuerSerial = this.issuerSerial; if (issuerSerial != 0) { } array2[0] = issuerSerial; asn1EncodableVector.Add(array2); } DerSequence derSequence = new DerSequence(asn1EncodableVector); throw new NullReferenceException(); } // Token: 0x04008119 RID: 33049 [FieldOffset(Offset = "0x10")] [Token(Token = "0x4008119")] private Asn1OctetString certHash; // Token: 0x0400811A RID: 33050 [FieldOffset(Offset = "0x18")] [Token(Token = "0x400811A")] private IssuerSerial issuerSerial; } }