m
This commit is contained in:
@@ -0,0 +1,99 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Math.Field
|
||||
{
|
||||
// Token: 0x02001AC5 RID: 6853
|
||||
[Token(Token = "0x2001AC5")]
|
||||
public abstract class FiniteFields
|
||||
{
|
||||
// Token: 0x0600A3C7 RID: 41927 RVA: 0x0022BF5C File Offset: 0x0022A15C
|
||||
[Token(Token = "0x600A3C7")]
|
||||
[Address(RVA = "0x7513A0", Offset = "0x7503A0", VA = "0x1807513A0")]
|
||||
public static IPolynomialExtensionField GetBinaryExtensionField(int[] exponents)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600A3C7)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Math.Field.IPolynomialExtensionField BestHTTP.SecureProtocol.Org.BouncyCastle.Math.Field.FiniteFields::GetBinaryExtensionField(System.Int32[])
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_4A:
|
||||
stloc:ArgumentException(var_6_59, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Polynomial exponents must be montonically increasing"), ldstr:string("exponents")))
|
||||
}
|
||||
|
||||
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: 0x0600A3C8 RID: 41928 RVA: 0x0022BFC4 File Offset: 0x0022A1C4
|
||||
[Token(Token = "0x600A3C8")]
|
||||
[Address(RVA = "0x7515A0", Offset = "0x7505A0", VA = "0x1807515A0")]
|
||||
public static IFiniteField GetPrimeField(BigInteger characteristic)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600A3C8)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Math.Field.IFiniteField BestHTTP.SecureProtocol.Org.BouncyCastle.Math.Field.FiniteFields::GetPrimeField(BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_3C:
|
||||
stloc:ArgumentException(var_3_4B, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Must be >= 2"), ldstr:string("characteristic")))
|
||||
}
|
||||
|
||||
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: 0x0600A3C9 RID: 41929 RVA: 0x0022C01C File Offset: 0x0022A21C
|
||||
[Token(Token = "0x600A3C9")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
protected FiniteFields()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600A3CA RID: 41930 RVA: 0x0022C030 File Offset: 0x0022A230
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x600A3CA")]
|
||||
[Address(RVA = "0x7516F0", Offset = "0x7506F0", VA = "0x1807516F0")]
|
||||
static FiniteFields()
|
||||
{
|
||||
PrimeField primeField;
|
||||
BigInteger bigInteger;
|
||||
primeField.characteristic = bigInteger;
|
||||
FiniteFields.GF_2 = primeField;
|
||||
PrimeField primeField2;
|
||||
BigInteger bigInteger2;
|
||||
primeField2.characteristic = bigInteger2;
|
||||
FiniteFields.GF_3 = primeField2;
|
||||
}
|
||||
|
||||
// Token: 0x04006C13 RID: 27667
|
||||
[Token(Token = "0x4006C13")]
|
||||
internal static readonly IFiniteField GF_2;
|
||||
|
||||
// Token: 0x04006C14 RID: 27668
|
||||
[Token(Token = "0x4006C14")]
|
||||
internal static readonly IFiniteField GF_3;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Math.Field
|
||||
{
|
||||
// Token: 0x02001AC6 RID: 6854
|
||||
[Token(Token = "0x2001AC6")]
|
||||
internal class GF2Polynomial : IPolynomial
|
||||
{
|
||||
// Token: 0x0600A3CB RID: 41931 RVA: 0x0022C058 File Offset: 0x0022A258
|
||||
[Token(Token = "0x600A3CB")]
|
||||
[Address(RVA = "0x751950", Offset = "0x750950", VA = "0x180751950")]
|
||||
internal GF2Polynomial(int[] exponents)
|
||||
{
|
||||
int[] array = Arrays.Clone(exponents);
|
||||
this.exponents = array;
|
||||
}
|
||||
|
||||
// Token: 0x170019CE RID: 6606
|
||||
// (get) Token: 0x0600A3CC RID: 41932 RVA: 0x0022C07C File Offset: 0x0022A27C
|
||||
[Token(Token = "0x170019CE")]
|
||||
public virtual int Degree
|
||||
{
|
||||
[Token(Token = "0x600A3CC")]
|
||||
[Address(RVA = "0x7519C0", Offset = "0x7509C0", VA = "0x1807519C0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
int[] array = this.exponents;
|
||||
int num = array.Length - 1;
|
||||
return array[num];
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600A3CD RID: 41933 RVA: 0x0022C0A8 File Offset: 0x0022A2A8
|
||||
[Token(Token = "0x600A3CD")]
|
||||
[Address(RVA = "0x751890", Offset = "0x750890", VA = "0x180751890", Slot = "7")]
|
||||
public virtual int[] GetExponentsPresent()
|
||||
{
|
||||
return Arrays.Clone(this.exponents);
|
||||
}
|
||||
|
||||
// Token: 0x0600A3CE RID: 41934 RVA: 0x0022C0C0 File Offset: 0x0022A2C0
|
||||
[Token(Token = "0x600A3CE")]
|
||||
[Address(RVA = "0x7517C0", Offset = "0x7507C0", VA = "0x1807517C0", Slot = "0")]
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (this != obj)
|
||||
{
|
||||
if (obj != 0 && obj != 0)
|
||||
{
|
||||
int[] array = this.exponents;
|
||||
bool flag;
|
||||
return flag;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x0600A3CF RID: 41935 RVA: 0x0022C0E8 File Offset: 0x0022A2E8
|
||||
[Token(Token = "0x600A3CF")]
|
||||
[Address(RVA = "0x7518F0", Offset = "0x7508F0", VA = "0x1807518F0", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return Arrays.GetHashCode(this.exponents);
|
||||
}
|
||||
|
||||
// Token: 0x04006C15 RID: 27669
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006C15")]
|
||||
protected readonly int[] exponents;
|
||||
}
|
||||
}
|
||||
+127
@@ -0,0 +1,127 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Math.Field
|
||||
{
|
||||
// Token: 0x02001AC7 RID: 6855
|
||||
[Token(Token = "0x2001AC7")]
|
||||
internal class GenericPolynomialExtensionField : IPolynomialExtensionField, IExtensionField, IFiniteField
|
||||
{
|
||||
// Token: 0x0600A3D0 RID: 41936 RVA: 0x0022C100 File Offset: 0x0022A300
|
||||
[Token(Token = "0x600A3D0")]
|
||||
[Address(RVA = "0x417DD0", Offset = "0x416DD0", VA = "0x180417DD0")]
|
||||
internal GenericPolynomialExtensionField(IFiniteField subfield, IPolynomial polynomial)
|
||||
{
|
||||
this.subfield = subfield;
|
||||
this.minimalPolynomial = polynomial;
|
||||
}
|
||||
|
||||
// Token: 0x170019CF RID: 6607
|
||||
// (get) Token: 0x0600A3D1 RID: 41937 RVA: 0x0022C124 File Offset: 0x0022A324
|
||||
[Token(Token = "0x170019CF")]
|
||||
public virtual BigInteger Characteristic
|
||||
{
|
||||
[Token(Token = "0x600A3D1")]
|
||||
[Address(RVA = "0x751B70", Offset = "0x750B70", VA = "0x180751B70", Slot = "9")]
|
||||
get
|
||||
{
|
||||
IFiniteField finiteField = this.subfield;
|
||||
int num = 0;
|
||||
num += num;
|
||||
num++;
|
||||
return finiteField.Characteristic;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170019D0 RID: 6608
|
||||
// (get) Token: 0x0600A3D2 RID: 41938 RVA: 0x0022C158 File Offset: 0x0022A358
|
||||
[Token(Token = "0x170019D0")]
|
||||
public virtual int Dimension
|
||||
{
|
||||
[Token(Token = "0x600A3D2")]
|
||||
[Address(RVA = "0x751C70", Offset = "0x750C70", VA = "0x180751C70", Slot = "10")]
|
||||
get
|
||||
{
|
||||
IFiniteField finiteField = this.subfield;
|
||||
IPolynomial polynomial = this.minimalPolynomial;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170019D1 RID: 6609
|
||||
// (get) Token: 0x0600A3D3 RID: 41939 RVA: 0x0022C178 File Offset: 0x0022A378
|
||||
[Token(Token = "0x170019D1")]
|
||||
public virtual IFiniteField Subfield
|
||||
{
|
||||
[Token(Token = "0x600A3D3")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "11")]
|
||||
get
|
||||
{
|
||||
return this.subfield;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170019D2 RID: 6610
|
||||
// (get) Token: 0x0600A3D4 RID: 41940 RVA: 0x0022C18C File Offset: 0x0022A38C
|
||||
[Token(Token = "0x170019D2")]
|
||||
public virtual int Degree
|
||||
{
|
||||
[Token(Token = "0x600A3D4")]
|
||||
[Address(RVA = "0x751C20", Offset = "0x750C20", VA = "0x180751C20", Slot = "12")]
|
||||
get
|
||||
{
|
||||
IPolynomial polynomial = this.minimalPolynomial;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170019D3 RID: 6611
|
||||
// (get) Token: 0x0600A3D5 RID: 41941 RVA: 0x0022C1A8 File Offset: 0x0022A3A8
|
||||
[Token(Token = "0x170019D3")]
|
||||
public virtual IPolynomial MinimalPolynomial
|
||||
{
|
||||
[Token(Token = "0x600A3D5")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "13")]
|
||||
get
|
||||
{
|
||||
return this.minimalPolynomial;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600A3D6 RID: 41942 RVA: 0x0022C1BC File Offset: 0x0022A3BC
|
||||
[Token(Token = "0x600A3D6")]
|
||||
[Address(RVA = "0x751A00", Offset = "0x750A00", VA = "0x180751A00", Slot = "0")]
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (this != obj)
|
||||
{
|
||||
if (obj != 0 && obj != 0)
|
||||
{
|
||||
IFiniteField finiteField = this.subfield;
|
||||
int degree = this.minimalPolynomial.Degree;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x0600A3D7 RID: 41943 RVA: 0x0022C1F4 File Offset: 0x0022A3F4
|
||||
[Token(Token = "0x600A3D7")]
|
||||
[Address(RVA = "0x751B00", Offset = "0x750B00", VA = "0x180751B00", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
IFiniteField finiteField = this.subfield;
|
||||
IPolynomial polynomial = this.minimalPolynomial;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04006C16 RID: 27670
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006C16")]
|
||||
protected readonly IFiniteField subfield;
|
||||
|
||||
// Token: 0x04006C17 RID: 27671
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4006C17")]
|
||||
protected readonly IPolynomial minimalPolynomial;
|
||||
}
|
||||
}
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Math.Field
|
||||
{
|
||||
// Token: 0x02001AC8 RID: 6856
|
||||
[Token(Token = "0x2001AC8")]
|
||||
public interface IExtensionField : IFiniteField
|
||||
{
|
||||
// Token: 0x170019D4 RID: 6612
|
||||
// (get) Token: 0x0600A3D8 RID: 41944
|
||||
[Token(Token = "0x170019D4")]
|
||||
IFiniteField Subfield
|
||||
{
|
||||
[Token(Token = "0x600A3D8")]
|
||||
[Address(Slot = "0")]
|
||||
get;
|
||||
}
|
||||
|
||||
// Token: 0x170019D5 RID: 6613
|
||||
// (get) Token: 0x0600A3D9 RID: 41945
|
||||
[Token(Token = "0x170019D5")]
|
||||
int Degree
|
||||
{
|
||||
[Token(Token = "0x600A3D9")]
|
||||
[Address(Slot = "1")]
|
||||
get;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Math.Field
|
||||
{
|
||||
// Token: 0x02001AC9 RID: 6857
|
||||
[Token(Token = "0x2001AC9")]
|
||||
public interface IFiniteField
|
||||
{
|
||||
// Token: 0x170019D6 RID: 6614
|
||||
// (get) Token: 0x0600A3DA RID: 41946
|
||||
[Token(Token = "0x170019D6")]
|
||||
BigInteger Characteristic
|
||||
{
|
||||
[Token(Token = "0x600A3DA")]
|
||||
[Address(Slot = "0")]
|
||||
get;
|
||||
}
|
||||
|
||||
// Token: 0x170019D7 RID: 6615
|
||||
// (get) Token: 0x0600A3DB RID: 41947
|
||||
[Token(Token = "0x170019D7")]
|
||||
int Dimension
|
||||
{
|
||||
[Token(Token = "0x600A3DB")]
|
||||
[Address(Slot = "1")]
|
||||
get;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Math.Field
|
||||
{
|
||||
// Token: 0x02001ACA RID: 6858
|
||||
[Token(Token = "0x2001ACA")]
|
||||
public interface IPolynomial
|
||||
{
|
||||
// Token: 0x170019D8 RID: 6616
|
||||
// (get) Token: 0x0600A3DC RID: 41948
|
||||
[Token(Token = "0x170019D8")]
|
||||
int Degree
|
||||
{
|
||||
[Token(Token = "0x600A3DC")]
|
||||
[Address(Slot = "0")]
|
||||
get;
|
||||
}
|
||||
|
||||
// Token: 0x0600A3DD RID: 41949
|
||||
[Token(Token = "0x600A3DD")]
|
||||
[Address(Slot = "1")]
|
||||
int[] GetExponentsPresent();
|
||||
}
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Math.Field
|
||||
{
|
||||
// Token: 0x02001ACB RID: 6859
|
||||
[Token(Token = "0x2001ACB")]
|
||||
public interface IPolynomialExtensionField : IExtensionField, IFiniteField
|
||||
{
|
||||
// Token: 0x170019D9 RID: 6617
|
||||
// (get) Token: 0x0600A3DE RID: 41950
|
||||
[Token(Token = "0x170019D9")]
|
||||
IPolynomial MinimalPolynomial
|
||||
{
|
||||
[Token(Token = "0x600A3DE")]
|
||||
[Address(Slot = "0")]
|
||||
get;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Math.Field
|
||||
{
|
||||
// Token: 0x02001ACC RID: 6860
|
||||
[Token(Token = "0x2001ACC")]
|
||||
internal class PrimeField : IFiniteField
|
||||
{
|
||||
// Token: 0x0600A3DF RID: 41951 RVA: 0x0022C214 File Offset: 0x0022A414
|
||||
[Token(Token = "0x600A3DF")]
|
||||
[Address(RVA = "0x493D90", Offset = "0x492D90", VA = "0x180493D90")]
|
||||
internal PrimeField(BigInteger characteristic)
|
||||
{
|
||||
this.characteristic = characteristic;
|
||||
}
|
||||
|
||||
// Token: 0x170019DA RID: 6618
|
||||
// (get) Token: 0x0600A3E0 RID: 41952 RVA: 0x0022C230 File Offset: 0x0022A430
|
||||
[Token(Token = "0x170019DA")]
|
||||
public virtual BigInteger Characteristic
|
||||
{
|
||||
[Token(Token = "0x600A3E0")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.characteristic;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170019DB RID: 6619
|
||||
// (get) Token: 0x0600A3E1 RID: 41953 RVA: 0x0022C244 File Offset: 0x0022A444
|
||||
[Token(Token = "0x170019DB")]
|
||||
public virtual int Dimension
|
||||
{
|
||||
[Token(Token = "0x600A3E1")]
|
||||
[Address(RVA = "0x4E8690", Offset = "0x4E7690", VA = "0x1804E8690", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600A3E2 RID: 41954 RVA: 0x0022C254 File Offset: 0x0022A454
|
||||
[Token(Token = "0x600A3E2")]
|
||||
[Address(RVA = "0x763EE0", Offset = "0x762EE0", VA = "0x180763EE0", Slot = "0")]
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (this != obj)
|
||||
{
|
||||
if (obj != 0 && obj != 0)
|
||||
{
|
||||
BigInteger bigInteger = this.characteristic;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x0600A3E3 RID: 41955 RVA: 0x0022C280 File Offset: 0x0022A480
|
||||
[Token(Token = "0x600A3E3")]
|
||||
[Address(RVA = "0x40F2B0", Offset = "0x40E2B0", VA = "0x18040F2B0", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
BigInteger bigInteger = this.characteristic;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04006C18 RID: 27672
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006C18")]
|
||||
protected readonly BigInteger characteristic;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user