oh dear
This commit is contained in:
@@ -0,0 +1,272 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC
|
||||
{
|
||||
// Token: 0x020019F6 RID: 6646
|
||||
[Token(Token = "0x20019F6")]
|
||||
public abstract class ECFieldElement
|
||||
{
|
||||
// Token: 0x0600A08A RID: 41098
|
||||
[Token(Token = "0x600A08A")]
|
||||
[Address(Slot = "4")]
|
||||
public abstract BigInteger ToBigInteger();
|
||||
|
||||
// Token: 0x17001953 RID: 6483
|
||||
// (get) Token: 0x0600A08B RID: 41099
|
||||
[Token(Token = "0x17001953")]
|
||||
public abstract string FieldName
|
||||
{
|
||||
[Token(Token = "0x600A08B")]
|
||||
[Address(Slot = "5")]
|
||||
get;
|
||||
}
|
||||
|
||||
// Token: 0x17001954 RID: 6484
|
||||
// (get) Token: 0x0600A08C RID: 41100
|
||||
[Token(Token = "0x17001954")]
|
||||
public abstract int FieldSize
|
||||
{
|
||||
[Token(Token = "0x600A08C")]
|
||||
[Address(Slot = "6")]
|
||||
get;
|
||||
}
|
||||
|
||||
// Token: 0x0600A08D RID: 41101
|
||||
[Token(Token = "0x600A08D")]
|
||||
[Address(Slot = "7")]
|
||||
public abstract ECFieldElement Add(ECFieldElement b);
|
||||
|
||||
// Token: 0x0600A08E RID: 41102
|
||||
[Token(Token = "0x600A08E")]
|
||||
[Address(Slot = "8")]
|
||||
public abstract ECFieldElement AddOne();
|
||||
|
||||
// Token: 0x0600A08F RID: 41103
|
||||
[Token(Token = "0x600A08F")]
|
||||
[Address(Slot = "9")]
|
||||
public abstract ECFieldElement Subtract(ECFieldElement b);
|
||||
|
||||
// Token: 0x0600A090 RID: 41104
|
||||
[Token(Token = "0x600A090")]
|
||||
[Address(Slot = "10")]
|
||||
public abstract ECFieldElement Multiply(ECFieldElement b);
|
||||
|
||||
// Token: 0x0600A091 RID: 41105
|
||||
[Token(Token = "0x600A091")]
|
||||
[Address(Slot = "11")]
|
||||
public abstract ECFieldElement Divide(ECFieldElement b);
|
||||
|
||||
// Token: 0x0600A092 RID: 41106
|
||||
[Token(Token = "0x600A092")]
|
||||
[Address(Slot = "12")]
|
||||
public abstract ECFieldElement Negate();
|
||||
|
||||
// Token: 0x0600A093 RID: 41107
|
||||
[Token(Token = "0x600A093")]
|
||||
[Address(Slot = "13")]
|
||||
public abstract ECFieldElement Square();
|
||||
|
||||
// Token: 0x0600A094 RID: 41108
|
||||
[Token(Token = "0x600A094")]
|
||||
[Address(Slot = "14")]
|
||||
public abstract ECFieldElement Invert();
|
||||
|
||||
// Token: 0x0600A095 RID: 41109
|
||||
[Token(Token = "0x600A095")]
|
||||
[Address(Slot = "15")]
|
||||
public abstract ECFieldElement Sqrt();
|
||||
|
||||
// Token: 0x17001955 RID: 6485
|
||||
// (get) Token: 0x0600A096 RID: 41110 RVA: 0x002250DC File Offset: 0x002232DC
|
||||
[Token(Token = "0x17001955")]
|
||||
public virtual int BitLength
|
||||
{
|
||||
[Token(Token = "0x600A096")]
|
||||
[Address(RVA = "0x209E580", Offset = "0x209D380", VA = "0x18209E580", Slot = "16")]
|
||||
get
|
||||
{
|
||||
string text = this.ToString();
|
||||
int num;
|
||||
return num;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001956 RID: 6486
|
||||
// (get) Token: 0x0600A097 RID: 41111 RVA: 0x002250F8 File Offset: 0x002232F8
|
||||
[Token(Token = "0x17001956")]
|
||||
public virtual bool IsOne
|
||||
{
|
||||
[Token(Token = "0x600A097")]
|
||||
[Address(RVA = "0x209E5B0", Offset = "0x209D3B0", VA = "0x18209E5B0", Slot = "17")]
|
||||
get
|
||||
{
|
||||
return this.Sqrt() == (ulong)1L;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001957 RID: 6487
|
||||
// (get) Token: 0x0600A098 RID: 41112 RVA: 0x00225110 File Offset: 0x00223310
|
||||
[Token(Token = "0x17001957")]
|
||||
public virtual bool IsZero
|
||||
{
|
||||
[Token(Token = "0x600A098")]
|
||||
[Address(RVA = "0x209E5D0", Offset = "0x209D3D0", VA = "0x18209E5D0", Slot = "18")]
|
||||
get
|
||||
{
|
||||
string text = this.ToString();
|
||||
bool flag;
|
||||
return flag;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600A099 RID: 41113 RVA: 0x0022512C File Offset: 0x0022332C
|
||||
[Token(Token = "0x600A099")]
|
||||
[Address(RVA = "0x209E2C0", Offset = "0x209D0C0", VA = "0x18209E2C0", Slot = "19")]
|
||||
public virtual ECFieldElement MultiplyMinusProduct(ECFieldElement b, ECFieldElement x, ECFieldElement y)
|
||||
{
|
||||
ECFieldElement ecfieldElement = this.Subtract(b);
|
||||
ECFieldElement ecfieldElement2 = x.Subtract(y);
|
||||
BigInteger bigInteger = ecfieldElement.ToBigInteger();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600A09A RID: 41114 RVA: 0x00225158 File Offset: 0x00223358
|
||||
[Token(Token = "0x600A09A")]
|
||||
[Address(RVA = "0x209E340", Offset = "0x209D140", VA = "0x18209E340", Slot = "20")]
|
||||
public virtual ECFieldElement MultiplyPlusProduct(ECFieldElement b, ECFieldElement x, ECFieldElement y)
|
||||
{
|
||||
ECFieldElement ecfieldElement = this.Subtract(b);
|
||||
ECFieldElement ecfieldElement2 = x.Subtract(y);
|
||||
BigInteger bigInteger = ecfieldElement.ToBigInteger();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600A09B RID: 41115 RVA: 0x00225184 File Offset: 0x00223384
|
||||
[Token(Token = "0x600A09B")]
|
||||
[Address(RVA = "0x209E3C0", Offset = "0x209D1C0", VA = "0x18209E3C0", Slot = "21")]
|
||||
public virtual ECFieldElement SquareMinusProduct(ECFieldElement x, ECFieldElement y)
|
||||
{
|
||||
ECFieldElement ecfieldElement = this.Negate();
|
||||
ECFieldElement ecfieldElement2 = x.Subtract(y);
|
||||
BigInteger bigInteger = ecfieldElement.ToBigInteger();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600A09C RID: 41116 RVA: 0x002251AC File Offset: 0x002233AC
|
||||
[Token(Token = "0x600A09C")]
|
||||
[Address(RVA = "0x209E440", Offset = "0x209D240", VA = "0x18209E440", Slot = "22")]
|
||||
public virtual ECFieldElement SquarePlusProduct(ECFieldElement x, ECFieldElement y)
|
||||
{
|
||||
ECFieldElement ecfieldElement = this.Negate();
|
||||
ECFieldElement ecfieldElement2 = x.Subtract(y);
|
||||
BigInteger bigInteger = ecfieldElement.ToBigInteger();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600A09D RID: 41117 RVA: 0x002251D4 File Offset: 0x002233D4
|
||||
[Token(Token = "0x600A09D")]
|
||||
[Address(RVA = "0x209E4C0", Offset = "0x209D2C0", VA = "0x18209E4C0", Slot = "23")]
|
||||
public virtual ECFieldElement SquarePow(int pow)
|
||||
{
|
||||
int num = 0;
|
||||
ECFieldElement ecfieldElement;
|
||||
if (pow > 0)
|
||||
{
|
||||
ecfieldElement = this.Negate();
|
||||
num++;
|
||||
}
|
||||
return ecfieldElement;
|
||||
}
|
||||
|
||||
// Token: 0x0600A09E RID: 41118 RVA: 0x002251FC File Offset: 0x002233FC
|
||||
[Token(Token = "0x600A09E")]
|
||||
[Address(RVA = "0x209E510", Offset = "0x209D310", VA = "0x18209E510", Slot = "24")]
|
||||
public virtual bool TestBitZero()
|
||||
{
|
||||
string text = this.ToString();
|
||||
bool flag;
|
||||
return flag;
|
||||
}
|
||||
|
||||
// Token: 0x0600A09F RID: 41119 RVA: 0x0022521C File Offset: 0x0022341C
|
||||
[Token(Token = "0x600A09F")]
|
||||
[Address(RVA = "0x209E110", Offset = "0x209CF10", VA = "0x18209E110", Slot = "0")]
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600A09F)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.ECFieldElement::Equals(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_04:
|
||||
stloc:BigInteger(var_1_0C, call:BigInteger(ECFieldElement::ToBigInteger, ldloc:ECFieldElement(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: 0x0600A0A0 RID: 41120 RVA: 0x00225238 File Offset: 0x00223438
|
||||
[Token(Token = "0x600A0A0")]
|
||||
[Address(RVA = "0x209E1A0", Offset = "0x209CFA0", VA = "0x18209E1A0", Slot = "25")]
|
||||
public virtual bool Equals(ECFieldElement other)
|
||||
{
|
||||
if (this != other)
|
||||
{
|
||||
if (other != 0)
|
||||
{
|
||||
string text = this.ToString();
|
||||
string text2 = other.ToString();
|
||||
object obj = ((ICloneable)text).Clone();
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x0600A0A1 RID: 41121 RVA: 0x0022526C File Offset: 0x0022346C
|
||||
[Token(Token = "0x600A0A1")]
|
||||
[Address(RVA = "0x209E280", Offset = "0x209D080", VA = "0x18209E280", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
object obj = ((ICloneable)this.ToString()).Clone();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600A0A2 RID: 41122 RVA: 0x0022528C File Offset: 0x0022348C
|
||||
[Token(Token = "0x600A0A2")]
|
||||
[Address(RVA = "0x209E540", Offset = "0x209D340", VA = "0x18209E540", Slot = "3")]
|
||||
public override string ToString()
|
||||
{
|
||||
string text = this.ToString();
|
||||
string text2;
|
||||
return text2;
|
||||
}
|
||||
|
||||
// Token: 0x0600A0A3 RID: 41123 RVA: 0x002252A8 File Offset: 0x002234A8
|
||||
[Token(Token = "0x600A0A3")]
|
||||
[Address(RVA = "0x209E220", Offset = "0x209D020", VA = "0x18209E220", Slot = "26")]
|
||||
public virtual byte[] GetEncoded()
|
||||
{
|
||||
string fieldName = this.FieldName;
|
||||
string text = this.ToString();
|
||||
byte[] array;
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x0600A0A4 RID: 41124 RVA: 0x002252C4 File Offset: 0x002234C4
|
||||
[Token(Token = "0x600A0A4")]
|
||||
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
||||
protected ECFieldElement()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user