using System; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC { // Token: 0x02001AD2 RID: 6866 [Token(Token = "0x2001AD2")] public class FpCurve : AbstractFpCurve { // Token: 0x0600A42C RID: 42028 RVA: 0x0022D66C File Offset: 0x0022B86C [Token(Token = "0x600A42C")] [Address(RVA = "0x7DC560", Offset = "0x7DB560", VA = "0x1807DC560")] [Obsolete] public FpCurve(BigInteger q, BigInteger a, BigInteger b) : base(q) { this.m_q = q; BigInteger bigInteger = FpFieldElement.CalculateResidue(q); this.m_r = bigInteger; int num; int num2; ulong num3; FpPoint fpPoint = new FpPoint(this, num, num2, num3 != 0UL); num2 = 0; num = 0; this.m_infinity = fpPoint; int fieldSize = this.FieldSize; this.m_a = fieldSize; int fieldSize2 = this.FieldSize; this.m_b = fieldSize2; this.m_order = (ulong)0L; this.m_cofactor = (ulong)0L; this.m_coord = (int)((ulong)4L); } // Token: 0x0600A42D RID: 42029 RVA: 0x0022D6E8 File Offset: 0x0022B8E8 [Token(Token = "0x600A42D")] [Address(RVA = "0x7DC450", Offset = "0x7DB450", VA = "0x1807DC450")] public FpCurve(BigInteger q, BigInteger a, BigInteger b, BigInteger order, BigInteger cofactor) : base(q) { this.m_q = q; BigInteger bigInteger = FpFieldElement.CalculateResidue(q); this.m_r = bigInteger; int num; int num2; ulong num3; FpPoint fpPoint = new FpPoint(this, num, num2, num3 != 0UL); num2 = 0; num = 0; this.m_infinity = fpPoint; int fieldSize = this.FieldSize; this.m_a = fieldSize; int fieldSize2 = this.FieldSize; this.m_b = fieldSize2; this.m_order = 0; this.m_cofactor = 0; this.m_coord = (int)((ulong)4L); } // Token: 0x0600A42E RID: 42030 RVA: 0x0022D760 File Offset: 0x0022B960 [Token(Token = "0x600A42E")] [Address(RVA = "0x7DC340", Offset = "0x7DB340", VA = "0x1807DC340")] [Obsolete] protected FpCurve(BigInteger q, BigInteger r, ECFieldElement a, ECFieldElement b) { } // Token: 0x0600A42F RID: 42031 RVA: 0x0022D770 File Offset: 0x0022B970 [Token(Token = "0x600A42F")] [Address(RVA = "0x7DC370", Offset = "0x7DB370", VA = "0x1807DC370")] protected FpCurve(BigInteger q, BigInteger r, ECFieldElement a, ECFieldElement b, BigInteger order, BigInteger cofactor) : base(q) { this.m_q = q; this.m_r = r; int num; int num2; ulong num3; FpPoint fpPoint = new FpPoint(this, num, num2, num3 != 0UL); num2 = 0; num = 0; this.m_b = 0; this.m_order = 0; this.m_a = a; this.m_cofactor = 0; this.m_infinity = fpPoint; this.m_coord = (int)((ulong)4L); } // Token: 0x0600A430 RID: 42032 RVA: 0x0022D7D0 File Offset: 0x0022B9D0 [Token(Token = "0x600A430")] [Address(RVA = "0x7DBDB0", Offset = "0x7DADB0", VA = "0x1807DBDB0", Slot = "12")] protected override ECCurve CloneCurve() { /* An exception occurred when decompiling this method (0600A430) ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.ECCurve BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.FpCurve::CloneCurve() ---> System.Exception: Basic block has to end with unconditional control flow. { Block_0: stloc:BigInteger(var_0_06, ldfld:BigInteger(FpCurve::m_q, ldloc:FpCurve(this))) stloc:BigInteger(var_1_0D, ldfld:BigInteger(FpCurve::m_r, ldloc:FpCurve(this))) stloc:ECFieldElement(var_2_14, ldfld:ECFieldElement(ECCurve::m_a, ldloc:FpCurve[exp:ECCurve](this))) stloc:ECFieldElement(var_3_1B, ldfld:ECFieldElement(ECCurve::m_b, ldloc:FpCurve[exp:ECCurve](this))) stloc:BigInteger(var_4_22, ldfld:BigInteger(ECCurve::m_order, ldloc:FpCurve[exp:ECCurve](this))) stloc:BigInteger(var_5_2A, ldfld:BigInteger(ECCurve::m_cofactor, ldloc:FpCurve[exp:ECCurve](this))) stloc:FpCurve(var_6_39, newobj:FpCurve(FpCurve::.ctor, ldloc:BigInteger(var_0_06), ldloc:BigInteger(var_1_0D), ldloc:ECFieldElement(var_2_14), ldloc:ECFieldElement(var_3_1B), ldloc:BigInteger(var_4_22), ldloc:BigInteger(var_5_2A))) } 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: 0x0600A431 RID: 42033 RVA: 0x0022D818 File Offset: 0x0022BA18 [Token(Token = "0x600A431")] [Address(RVA = "0x7DC330", Offset = "0x7DB330", VA = "0x1807DC330", Slot = "16")] public override bool SupportsCoordinateSystem(int coord) { if (coord <= 2 || coord != 4) { } return true; } // Token: 0x170019E5 RID: 6629 // (get) Token: 0x0600A432 RID: 42034 RVA: 0x0022D830 File Offset: 0x0022BA30 [Token(Token = "0x170019E5")] public virtual BigInteger Q { [Token(Token = "0x600A432")] [Address(RVA = "0x4936E0", Offset = "0x4926E0", VA = "0x1804936E0", Slot = "38")] get { return this.m_q; } } // Token: 0x170019E6 RID: 6630 // (get) Token: 0x0600A433 RID: 42035 RVA: 0x0022D844 File Offset: 0x0022BA44 [Token(Token = "0x170019E6")] public override ECPoint Infinity { [Token(Token = "0x600A433")] [Address(RVA = "0x417720", Offset = "0x416720", VA = "0x180417720", Slot = "22")] get { /* An exception occurred when decompiling this method (0600A433) ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.ECPoint BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.FpCurve::get_Infinity() ---> System.Exception: Basic block has to end with unconditional control flow. { Block_0: stloc:FpPoint(var_0_06, ldfld:FpPoint(FpCurve::m_infinity, ldloc:FpCurve(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: 0x170019E7 RID: 6631 // (get) Token: 0x0600A434 RID: 42036 RVA: 0x0022D858 File Offset: 0x0022BA58 [Token(Token = "0x170019E7")] public override int FieldSize { [Token(Token = "0x600A434")] [Address(RVA = "0x7DC670", Offset = "0x7DB670", VA = "0x1807DC670", Slot = "4")] get { return this.m_q.BitLength; } } // Token: 0x0600A435 RID: 42037 RVA: 0x0022D878 File Offset: 0x0022BA78 [Token(Token = "0x600A435")] [Address(RVA = "0x7DBF90", Offset = "0x7DAF90", VA = "0x1807DBF90", Slot = "5")] public override ECFieldElement FromBigInteger(BigInteger x) { /* An exception occurred when decompiling this method (0600A435) ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.ECFieldElement BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.FpCurve::FromBigInteger(BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger) ---> System.Exception: Basic block has to end with unconditional control flow. { Block_0: stloc:BigInteger(var_0_06, ldfld:BigInteger(FpCurve::m_q, ldloc:FpCurve(this))) stloc:BigInteger(var_1_0D, ldfld:BigInteger(FpCurve::m_r, ldloc:FpCurve(this))) stloc:FpFieldElement(var_2_16, newobj:FpFieldElement(FpFieldElement::.ctor, ldloc:BigInteger(var_0_06), ldloc:BigInteger(var_1_0D), ldloc:BigInteger(x))) } 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: 0x0600A436 RID: 42038 RVA: 0x0022D89C File Offset: 0x0022BA9C [Token(Token = "0x600A436")] [Address(RVA = "0x7DBE60", Offset = "0x7DAE60", VA = "0x1807DBE60", Slot = "13")] protected internal override ECPoint CreateRawPoint(ECFieldElement x, ECFieldElement y, bool withCompression) { /* An exception occurred when decompiling this method (0600A436) ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.ECPoint BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.FpCurve::CreateRawPoint(BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.ECFieldElement,BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.ECFieldElement,System.Boolean) ---> System.Exception: Basic block has to end with unconditional control flow. { Block_0: stloc:FpPoint(var_0_09, newobj:FpPoint(FpPoint::.ctor, ldloc:FpCurve[exp:ECCurve](this), ldloc:ECFieldElement(x), ldloc:ECFieldElement(y), ldloc:bool(withCompression))) } 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: 0x0600A437 RID: 42039 RVA: 0x0000220F File Offset: 0x0000040F [Token(Token = "0x600A437")] [Address(RVA = "0x7DBEF0", Offset = "0x7DAEF0", VA = "0x1807DBEF0", Slot = "14")] protected internal override ECPoint CreateRawPoint(ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, bool withCompression) { throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method."); } // Token: 0x0600A438 RID: 42040 RVA: 0x0022D8B4 File Offset: 0x0022BAB4 [Token(Token = "0x600A438")] [Address(RVA = "0x7DC010", Offset = "0x7DB010", VA = "0x1807DC010", Slot = "19")] public override ECPoint ImportPoint(ECPoint p) { bool flag = p.SatisfiesOrder(); if (this != flag && this.Cofactor == (ulong)2L && (p.m_x != (ulong)0L || p.m_y != (ulong)0L) && p.SatisfiesOrder() <= true) { string text = p.m_x.ToString(); int fieldSize = this.FieldSize; string text2 = p.m_y.ToString(); int fieldSize2 = this.FieldSize; ECFieldElement[] array = new ECFieldElement[1]; string text3 = p.YCoord.ToString(); int fieldSize3 = this.FieldSize; throw new ArrayTypeMismatchException(); } bool flag2 = p.SatisfiesOrder(); if (this != flag2) { if (p.m_x != (ulong)0L || p.m_y == (ulong)0L) { } short num; string text4 = num.ToString(); ushort num2; string text5 = num2.ToString(); } throw new NullReferenceException(); } // Token: 0x04006C30 RID: 27696 [Token(Token = "0x4006C30")] private const int FP_DEFAULT_COORDS = 4; // Token: 0x04006C31 RID: 27697 [FieldOffset(Offset = "0x50")] [Token(Token = "0x4006C31")] protected readonly BigInteger m_q; // Token: 0x04006C32 RID: 27698 [FieldOffset(Offset = "0x58")] [Token(Token = "0x4006C32")] protected readonly BigInteger m_r; // Token: 0x04006C33 RID: 27699 [FieldOffset(Offset = "0x60")] [Token(Token = "0x4006C33")] protected readonly FpPoint m_infinity; } }