Files
Apr2020-Cpp2Il-Dump/Assembly-CSharp/BestHTTP/SecureProtocol/Org/BouncyCastle/Math/EC/FpPoint.cs
T
niko 8fc35183db a
2026-04-11 22:19:20 +02:00

466 lines
26 KiB
C#

using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC
{
// Token: 0x02001A00 RID: 6656
[Token(Token = "0x2001A00")]
public class FpPoint : AbstractFpPoint
{
// Token: 0x0600A126 RID: 41254 RVA: 0x002272D0 File Offset: 0x002254D0
[Token(Token = "0x600A126")]
[Address(RVA = "0x20AAE30", Offset = "0x20A9C30", VA = "0x1820AAE30")]
[Obsolete]
public FpPoint(ECCurve curve, ECFieldElement x, ECFieldElement y)
{
}
// Token: 0x0600A127 RID: 41255 RVA: 0x002272E0 File Offset: 0x002254E0
[Token(Token = "0x600A127")]
[Address(RVA = "0x20AAD70", Offset = "0x20A9B70", VA = "0x1820AAD70")]
[Obsolete]
public FpPoint(ECCurve curve, ECFieldElement x, ECFieldElement y, bool withCompression)
{
/*
An exception occurred when decompiling this method (0600A127)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.FpPoint::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.ECCurve,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.
{
IL_11:
stloc:ArgumentException(var_3_1B, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Exactly one of the field elements is null")))
}
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 1660
*/;
}
// Token: 0x0600A128 RID: 41256 RVA: 0x00227308 File Offset: 0x00225508
[Token(Token = "0x600A128")]
[Address(RVA = "0x1EE6BE0", Offset = "0x1EE59E0", VA = "0x181EE6BE0")]
internal FpPoint(ECCurve curve, ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, bool withCompression)
{
}
// Token: 0x0600A129 RID: 41257 RVA: 0x00227318 File Offset: 0x00225518
[Token(Token = "0x600A129")]
[Address(RVA = "0x20A8550", Offset = "0x20A7350", VA = "0x1820A8550", Slot = "7")]
protected override ECPoint Detach()
{
/*
An exception occurred when decompiling this method (0600A129)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.ECPoint BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.FpPoint::Detach()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:int32(var_0_06, callvirtgetter:int32(ECPoint::get_CurveCoordinateSystem, ldloc:FpPoint[exp:ECPoint](this)))
stloc:ECFieldElement(var_1_0D, callvirtgetter:ECFieldElement(ECPoint::get_AffineXCoord, ldloc:FpPoint[exp:ECPoint](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: 0x0600A12A RID: 41258 RVA: 0x00227334 File Offset: 0x00225534
[Token(Token = "0x600A12A")]
[Address(RVA = "0x20A87B0", Offset = "0x20A75B0", VA = "0x1820A87B0", Slot = "13")]
public override ECFieldElement GetZCoord(int index)
{
if (index == 1 && this.Detach() == (ulong)4L)
{
bool flag = base.SatisfiesCurveEquation();
}
ECFieldElement[] zs = this.m_zs;
int length = zs.Length;
if (index < length)
{
return zs[index];
}
throw new IndexOutOfRangeException();
}
// Token: 0x0600A12B RID: 41259 RVA: 0x00227378 File Offset: 0x00225578
[Token(Token = "0x600A12B")]
[Address(RVA = "0x20A7550", Offset = "0x20A6350", VA = "0x1820A7550", Slot = "26")]
public override ECPoint Add(ECPoint b)
{
return b;
}
// Token: 0x0600A12C RID: 41260 RVA: 0x00227638 File Offset: 0x00225838
[Token(Token = "0x600A12C")]
[Address(RVA = "0x20AA0E0", Offset = "0x20A8EE0", VA = "0x1820AA0E0", Slot = "30")]
public override ECPoint Twice()
{
bool flag = this.SatisfiesOrder();
ECFieldElement y = this.m_y;
if (!y.IsOne)
{
ECFieldElement x = this.m_x;
ECFieldElement jacobianModifiedW = this.GetJacobianModifiedW();
ECFieldElement ecfieldElement = this.m_zs[0];
int bitLength = ecfieldElement.BitLength;
ECFieldElement ecfieldElement2 = y.Negate();
ECFieldElement ecfieldElement3 = ecfieldElement2.Negate();
ushort num;
string text = num.ToString();
BigInteger bigInteger;
if (bigInteger == 0)
{
ECFieldElement ecfieldElement4 = x.Negate();
ECFieldElement ecfieldElement5 = this.Two(ecfieldElement4);
if (ecfieldElement5 == 0)
{
ECFieldElement ecfieldElement6 = ecfieldElement.Negate().Negate();
int fieldSize = ecfieldElement5.FieldSize;
}
}
ECFieldElement ecfieldElement7 = ecfieldElement.Negate();
int fieldSize2 = x.FieldSize;
ECFieldElement ecfieldElement8 = x.AddOne();
ECFieldElement ecfieldElement9 = ecfieldElement2.Subtract(x);
ECFieldElement ecfieldElement10 = this.Three(ecfieldElement9);
ECFieldElement ecfieldElement12;
ECFieldElement ecfieldElement11 = ecfieldElement12.Negate();
ECPoint ecpoint = this.ThreeTimes();
ECFieldElement ecfieldElement13 = ecfieldElement11.AddOne();
ECFieldElement ecfieldElement14 = ecfieldElement10.AddOne().Subtract(ecfieldElement12);
ECFieldElement ecfieldElement15 = this.Four(ecfieldElement3);
ECFieldElement ecfieldElement16 = ecfieldElement14.AddOne();
ECFieldElement affineXCoord = this.ThreeTimes().AffineXCoord;
ECFieldElement[] array = new ECFieldElement[1];
throw new ArrayTypeMismatchException();
}
throw new NullReferenceException();
}
// Token: 0x0600A12D RID: 41261 RVA: 0x002277F8 File Offset: 0x002259F8
[Token(Token = "0x600A12D")]
[Address(RVA = "0x20A9B50", Offset = "0x20A8950", VA = "0x1820A9B50", Slot = "32")]
public override ECPoint TwicePlus(ECPoint b)
{
if (this != b)
{
if (b.m_x == (ulong)0L && b.m_y == (ulong)0L)
{
ECPoint ecpoint;
return ecpoint;
}
if (!this.m_y.IsOne)
{
if (this.SatisfiesOrder())
{
goto IL_131;
}
ECFieldElement x = b.m_x;
ECFieldElement y = b.m_y;
ECFieldElement x2 = this.m_x;
ECFieldElement ecfieldElement = x.AddOne();
ECFieldElement ecfieldElement2 = y.AddOne();
if (ecfieldElement.IsOne)
{
goto IL_12C;
}
ECFieldElement ecfieldElement3 = ecfieldElement.Negate();
ECFieldElement ecfieldElement4 = ecfieldElement2.Negate();
ECCurve curve = this.ThreeTimes().Curve;
ECFieldElement ecfieldElement6;
ECFieldElement ecfieldElement5 = ecfieldElement6.AddOne();
if (!ecfieldElement5.IsOne)
{
ECFieldElement ecfieldElement7 = ecfieldElement5.Subtract(ecfieldElement).Square();
ECFieldElement ecfieldElement8 = ecfieldElement5.Subtract(ecfieldElement7).Subtract(ecfieldElement2);
ECFieldElement ecfieldElement9 = this.ThreeTimes().AffineXCoord.Subtract(ecfieldElement).Subtract(ecfieldElement7).AddOne();
ECFieldElement ecfieldElement10 = ecfieldElement9.AddOne();
int fieldSize = ecfieldElement8.FieldSize;
ECFieldElement ecfieldElement11;
int fieldSize2 = ecfieldElement11.FieldSize;
ECFieldElement ecfieldElement12 = x2.AddOne().Subtract(ecfieldElement9).AddOne();
bool flag = this.SatisfiesOrder();
bool withCompression = this.m_withCompression;
}
}
bool flag2 = this.SatisfiesOrder();
IL_12C:
ECPoint ecpoint2;
if (ecpoint2 == 0)
{
}
IL_131:
if (this == (ulong)4L)
{
ECFieldElement jacobianModifiedW = this.GetJacobianModifiedW();
}
}
bool flag3 = base.SatisfiesCurveEquation();
throw new NullReferenceException();
}
// Token: 0x0600A12E RID: 41262 RVA: 0x00227954 File Offset: 0x00225B54
[Token(Token = "0x600A12E")]
[Address(RVA = "0x20A89B0", Offset = "0x20A77B0", VA = "0x1820A89B0", Slot = "33")]
public override ECPoint ThreeTimes()
{
ECFieldElement y = this.m_y;
if (y != 0 && !y.IsOne)
{
bool flag = this.SatisfiesOrder();
if (!flag)
{
ECFieldElement x = this.m_x;
ECFieldElement ycoord = this.ThreeTimes().YCoord;
ECFieldElement ecfieldElement = x.Negate();
ECFieldElement ecfieldElement2 = this.Two(ecfieldElement);
bool flag2 = this.SatisfiesOrder();
int fieldSize = ecfieldElement2.FieldSize;
ECFieldElement ecfieldElement3 = this.Two(x).Subtract(ycoord).AddOne();
if (!ecfieldElement3.IsOne)
{
ECFieldElement ecfieldElement5;
ECFieldElement ecfieldElement4 = ecfieldElement5.Square();
ECFieldElement ecfieldElement6 = ecfieldElement3.Subtract(ecfieldElement4);
ECFieldElement ecfieldElement7 = ycoord.Negate().Subtract(ecfieldElement4).AddOne();
ECFieldElement ecfieldElement8 = ecfieldElement7.AddOne();
ECFieldElement ecfieldElement9;
int fieldSize2 = ecfieldElement9.FieldSize;
ECFieldElement ecfieldElement10;
int fieldSize3 = ecfieldElement10.FieldSize;
ECFieldElement ecfieldElement11 = x.AddOne().Subtract(ecfieldElement7).AddOne();
bool flag3 = this.SatisfiesOrder();
bool withCompression = this.m_withCompression;
}
bool flag4 = this.SatisfiesOrder();
}
if (flag)
{
ECFieldElement jacobianModifiedW = this.GetJacobianModifiedW();
}
}
throw new NullReferenceException();
}
// Token: 0x0600A12F RID: 41263 RVA: 0x00227A60 File Offset: 0x00225C60
[Token(Token = "0x600A12F")]
[Address(RVA = "0x20A8EC0", Offset = "0x20A7CC0", VA = "0x1820A8EC0", Slot = "29")]
public override ECPoint TimesPow2(int e)
{
/*
An exception occurred when decompiling this method (0600A12F)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.ECPoint BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.FpPoint::TimesPow2(System.Int32)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_1B0:
stloc:ArgumentException(var_52_1BF, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("cannot be negative"), ldstr:string("e")))
stloc:InvalidOperationException(var_53_1CB, newobj:InvalidOperationException(InvalidOperationException::.ctor, ldstr:string("unsupported coordinate system")))
}
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: 0x0600A130 RID: 41264 RVA: 0x00227C3C File Offset: 0x00225E3C
[Token(Token = "0x600A130")]
[Address(RVA = "0x20AAD40", Offset = "0x20A9B40", VA = "0x1820AAD40", Slot = "34")]
protected virtual ECFieldElement Two(ECFieldElement x)
{
BigInteger bigInteger = x.ToBigInteger();
throw new NullReferenceException();
}
// Token: 0x0600A131 RID: 41265 RVA: 0x00227C58 File Offset: 0x00225E58
[Token(Token = "0x600A131")]
[Address(RVA = "0x20A8E80", Offset = "0x20A7C80", VA = "0x1820A8E80", Slot = "35")]
protected virtual ECFieldElement Three(ECFieldElement x)
{
bool flag = this.ThreeTimes().SatisfiesCurveEquation();
throw new NullReferenceException();
}
// Token: 0x0600A132 RID: 41266 RVA: 0x00227C78 File Offset: 0x00225E78
[Token(Token = "0x600A132")]
[Address(RVA = "0x20A86C0", Offset = "0x20A74C0", VA = "0x1820A86C0", Slot = "36")]
protected virtual ECFieldElement Four(ECFieldElement x)
{
/*
An exception occurred when decompiling this method (0600A132)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.ECFieldElement BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.FpPoint::Four(BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.ECFieldElement)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:ECPoint(var_0_06, callvirt:ECPoint(FpPoint::ThreeTimes, ldloc:FpPoint(this)))
stloc:bool(var_1_0D, call:bool(ECPoint::SatisfiesCurveEquation, ldloc:FpPoint[exp:ECPoint](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: 0x0600A133 RID: 41267 RVA: 0x00227C94 File Offset: 0x00225E94
[Token(Token = "0x600A133")]
[Address(RVA = "0x20A8680", Offset = "0x20A7480", VA = "0x1820A8680", Slot = "37")]
protected virtual ECFieldElement Eight(ECFieldElement x)
{
/*
An exception occurred when decompiling this method (0600A133)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.ECFieldElement BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.FpPoint::Eight(BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.ECFieldElement)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:ECPoint(var_0_06, callvirt:ECPoint(FpPoint::ThreeTimes, ldloc:FpPoint(this)))
stloc:bool(var_1_0D, call:bool(ECPoint::SatisfiesCurveEquation, ldloc:FpPoint[exp:ECPoint](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: 0x0600A134 RID: 41268 RVA: 0x00227CB0 File Offset: 0x00225EB0
[Token(Token = "0x600A134")]
[Address(RVA = "0x20A85F0", Offset = "0x20A73F0", VA = "0x1820A85F0", Slot = "38")]
protected virtual ECFieldElement DoubleProductFromSquares(ECFieldElement a, ECFieldElement b, ECFieldElement aSquared, ECFieldElement bSquared)
{
int fieldSize = a.FieldSize;
char c;
OVRMesh.JAAHPDGFADH jaahpdgfadh = ((OVRMesh.PJPHJNNOBBH)c).POCDCJMHEGL();
throw new NullReferenceException();
}
// Token: 0x0600A135 RID: 41269 RVA: 0x00227CD0 File Offset: 0x00225ED0
[Token(Token = "0x600A135")]
[Address(RVA = "0x20A8850", Offset = "0x20A7650", VA = "0x1820A8850", Slot = "28")]
public override ECPoint Negate()
{
bool flag = this.SatisfiesOrder();
ECFieldElement y = this.m_y;
if (!flag)
{
bool withCompression = this.m_withCompression;
}
FpPoint fpPoint;
ECFieldElement xcoord = fpPoint.XCoord;
throw new NullReferenceException();
}
// Token: 0x0600A136 RID: 41270 RVA: 0x00227D04 File Offset: 0x00225F04
[Token(Token = "0x600A136")]
[Address(RVA = "0x20A83D0", Offset = "0x20A71D0", VA = "0x1820A83D0", Slot = "39")]
protected virtual ECFieldElement CalculateJacobianModifiedW(ECFieldElement Z, ECFieldElement ZSquared)
{
bool flag = this.SatisfiesOrder();
bool flag2;
if (!flag2 && Z.BitLength == 0)
{
if (ZSquared == 0)
{
ECFieldElement ecfieldElement = Z.Negate();
}
ECFieldElement ecfieldElement2 = ZSquared.Negate();
ECFieldElement ecfieldElement3;
return ecfieldElement3;
}
throw new NullReferenceException();
}
// Token: 0x0600A137 RID: 41271 RVA: 0x00227D44 File Offset: 0x00225F44
[Token(Token = "0x600A137")]
[Address(RVA = "0x20A8700", Offset = "0x20A7500", VA = "0x1820A8700", Slot = "40")]
protected virtual ECFieldElement GetJacobianModifiedW()
{
ECFieldElement[] zs = this.m_zs;
ECFieldElement ecfieldElement = zs[1];
if (ecfieldElement == 0)
{
ECFieldElement ecfieldElement2;
if (ecfieldElement2 != 0)
{
}
zs[1] = ecfieldElement2;
}
return ecfieldElement;
}
// Token: 0x0600A138 RID: 41272 RVA: 0x00227D78 File Offset: 0x00225F78
[Token(Token = "0x600A138")]
[Address(RVA = "0x20A9750", Offset = "0x20A8550", VA = "0x1820A9750", Slot = "41")]
protected virtual FpPoint TwiceJacobianModified(bool calculateW)
{
ECFieldElement[] zs = this.m_zs;
ECFieldElement x = this.m_x;
ECFieldElement ecfieldElement = zs[0];
ECFieldElement ecfieldElement2 = x.Negate();
int fieldSize = this.Two(ecfieldElement2).FieldSize;
ECPoint ecpoint = this.ThreeTimes();
ECFieldElement affineXCoord = ecpoint.AffineXCoord;
ECFieldElement ecfieldElement3 = x.Subtract(affineXCoord);
ECPoint ecpoint2 = this.ThreeTimes();
ECPoint ecpoint3 = this.ThreeTimes();
ECFieldElement ecfieldElement4 = affineXCoord.Negate();
ECPoint ecpoint4 = this.ThreeTimes();
int curveCoordinateSystem = ecpoint2.CurveCoordinateSystem;
ECFieldElement affineXCoord2 = ecpoint4.AffineXCoord;
ECPoint ecpoint5 = this.ThreeTimes();
int num = 0;
ECFieldElement affineXCoord3;
if (ecfieldElement.BitLength == 0)
{
affineXCoord3 = ecpoint.AffineXCoord;
}
bool flag = this.SatisfiesOrder();
ECFieldElement[] array = new ECFieldElement[2];
if (affineXCoord3 != 0)
{
}
array[0] = affineXCoord3;
if (num != 0)
{
}
array[1] = num;
bool withCompression = this.m_withCompression;
FpPoint fpPoint;
return fpPoint;
}
}
}