115 lines
5.7 KiB
C#
115 lines
5.7 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
|
{
|
|
// Token: 0x0200161A RID: 5658
|
|
[Token(Token = "0x200161A")]
|
|
[StructLayout(3)]
|
|
public class ElGamalPrivateKeyParameters : ElGamalKeyParameters
|
|
{
|
|
// Token: 0x0600972C RID: 38700 RVA: 0x002188F8 File Offset: 0x00216AF8
|
|
[Token(Token = "0x600972C")]
|
|
[Address(RVA = "0x1DD9020", Offset = "0x1DD7A20", VA = "0x181DD9020")]
|
|
public ElGamalPrivateKeyParameters(BigInteger x, ElGamalParameters parameters)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600972C)
|
|
|
|
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: 0x17001827 RID: 6183
|
|
// (get) Token: 0x0600972D RID: 38701 RVA: 0x0021892C File Offset: 0x00216B2C
|
|
[Token(Token = "0x17001827")]
|
|
public BigInteger X
|
|
{
|
|
[Token(Token = "0x600972D")]
|
|
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
|
get
|
|
{
|
|
return this.x;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600972E RID: 38702 RVA: 0x00218940 File Offset: 0x00216B40
|
|
[Token(Token = "0x600972E")]
|
|
[Address(RVA = "0x1DD8EA0", Offset = "0x1DD78A0", VA = "0x181DD8EA0", 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: 0x0600972F RID: 38703 RVA: 0x00218980 File Offset: 0x00216B80
|
|
[Token(Token = "0x600972F")]
|
|
[Address(RVA = "0x1DD8FA0", Offset = "0x1DD79A0", VA = "0x181DD8FA0")]
|
|
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: 0x06009730 RID: 38704 RVA: 0x002189BC File Offset: 0x00216BBC
|
|
[Token(Token = "0x6009730")]
|
|
[Address(RVA = "0x1DD4BE0", Offset = "0x1DD35E0", VA = "0x181DD4BE0", 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: 0x04006398 RID: 25496
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4006398")]
|
|
private readonly BigInteger x;
|
|
}
|
|
}
|