113 lines
5.6 KiB
C#
113 lines
5.6 KiB
C#
using System;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
|
{
|
|
// Token: 0x02001CD7 RID: 7383
|
|
[Token(Token = "0x2001CD7")]
|
|
public class ElGamalPrivateKeyParameters : ElGamalKeyParameters
|
|
{
|
|
// Token: 0x0600B6D4 RID: 46804 RVA: 0x002790D4 File Offset: 0x002772D4
|
|
[Token(Token = "0x600B6D4")]
|
|
[Address(RVA = "0x22D7C70", Offset = "0x22D6C70", VA = "0x1822D7C70")]
|
|
public ElGamalPrivateKeyParameters(BigInteger x, ElGamalParameters parameters)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600B6D4)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.ElGamalPrivateKeyParameters::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.ElGamalParameters)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_1A:
|
|
stloc:ArgumentNullException(var_0_24, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("x")))
|
|
}
|
|
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.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: 0x17001CC5 RID: 7365
|
|
// (get) Token: 0x0600B6D5 RID: 46805 RVA: 0x00279108 File Offset: 0x00277308
|
|
[Token(Token = "0x17001CC5")]
|
|
public BigInteger X
|
|
{
|
|
[Token(Token = "0x600B6D5")]
|
|
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
|
get
|
|
{
|
|
return this.x;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600B6D6 RID: 46806 RVA: 0x0027911C File Offset: 0x0027731C
|
|
[Token(Token = "0x600B6D6")]
|
|
[Address(RVA = "0x22D7AF0", Offset = "0x22D6AF0", VA = "0x1822D7AF0", Slot = "0")]
|
|
public override bool Equals(object obj)
|
|
{
|
|
if (obj != this)
|
|
{
|
|
if (obj != 0)
|
|
{
|
|
int num = 0;
|
|
if (obj != 0)
|
|
{
|
|
BigInteger bigInteger = this.x;
|
|
if (num != 0 && object.Equals(this.parameters, bigInteger))
|
|
{
|
|
bool flag;
|
|
return flag;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
// Token: 0x0600B6D7 RID: 46807 RVA: 0x0027915C File Offset: 0x0027735C
|
|
[Token(Token = "0x600B6D7")]
|
|
[Address(RVA = "0x22D7BF0", Offset = "0x22D6BF0", VA = "0x1822D7BF0")]
|
|
protected bool Equals(ElGamalPrivateKeyParameters other)
|
|
{
|
|
ElGamalParameters parameters;
|
|
do
|
|
{
|
|
BigInteger bigInteger = other.x;
|
|
parameters = other.parameters;
|
|
}
|
|
while (!object.Equals(this.parameters, parameters));
|
|
return base.Equals(other);
|
|
}
|
|
|
|
// Token: 0x0600B6D8 RID: 46808 RVA: 0x00279198 File Offset: 0x00277398
|
|
[Token(Token = "0x600B6D8")]
|
|
[Address(RVA = "0x22D3860", Offset = "0x22D2860", VA = "0x1822D3860", Slot = "2")]
|
|
public override int GetHashCode()
|
|
{
|
|
this.x.Finalize();
|
|
int hashCode = base.GetHashCode();
|
|
ElGamalParameters parameters = this.parameters;
|
|
if (parameters != 0)
|
|
{
|
|
parameters.Finalize();
|
|
}
|
|
return hashCode;
|
|
}
|
|
|
|
// Token: 0x04007394 RID: 29588
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4007394")]
|
|
private readonly BigInteger x;
|
|
}
|
|
}
|