using System; using System.IO; using System.Runtime.InteropServices; using System.Threading; using BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC; using BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.Multiplier; using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X9 { // Token: 0x0200180A RID: 6154 [Token(Token = "0x200180A")] [StructLayout(3)] public class X9ECPoint : Asn1Encodable { // Token: 0x0600A5C1 RID: 42433 RVA: 0x00268558 File Offset: 0x00266758 [Token(Token = "0x600A5C1")] [Address(RVA = "0x2786EB0", Offset = "0x27858B0", VA = "0x182786EB0")] public X9ECPoint(ECPoint p) { bool flag = p.IsNormalized(); this.p = flag; byte[] array; DerOctetString derOctetString = new DerOctetString(array); this.encoding = derOctetString; } // Token: 0x0600A5C2 RID: 42434 RVA: 0x00268590 File Offset: 0x00266790 [Token(Token = "0x600A5C2")] [Address(RVA = "0x2786F60", Offset = "0x2785960", VA = "0x182786F60")] public X9ECPoint(ECPoint p, bool compressed) { bool flag = p.IsNormalized(); this.p = flag; byte[] array; DerOctetString derOctetString = new DerOctetString(array); this.encoding = derOctetString; } // Token: 0x0600A5C3 RID: 42435 RVA: 0x002685C8 File Offset: 0x002667C8 [Token(Token = "0x600A5C3")] [Address(RVA = "0x2787010", Offset = "0x2785A10", VA = "0x182787010")] public X9ECPoint(ECCurve c, byte[] encoding) { this.c = c; DerOctetString derOctetString = new DerOctetString(Arrays.Clone(encoding)); this.encoding = derOctetString; } // Token: 0x0600A5C4 RID: 42436 RVA: 0x002685F8 File Offset: 0x002667F8 [Token(Token = "0x600A5C4")] [Address(RVA = "0x2786E60", Offset = "0x2785860", VA = "0x182786E60")] public X9ECPoint(ECCurve c, Asn1OctetString s) { Stream octetStream = s.GetOctetStream(); } // Token: 0x0600A5C5 RID: 42437 RVA: 0x00268614 File Offset: 0x00266814 [Token(Token = "0x600A5C5")] [Address(RVA = "0x2786DE0", Offset = "0x27857E0", VA = "0x182786DE0")] public byte[] GetPointEncoding() { Stream octetStream = this.encoding.GetOctetStream(); byte[] array; return array; } // Token: 0x170019D7 RID: 6615 // (get) Token: 0x0600A5C6 RID: 42438 RVA: 0x00268634 File Offset: 0x00266834 [Token(Token = "0x170019D7")] public ECPoint Point { [Token(Token = "0x600A5C6")] [Address(RVA = "0x2787120", Offset = "0x2785B20", VA = "0x182787120")] get { ECPoint ecpoint = this.p; if (ecpoint == 0) { ECCurve eccurve = this.c; Stream octetStream = this.encoding.GetOctetStream(); ECMultiplier multiplier = eccurve.GetMultiplier(); } return ecpoint; } } // Token: 0x170019D8 RID: 6616 // (get) Token: 0x0600A5C7 RID: 42439 RVA: 0x00268670 File Offset: 0x00266870 [Token(Token = "0x170019D8")] public bool IsPointCompressed { [Token(Token = "0x600A5C7")] [Address(RVA = "0x27870B0", Offset = "0x2785AB0", VA = "0x1827870B0")] get { Stream octetStream = this.encoding.GetOctetStream(); if (octetStream != 0 && octetStream._activeReadWriteTask != 0) { SemaphoreSlim asyncActiveSemaphore = octetStream._asyncActiveSemaphore; return asyncActiveSemaphore == (ulong)2L || asyncActiveSemaphore == (ulong)3L; } throw new NullReferenceException(); } } // Token: 0x0600A5C8 RID: 42440 RVA: 0x002686B4 File Offset: 0x002668B4 [Token(Token = "0x600A5C8")] [Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "5")] public override Asn1Object ToAsn1Object() { /* An exception occurred when decompiling this method (0600A5C8) ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X9.X9ECPoint::ToAsn1Object() ---> System.Exception: Basic block has to end with unconditional control flow. { Block_0: stloc:Asn1OctetString(var_0_06, ldfld:Asn1OctetString(X9ECPoint::encoding, ldloc:X9ECPoint(this))) } 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: 0x04006BC6 RID: 27590 [global::Cpp2IlInjected.FieldOffset(Offset = "0x10")] [Token(Token = "0x4006BC6")] private readonly Asn1OctetString encoding; // Token: 0x04006BC7 RID: 27591 [global::Cpp2IlInjected.FieldOffset(Offset = "0x18")] [Token(Token = "0x4006BC7")] private ECCurve c; // Token: 0x04006BC8 RID: 27592 [global::Cpp2IlInjected.FieldOffset(Offset = "0x20")] [Token(Token = "0x4006BC8")] private ECPoint p; } }