117 lines
5.6 KiB
C#
117 lines
5.6 KiB
C#
using System;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
|
{
|
|
// Token: 0x02001BDF RID: 7135
|
|
[Token(Token = "0x2001BDF")]
|
|
public class DHValidationParameters
|
|
{
|
|
// Token: 0x0600B26C RID: 45676 RVA: 0x0026E298 File Offset: 0x0026C498
|
|
[Token(Token = "0x600B26C")]
|
|
[Address(RVA = "0x18034B0", Offset = "0x18022B0", VA = "0x1818034B0")]
|
|
public DHValidationParameters(byte[] seed, int counter)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600B26C)
|
|
|
|
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 1660
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x0600B26D RID: 45677 RVA: 0x0026E2C4 File Offset: 0x0026C4C4
|
|
[Token(Token = "0x600B26D")]
|
|
[Address(RVA = "0x1803430", Offset = "0x1802230", VA = "0x181803430")]
|
|
public byte[] GetSeed()
|
|
{
|
|
byte[] array = this.seed;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x17001C07 RID: 7175
|
|
// (get) Token: 0x0600B26E RID: 45678 RVA: 0x0026E2E0 File Offset: 0x0026C4E0
|
|
[Token(Token = "0x17001C07")]
|
|
public int Counter
|
|
{
|
|
[Token(Token = "0x600B26E")]
|
|
[Address(RVA = "0x40B720", Offset = "0x40A520", VA = "0x18040B720")]
|
|
get
|
|
{
|
|
return this.counter;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600B26F RID: 45679 RVA: 0x0026E2F4 File Offset: 0x0026C4F4
|
|
[Token(Token = "0x600B26F")]
|
|
[Address(RVA = "0x1803210", Offset = "0x1802010", VA = "0x181803210", 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: 0x0600B270 RID: 45680 RVA: 0x0026E324 File Offset: 0x0026C524
|
|
[Token(Token = "0x600B270")]
|
|
[Address(RVA = "0x1803320", Offset = "0x1802120", VA = "0x181803320")]
|
|
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: 0x0600B271 RID: 45681 RVA: 0x0026E360 File Offset: 0x0026C560
|
|
[Token(Token = "0x600B271")]
|
|
[Address(RVA = "0x18033B0", Offset = "0x18021B0", VA = "0x1818033B0", Slot = "2")]
|
|
public override int GetHashCode()
|
|
{
|
|
int num = this.counter;
|
|
return Arrays.GetHashCode(this.seed);
|
|
}
|
|
|
|
// Token: 0x040071A6 RID: 29094
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x40071A6")]
|
|
private readonly byte[] seed;
|
|
|
|
// Token: 0x040071A7 RID: 29095
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x40071A7")]
|
|
private readonly int counter;
|
|
}
|
|
}
|