using System; using System.IO; 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: 0x02001DE7 RID: 7655 [Token(Token = "0x2001DE7")] public class X9ECPoint : Asn1Encodable { // Token: 0x0600C19B RID: 49563 RVA: 0x002C0B34 File Offset: 0x002BED34 [Token(Token = "0x600C19B")] [Address(RVA = "0x1673AB0", Offset = "0x16728B0", VA = "0x181673AB0")] public X9ECPoint(ECPoint p) { bool flag = p.IsNormalized(); this.p = flag; byte[] array; DerOctetString derOctetString = new DerOctetString(array); this.encoding = derOctetString; } // Token: 0x0600C19C RID: 49564 RVA: 0x002C0B6C File Offset: 0x002BED6C [Token(Token = "0x600C19C")] [Address(RVA = "0x1673B60", Offset = "0x1672960", VA = "0x181673B60")] public X9ECPoint(ECPoint p, bool compressed) { bool flag = p.IsNormalized(); this.p = flag; byte[] array; DerOctetString derOctetString = new DerOctetString(array); this.encoding = derOctetString; } // Token: 0x0600C19D RID: 49565 RVA: 0x002C0BA4 File Offset: 0x002BEDA4 [Token(Token = "0x600C19D")] [Address(RVA = "0x1673C10", Offset = "0x1672A10", VA = "0x181673C10")] public X9ECPoint(ECCurve c, byte[] encoding) { this.c = c; DerOctetString derOctetString = new DerOctetString(Arrays.Clone(encoding)); this.encoding = derOctetString; } // Token: 0x0600C19E RID: 49566 RVA: 0x002C0BD4 File Offset: 0x002BEDD4 [Token(Token = "0x600C19E")] [Address(RVA = "0x1673A60", Offset = "0x1672860", VA = "0x181673A60")] public X9ECPoint(ECCurve c, Asn1OctetString s) { Stream octetStream = s.GetOctetStream(); } // Token: 0x0600C19F RID: 49567 RVA: 0x002C0BF0 File Offset: 0x002BEDF0 [Token(Token = "0x600C19F")] [Address(RVA = "0x16739E0", Offset = "0x16727E0", VA = "0x1816739E0")] public byte[] GetPointEncoding() { Stream octetStream = this.encoding.GetOctetStream(); byte[] array; return array; } // Token: 0x17001DD8 RID: 7640 // (get) Token: 0x0600C1A0 RID: 49568 RVA: 0x002C0C10 File Offset: 0x002BEE10 [Token(Token = "0x17001DD8")] public ECPoint Point { [Token(Token = "0x600C1A0")] [Address(RVA = "0x1673D20", Offset = "0x1672B20", VA = "0x181673D20")] get { ECPoint ecpoint = this.p; if (ecpoint == 0) { ECCurve eccurve = this.c; Stream octetStream = this.encoding.GetOctetStream(); ECMultiplier multiplier = eccurve.GetMultiplier(); } return ecpoint; } } // Token: 0x17001DD9 RID: 7641 // (get) Token: 0x0600C1A1 RID: 49569 RVA: 0x002C0C4C File Offset: 0x002BEE4C [Token(Token = "0x17001DD9")] public bool IsPointCompressed { [Token(Token = "0x600C1A1")] [Address(RVA = "0x1673CB0", Offset = "0x1672AB0", VA = "0x181673CB0")] 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: 0x0600C1A2 RID: 49570 RVA: 0x002C0C90 File Offset: 0x002BEE90 [Token(Token = "0x600C1A2")] [Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "5")] public override Asn1Object ToAsn1Object() { /* An exception occurred when decompiling this method (0600C1A2) 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 1660 */; } // Token: 0x04007A09 RID: 31241 [FieldOffset(Offset = "0x10")] [Token(Token = "0x4007A09")] private readonly Asn1OctetString encoding; // Token: 0x04007A0A RID: 31242 [FieldOffset(Offset = "0x18")] [Token(Token = "0x4007A0A")] private ECCurve c; // Token: 0x04007A0B RID: 31243 [FieldOffset(Offset = "0x20")] [Token(Token = "0x4007A0B")] private ECPoint p; } }