Files
2026-04-08 23:40:05 +02:00

910 lines
48 KiB
C#

using System;
using System.Collections;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Threading;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.Endo;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.Multiplier;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math.Field;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC
{
// Token: 0x02001411 RID: 5137
[Token(Token = "0x2001411")]
[StructLayout(3)]
public abstract class ECCurve
{
// Token: 0x06008453 RID: 33875 RVA: 0x001CC708 File Offset: 0x001CA908
[Token(Token = "0x6008453")]
[Address(RVA = "0x21A2CA0", Offset = "0x21A16A0", VA = "0x1821A2CA0")]
public static int[] GetAllCoordinateSystems()
{
int[] array = new int[8];
RuntimeHelpers.InitializeArray(array, fieldof(<PrivateImplementationDetails>.643F7C1D25ADAFA2F5ED135D8331618A14714ED2).FieldHandle);
return array;
}
// Token: 0x06008454 RID: 33876 RVA: 0x001CC728 File Offset: 0x001CA928
[Token(Token = "0x6008454")]
[Address(RVA = "0x3C3A30", Offset = "0x3C2430", VA = "0x1803C3A30")]
protected ECCurve(IFiniteField field)
{
this.m_field = field;
}
// Token: 0x1700153E RID: 5438
// (get) Token: 0x06008455 RID: 33877
[Token(Token = "0x1700153E")]
public abstract int FieldSize
{
[Token(Token = "0x6008455")]
[Address(Slot = "4")]
get;
}
// Token: 0x06008456 RID: 33878
[Token(Token = "0x6008456")]
[Address(Slot = "5")]
public abstract ECFieldElement FromBigInteger(BigInteger x);
// Token: 0x06008457 RID: 33879
[Token(Token = "0x6008457")]
[Address(Slot = "6")]
public abstract bool IsValidFieldElement(BigInteger x);
// Token: 0x06008458 RID: 33880 RVA: 0x001CC744 File Offset: 0x001CA944
[Token(Token = "0x6008458")]
[Address(RVA = "0x21A2160", Offset = "0x21A0B60", VA = "0x1821A2160", Slot = "7")]
public virtual ECCurve.Config Configure()
{
int coord = this.m_coord;
ECEndomorphism endomorphism = this.m_endomorphism;
ECMultiplier multiplier = this.m_multiplier;
ECCurve.Config config;
config.coord = coord;
config.endomorphism = endomorphism;
config.multiplier = multiplier;
config.outer = this;
return config;
}
// Token: 0x06008459 RID: 33881 RVA: 0x001CC784 File Offset: 0x001CA984
[Token(Token = "0x6008459")]
[Address(RVA = "0x21A38C0", Offset = "0x21A22C0", VA = "0x1821A38C0", Slot = "8")]
public virtual ECPoint ValidatePoint(BigInteger x, BigInteger y)
{
/*
An exception occurred when decompiling this method (06008459)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.ECPoint BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.ECCurve::ValidatePoint(BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_15:
stloc:ArgumentException(var_2_1F, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Invalid point coordinates")))
}
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 1663
*/;
}
// Token: 0x0600845A RID: 33882 RVA: 0x001CC7B0 File Offset: 0x001CA9B0
[Token(Token = "0x600845A")]
[Address(RVA = "0x21A3980", Offset = "0x21A2380", VA = "0x1821A3980", Slot = "9")]
[Obsolete]
public virtual ECPoint ValidatePoint(BigInteger x, BigInteger y, bool withCompression)
{
/*
An exception occurred when decompiling this method (0600845A)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.ECPoint BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.ECCurve::ValidatePoint(BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,System.Boolean)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_1E:
stloc:ArgumentException(var_2_28, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Invalid point coordinates")))
}
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 1663
*/;
}
// Token: 0x0600845B RID: 33883 RVA: 0x001CC7E8 File Offset: 0x001CA9E8
[Token(Token = "0x600845B")]
[Address(RVA = "0x21A2560", Offset = "0x21A0F60", VA = "0x1821A2560", Slot = "10")]
public virtual ECPoint CreatePoint(BigInteger x, BigInteger y)
{
return this.CreatePoint(x, y);
}
// Token: 0x0600845C RID: 33884 RVA: 0x001CC800 File Offset: 0x001CAA00
[Token(Token = "0x600845C")]
[Address(RVA = "0x21A24D0", Offset = "0x21A0ED0", VA = "0x1821A24D0", Slot = "11")]
[Obsolete]
public virtual ECPoint CreatePoint(BigInteger x, BigInteger y, bool withCompression)
{
/*
An exception occurred when decompiling this method (0600845C)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.ECPoint BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.ECCurve::CreatePoint(BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,System.Boolean)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:int32(var_0_06, callvirtgetter:int32(ECCurve::get_FieldSize, ldloc:ECCurve(this)))
stloc:int32(var_1_0D, callvirtgetter:int32(ECCurve::get_FieldSize, ldloc:ECCurve(this)))
stloc:int32(var_2_14, callgetter:int32(ECCurve::get_FieldSize, ldloc:ECCurve(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: 0x0600845D RID: 33885
[Token(Token = "0x600845D")]
[Address(Slot = "12")]
protected abstract ECCurve CloneCurve();
// Token: 0x0600845E RID: 33886
[Token(Token = "0x600845E")]
[Address(Slot = "13")]
protected internal abstract ECPoint CreateRawPoint(ECFieldElement x, ECFieldElement y, bool withCompression);
// Token: 0x0600845F RID: 33887
[Token(Token = "0x600845F")]
[Address(Slot = "14")]
protected internal abstract ECPoint CreateRawPoint(ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, bool withCompression);
// Token: 0x06008460 RID: 33888 RVA: 0x001CC824 File Offset: 0x001CAA24
[Token(Token = "0x6008460")]
[Address(RVA = "0x21A2420", Offset = "0x21A0E20", VA = "0x1821A2420", Slot = "15")]
protected virtual ECMultiplier CreateDefaultMultiplier()
{
/*
An exception occurred when decompiling this method (06008460)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.Multiplier.ECMultiplier BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.ECCurve::CreateDefaultMultiplier()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:WNafL2RMultiplier(var_0_05, newobj:WNafL2RMultiplier(WNafL2RMultiplier::.ctor))
}
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: 0x06008461 RID: 33889 RVA: 0x001CC838 File Offset: 0x001CAA38
[Token(Token = "0x6008461")]
[Address(RVA = "0x21A38B0", Offset = "0x21A22B0", VA = "0x1821A38B0", Slot = "16")]
public virtual bool SupportsCoordinateSystem(int coord)
{
return coord == 0;
}
// Token: 0x06008462 RID: 33890 RVA: 0x001CC84C File Offset: 0x001CAA4C
[Token(Token = "0x6008462")]
[Address(RVA = "0x21A2EF0", Offset = "0x21A18F0", VA = "0x1821A2EF0", Slot = "17")]
public virtual PreCompInfo GetPreCompInfo(ECPoint point, string name)
{
for (;;)
{
int num = 0;
IDictionary preCompTable = point.m_preCompTable;
Monitor.Exit(point);
if (num != -1)
{
if (preCompTable == 0)
{
break;
}
if (num != 0 && num == 0)
{
continue;
}
num++;
}
if (num == 0)
{
if (num != -1)
{
}
if (num == 0)
{
break;
}
}
}
throw new NullReferenceException();
}
// Token: 0x06008463 RID: 33891 RVA: 0x001CC890 File Offset: 0x001CAA90
[Token(Token = "0x6008463")]
[Address(RVA = "0x21A35C0", Offset = "0x21A1FC0", VA = "0x1821A35C0", Slot = "18")]
public virtual PreCompInfo Precompute(ECPoint point, string name, IPreCompCallback callback)
{
int num;
do
{
num = 0;
IDictionary dictionary = point.m_preCompTable;
if (dictionary == 0)
{
IDictionary dictionary2 = Platform.CreateHashtable(4);
point.m_preCompTable = dictionary2;
}
int num2 = 0;
Monitor.Exit(point);
if ((num == -1 || num == 0) && num != 0)
{
goto IL_6C;
}
if (num == 0)
{
goto IL_72;
}
if (num != 0 && num2 < typeof(IPreCompCallback).TypeHandle)
{
num2 += num2;
num2++;
}
num++;
dictionary += dictionary;
num++;
num += 19;
if (num != -1)
{
}
}
while (num != 0);
throw new NullReferenceException();
IL_6C:
throw new NullReferenceException();
IL_72:
throw new NullReferenceException();
}
// Token: 0x06008464 RID: 33892 RVA: 0x001CC914 File Offset: 0x001CAB14
[Token(Token = "0x6008464")]
[Address(RVA = "0x21A3100", Offset = "0x21A1B00", VA = "0x1821A3100", Slot = "19")]
public virtual ECPoint ImportPoint(ECPoint p)
{
bool flag = p.SatisfiesOrder();
if (this != flag)
{
if (p.m_x == (ulong)0L && p.m_y == (ulong)0L)
{
int fieldSize = this.FieldSize;
}
bool flag2 = p.IsNormalized();
short num;
string text = num.ToString();
ushort num2;
string text2 = num2.ToString();
ECPoint ecpoint;
return ecpoint;
}
return p;
}
// Token: 0x06008465 RID: 33893 RVA: 0x001CC96C File Offset: 0x001CAB6C
[Token(Token = "0x6008465")]
[Address(RVA = "0x21A3580", Offset = "0x21A1F80", VA = "0x1821A3580", Slot = "20")]
public virtual void NormalizeAll(ECPoint[] points)
{
this.NormalizeAll(points);
}
// Token: 0x06008466 RID: 33894 RVA: 0x001CC988 File Offset: 0x001CAB88
[Token(Token = "0x6008466")]
[Address(RVA = "0x21A3240", Offset = "0x21A1C40", VA = "0x1821A3240", Slot = "21")]
public virtual void NormalizeAll(ECPoint[] points, int off, int len, ECFieldElement iso)
{
/*
An exception occurred when decompiling this method (06008466)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.ECCurve::NormalizeAll(BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.ECPoint[],System.Int32,System.Int32,BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.ECFieldElement)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_A2:
stloc:ArgumentException(var_10_B1, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("not valid for affine coordinates"), ldstr:string("iso")))
}
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 1663
*/;
}
// Token: 0x1700153F RID: 5439
// (get) Token: 0x06008467 RID: 33895
[Token(Token = "0x1700153F")]
public abstract ECPoint Infinity
{
[Token(Token = "0x6008467")]
[Address(Slot = "22")]
get;
}
// Token: 0x17001540 RID: 5440
// (get) Token: 0x06008468 RID: 33896 RVA: 0x001CCA48 File Offset: 0x001CAC48
[Token(Token = "0x17001540")]
public virtual IFiniteField Field
{
[Token(Token = "0x6008468")]
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "23")]
get
{
return this.m_field;
}
}
// Token: 0x17001541 RID: 5441
// (get) Token: 0x06008469 RID: 33897 RVA: 0x001CCA5C File Offset: 0x001CAC5C
[Token(Token = "0x17001541")]
public virtual ECFieldElement A
{
[Token(Token = "0x6008469")]
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "24")]
get
{
return this.m_a;
}
}
// Token: 0x17001542 RID: 5442
// (get) Token: 0x0600846A RID: 33898 RVA: 0x001CCA70 File Offset: 0x001CAC70
[Token(Token = "0x17001542")]
public virtual ECFieldElement B
{
[Token(Token = "0x600846A")]
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220", Slot = "25")]
get
{
return this.m_b;
}
}
// Token: 0x17001543 RID: 5443
// (get) Token: 0x0600846B RID: 33899 RVA: 0x001CCA84 File Offset: 0x001CAC84
[Token(Token = "0x17001543")]
public virtual BigInteger Order
{
[Token(Token = "0x600846B")]
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230", Slot = "26")]
get
{
return this.m_order;
}
}
// Token: 0x17001544 RID: 5444
// (get) Token: 0x0600846C RID: 33900 RVA: 0x001CCA98 File Offset: 0x001CAC98
[Token(Token = "0x17001544")]
public virtual BigInteger Cofactor
{
[Token(Token = "0x600846C")]
[Address(RVA = "0x3C1250", Offset = "0x3BFC50", VA = "0x1803C1250", Slot = "27")]
get
{
return this.m_cofactor;
}
}
// Token: 0x17001545 RID: 5445
// (get) Token: 0x0600846D RID: 33901 RVA: 0x001CCAAC File Offset: 0x001CACAC
[Token(Token = "0x17001545")]
public virtual int CoordinateSystem
{
[Token(Token = "0x600846D")]
[Address(RVA = "0x3D3FF0", Offset = "0x3D29F0", VA = "0x1803D3FF0", Slot = "28")]
get
{
return this.m_coord;
}
}
// Token: 0x0600846E RID: 33902 RVA: 0x001CCAC0 File Offset: 0x001CACC0
[Token(Token = "0x600846E")]
[Address(RVA = "0x21A21F0", Offset = "0x21A0BF0", VA = "0x1821A21F0", Slot = "29")]
public virtual ECLookupTable CreateCacheSafeLookupTable(ECPoint[] points, int off, int len)
{
string text = this.ToString();
string text2 = text * len;
text2 += text2;
byte[] array = new byte[text2];
int num = 0;
if (len > 0)
{
ECPoint ecpoint = points[len];
string text3 = ecpoint.m_x.ToString();
string text4 = ecpoint.m_y.ToString();
byte[] array2;
int num2 = array2.Length;
bool flag = num2 > text;
num2 -= (flag ? 1 : 0);
byte[] array3;
int num3 = array3.Length;
bool flag2 = num3 > text;
num -= num2;
num += text;
num3 -= (flag2 ? 1 : 0);
Array.Copy(array2, flag ? 1 : 0, array, num, num2);
num += text;
num -= num3;
num += text;
flag = flag2;
Array.Copy(array3, flag ? 1 : 0, array, num, num3);
num += text;
}
ECCurve.DefaultLookupTable defaultLookupTable;
defaultLookupTable.m_table = array;
defaultLookupTable.m_size = 0;
defaultLookupTable.m_outer = this;
throw new NullReferenceException();
}
// Token: 0x0600846F RID: 33903 RVA: 0x001CCB94 File Offset: 0x001CAD94
[Token(Token = "0x600846F")]
[Address(RVA = "0x21A1F10", Offset = "0x21A0910", VA = "0x1821A1F10", Slot = "30")]
protected virtual void CheckPoint(ECPoint point)
{
/*
An exception occurred when decompiling this method (0600846F)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.ECCurve::CheckPoint(BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.ECPoint)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_10:
stloc:ArgumentException(var_1_1F, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("must be non-null and on this curve"), ldstr:string("point")))
}
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: 0x06008470 RID: 33904 RVA: 0x001CCBC0 File Offset: 0x001CADC0
[Token(Token = "0x6008470")]
[Address(RVA = "0x21A2120", Offset = "0x21A0B20", VA = "0x1821A2120", Slot = "31")]
protected virtual void CheckPoints(ECPoint[] points)
{
this.CheckPoints(points);
}
// Token: 0x06008471 RID: 33905 RVA: 0x001CCBDC File Offset: 0x001CADDC
[Token(Token = "0x6008471")]
[Address(RVA = "0x21A1FA0", Offset = "0x21A09A0", VA = "0x1821A1FA0", Slot = "32")]
protected virtual void CheckPoints(ECPoint[] points, int off, int len)
{
/*
An exception occurred when decompiling this method (06008471)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.ECCurve::CheckPoints(BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.ECPoint[],System.Int32,System.Int32)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_3E:
stloc:ArgumentException(var_4_4D, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("entries must be null or on this curve"), ldstr:string("points")))
}
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: 0x06008472 RID: 33906 RVA: 0x001CCC38 File Offset: 0x001CAE38
[Token(Token = "0x6008472")]
[Address(RVA = "0x21A2A50", Offset = "0x21A1450", VA = "0x1821A2A50", Slot = "33")]
public virtual bool Equals(ECCurve other)
{
if (this != other)
{
if (other != 0)
{
ECPoint infinity = this.Infinity;
if (other.Infinity != 0)
{
IFiniteField field = this.Field;
if (other.Field != 0)
{
string text = this.A.ToString();
string text2 = other.A.ToString();
object obj = ((ICloneable)text).Clone();
}
}
}
}
return true;
}
// Token: 0x06008473 RID: 33907 RVA: 0x001CCC9C File Offset: 0x001CAE9C
[Token(Token = "0x6008473")]
[Address(RVA = "0x21A2C10", Offset = "0x21A1610", VA = "0x1821A2C10", Slot = "0")]
public override bool Equals(object obj)
{
/*
An exception occurred when decompiling this method (06008473)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.ECCurve::Equals(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_04:
stloc:int32(var_1_0C, callgetter:int32(ECCurve::get_FieldSize, ldloc:ECCurve(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: 0x06008474 RID: 33908 RVA: 0x001CCCB8 File Offset: 0x001CAEB8
[Token(Token = "0x6008474")]
[Address(RVA = "0x21A2CF0", Offset = "0x21A16F0", VA = "0x1821A2CF0", Slot = "2")]
public override int GetHashCode()
{
this.Infinity.Finalize();
IFiniteField field = this.Field;
this.A.ToString().Finalize();
throw new NullReferenceException();
}
// Token: 0x06008475 RID: 33909
[Token(Token = "0x6008475")]
[Address(Slot = "34")]
protected abstract ECPoint DecompressPoint(int yTilde, BigInteger X1);
// Token: 0x06008476 RID: 33910 RVA: 0x001CCCEC File Offset: 0x001CAEEC
[Token(Token = "0x6008476")]
[Address(RVA = "0x3D32F0", Offset = "0x3D1CF0", VA = "0x1803D32F0", Slot = "35")]
public virtual ECEndomorphism GetEndomorphism()
{
return this.m_endomorphism;
}
// Token: 0x06008477 RID: 33911 RVA: 0x001CCD00 File Offset: 0x001CAF00
[Token(Token = "0x6008477")]
[Address(RVA = "0x21A2E00", Offset = "0x21A1800", VA = "0x1821A2E00", Slot = "36")]
public virtual ECMultiplier GetMultiplier()
{
int num;
ECMultiplier multiplier;
do
{
num = 0;
multiplier = this.m_multiplier;
if (multiplier == 0)
{
ECPoint ecpoint;
this.m_multiplier = ecpoint;
}
Monitor.Exit(this);
if (num != -1)
{
}
}
while (num != 0);
return multiplier;
}
// Token: 0x06008478 RID: 33912 RVA: 0x001CCD30 File Offset: 0x001CAF30
[Token(Token = "0x6008478")]
[Address(RVA = "0x21A2590", Offset = "0x21A0F90", VA = "0x1821A2590", Slot = "37")]
public virtual ECPoint DecodePoint(byte[] encoded)
{
/*
An exception occurred when decompiling this method (06008478)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.ECPoint BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.ECCurve::DecodePoint(System.Byte[])
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_81:
stloc:ArgumentException(var_19_8B, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Invalid point")))
}
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: 0x04005C1D RID: 23581
[Token(Token = "0x4005C1D")]
public const int COORD_AFFINE = 0;
// Token: 0x04005C1E RID: 23582
[Token(Token = "0x4005C1E")]
public const int COORD_HOMOGENEOUS = 1;
// Token: 0x04005C1F RID: 23583
[Token(Token = "0x4005C1F")]
public const int COORD_JACOBIAN = 2;
// Token: 0x04005C20 RID: 23584
[Token(Token = "0x4005C20")]
public const int COORD_JACOBIAN_CHUDNOVSKY = 3;
// Token: 0x04005C21 RID: 23585
[Token(Token = "0x4005C21")]
public const int COORD_JACOBIAN_MODIFIED = 4;
// Token: 0x04005C22 RID: 23586
[Token(Token = "0x4005C22")]
public const int COORD_LAMBDA_AFFINE = 5;
// Token: 0x04005C23 RID: 23587
[Token(Token = "0x4005C23")]
public const int COORD_LAMBDA_PROJECTIVE = 6;
// Token: 0x04005C24 RID: 23588
[Token(Token = "0x4005C24")]
public const int COORD_SKEWED = 7;
// Token: 0x04005C25 RID: 23589
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4005C25")]
protected readonly IFiniteField m_field;
// Token: 0x04005C26 RID: 23590
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4005C26")]
protected ECFieldElement m_a;
// Token: 0x04005C27 RID: 23591
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x4005C27")]
protected ECFieldElement m_b;
// Token: 0x04005C28 RID: 23592
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x4005C28")]
protected BigInteger m_order;
// Token: 0x04005C29 RID: 23593
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
[Token(Token = "0x4005C29")]
protected BigInteger m_cofactor;
// Token: 0x04005C2A RID: 23594
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
[Token(Token = "0x4005C2A")]
protected int m_coord;
// Token: 0x04005C2B RID: 23595
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
[Token(Token = "0x4005C2B")]
protected ECEndomorphism m_endomorphism;
// Token: 0x04005C2C RID: 23596
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
[Token(Token = "0x4005C2C")]
protected ECMultiplier m_multiplier;
// Token: 0x02001412 RID: 5138
[Token(Token = "0x2001412")]
public class Config
{
// Token: 0x06008479 RID: 33913 RVA: 0x001CCDCC File Offset: 0x001CAFCC
[Token(Token = "0x6008479")]
[Address(RVA = "0x654E20", Offset = "0x653820", VA = "0x180654E20")]
internal Config(ECCurve outer, int coord, ECEndomorphism endomorphism, ECMultiplier multiplier)
{
this.outer = outer;
this.endomorphism = endomorphism;
this.multiplier = 0;
this.coord = coord;
}
// Token: 0x0600847A RID: 33914 RVA: 0x001CCDFC File Offset: 0x001CAFFC
[Token(Token = "0x600847A")]
[Address(RVA = "0x219E740", Offset = "0x219D140", VA = "0x18219E740")]
public ECCurve.Config SetCoordinateSystem(int coord)
{
this.coord = coord;
return this;
}
// Token: 0x0600847B RID: 33915 RVA: 0x001CCE14 File Offset: 0x001CB014
[Token(Token = "0x600847B")]
[Address(RVA = "0x665670", Offset = "0x664070", VA = "0x180665670")]
public ECCurve.Config SetEndomorphism(ECEndomorphism endomorphism)
{
this.endomorphism = endomorphism;
return this;
}
// Token: 0x0600847C RID: 33916 RVA: 0x001CCE2C File Offset: 0x001CB02C
[Token(Token = "0x600847C")]
[Address(RVA = "0x1E87640", Offset = "0x1E86040", VA = "0x181E87640")]
public ECCurve.Config SetMultiplier(ECMultiplier multiplier)
{
this.multiplier = multiplier;
return this;
}
// Token: 0x0600847D RID: 33917 RVA: 0x001CCE44 File Offset: 0x001CB044
[Token(Token = "0x600847D")]
[Address(RVA = "0x219E650", Offset = "0x219D050", VA = "0x18219E650")]
public ECCurve Create()
{
/*
An exception occurred when decompiling this method (0600847D)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.ECCurve BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.ECCurve/Config::Create()
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_41:
stloc:InvalidOperationException(var_5_4B, 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 1663
*/;
}
// Token: 0x04005C2D RID: 23597
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4005C2D")]
protected ECCurve outer;
// Token: 0x04005C2E RID: 23598
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4005C2E")]
protected int coord;
// Token: 0x04005C2F RID: 23599
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x4005C2F")]
protected ECEndomorphism endomorphism;
// Token: 0x04005C30 RID: 23600
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x4005C30")]
protected ECMultiplier multiplier;
}
// Token: 0x02001413 RID: 5139
[Token(Token = "0x2001413")]
private class DefaultLookupTable : ECLookupTable
{
// Token: 0x0600847E RID: 33918 RVA: 0x001CCEA0 File Offset: 0x001CB0A0
[Token(Token = "0x600847E")]
[Address(RVA = "0x602F40", Offset = "0x601940", VA = "0x180602F40")]
internal DefaultLookupTable(ECCurve outer, byte[] table, int size)
{
this.m_outer = outer;
this.m_table = table;
this.m_size = size;
}
// Token: 0x17001546 RID: 5446
// (get) Token: 0x0600847F RID: 33919 RVA: 0x001CCEC8 File Offset: 0x001CB0C8
[Token(Token = "0x17001546")]
public virtual int Size
{
[Token(Token = "0x600847F")]
[Address(RVA = "0x4FBD40", Offset = "0x4FA740", VA = "0x1804FBD40", Slot = "6")]
get
{
return this.m_size;
}
}
// Token: 0x06008480 RID: 33920 RVA: 0x001CCEDC File Offset: 0x001CB0DC
[Token(Token = "0x6008480")]
[Address(RVA = "0x219EB10", Offset = "0x219D510", VA = "0x18219EB10", Slot = "7")]
public virtual ECPoint Lookup(int index)
{
string text = this.m_outer.ToString();
byte[] array = new byte[text];
byte[] array2 = new byte[text];
int num = 0;
int num2 = 0;
if (this.m_size > num)
{
int num3 = 0;
if (text > 0)
{
byte[] table = this.m_table;
byte[] table2 = this.m_table;
num3++;
}
num2++;
}
ECCurve outer = this.m_outer;
BigInteger bigInteger = new BigInteger(1, array);
int fieldSize = outer.FieldSize;
ECCurve outer2 = this.m_outer;
BigInteger bigInteger2 = new BigInteger(1, array2);
int fieldSize2 = outer2.FieldSize;
ECCurve eccurve = this.m_outer.CloneCurve();
throw new NullReferenceException();
}
// Token: 0x04005C31 RID: 23601
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4005C31")]
private readonly ECCurve m_outer;
// Token: 0x04005C32 RID: 23602
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4005C32")]
private readonly byte[] m_table;
// Token: 0x04005C33 RID: 23603
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x4005C33")]
private readonly int m_size;
}
}
}