Files
27Aug2021-Cpp2IL-Dump/Assembly-CSharp/BestHTTP/SecureProtocol/Org/BouncyCastle/Crypto/Parameters/DHValidationParameters.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

117 lines
5.6 KiB
C#

using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
{
// Token: 0x02001CBF RID: 7359
[Token(Token = "0x2001CBF")]
public class DHValidationParameters
{
// Token: 0x0600B63A RID: 46650 RVA: 0x00277458 File Offset: 0x00275658
[Token(Token = "0x600B63A")]
[Address(RVA = "0x22D1DE0", Offset = "0x22D0DE0", VA = "0x1822D1DE0")]
public DHValidationParameters(byte[] seed, int counter)
{
/*
An exception occurred when decompiling this method (0600B63A)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.DHValidationParameters::.ctor(System.Byte[],System.Int32)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_12:
stloc:ArgumentNullException(var_0_1C, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("seed")))
}
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: 0x0600B63B RID: 46651 RVA: 0x00277484 File Offset: 0x00275684
[Token(Token = "0x600B63B")]
[Address(RVA = "0x22D1D60", Offset = "0x22D0D60", VA = "0x1822D1D60")]
public byte[] GetSeed()
{
byte[] array = this.seed;
throw new NullReferenceException();
}
// Token: 0x17001CA4 RID: 7332
// (get) Token: 0x0600B63C RID: 46652 RVA: 0x002774A0 File Offset: 0x002756A0
[Token(Token = "0x17001CA4")]
public int Counter
{
[Token(Token = "0x600B63C")]
[Address(RVA = "0x411540", Offset = "0x410540", VA = "0x180411540")]
get
{
return this.counter;
}
}
// Token: 0x0600B63D RID: 46653 RVA: 0x002774B4 File Offset: 0x002756B4
[Token(Token = "0x600B63D")]
[Address(RVA = "0x22D1B40", Offset = "0x22D0B40", VA = "0x1822D1B40", Slot = "0")]
public override bool Equals(object obj)
{
if (obj != this)
{
if (obj != 0)
{
int num = 0;
if (obj != 0 && this.counter == num)
{
byte[] array = this.seed;
bool flag;
return flag;
}
}
}
return true;
}
// Token: 0x0600B63E RID: 46654 RVA: 0x002774E4 File Offset: 0x002756E4
[Token(Token = "0x600B63E")]
[Address(RVA = "0x22D1C50", Offset = "0x22D0C50", VA = "0x1822D1C50")]
protected bool Equals(DHValidationParameters other)
{
int num = other.counter;
if (this.counter != num)
{
}
byte[] array = this.seed;
byte[] array2 = other.seed;
return Arrays.AreEqual(array, array2);
}
// Token: 0x0600B63F RID: 46655 RVA: 0x00277520 File Offset: 0x00275720
[Token(Token = "0x600B63F")]
[Address(RVA = "0x22D1CE0", Offset = "0x22D0CE0", VA = "0x1822D1CE0", Slot = "2")]
public override int GetHashCode()
{
int num = this.counter;
return Arrays.GetHashCode(this.seed);
}
// Token: 0x0400735F RID: 29535
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x400735F")]
private readonly byte[] seed;
// Token: 0x04007360 RID: 29536
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4007360")]
private readonly int counter;
}
}