175 lines
9.1 KiB
C#
175 lines
9.1 KiB
C#
using System;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
|
{
|
|
// Token: 0x02001BFB RID: 7163
|
|
[Token(Token = "0x2001BFB")]
|
|
public class Gost3410Parameters : ICipherParameters
|
|
{
|
|
// Token: 0x0600B31A RID: 45850 RVA: 0x00270344 File Offset: 0x0026E544
|
|
[Token(Token = "0x600B31A")]
|
|
[Address(RVA = "0x180A4A0", Offset = "0x18092A0", VA = "0x18180A4A0")]
|
|
public Gost3410Parameters(BigInteger p, BigInteger q, BigInteger a)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600B31A)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.Gost3410Parameters::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_3C:
|
|
stloc:ArgumentNullException(var_1_46, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("q")))
|
|
}
|
|
|
|
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: 0x0600B31B RID: 45851 RVA: 0x00270398 File Offset: 0x0026E598
|
|
[Token(Token = "0x600B31B")]
|
|
[Address(RVA = "0x180A5C0", Offset = "0x18093C0", VA = "0x18180A5C0")]
|
|
public Gost3410Parameters(BigInteger p, BigInteger q, BigInteger a, Gost3410ValidationParameters validation)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600B31B)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.Gost3410Parameters::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.Gost3410ValidationParameters)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_3A:
|
|
stloc:ArgumentNullException(var_1_44, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("q")))
|
|
}
|
|
|
|
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: 0x17001C2E RID: 7214
|
|
// (get) Token: 0x0600B31C RID: 45852 RVA: 0x002703EC File Offset: 0x0026E5EC
|
|
[Token(Token = "0x17001C2E")]
|
|
public BigInteger P
|
|
{
|
|
[Token(Token = "0x600B31C")]
|
|
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
|
get
|
|
{
|
|
return this.p;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001C2F RID: 7215
|
|
// (get) Token: 0x0600B31D RID: 45853 RVA: 0x00270400 File Offset: 0x0026E600
|
|
[Token(Token = "0x17001C2F")]
|
|
public BigInteger Q
|
|
{
|
|
[Token(Token = "0x600B31D")]
|
|
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
|
get
|
|
{
|
|
return this.q;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001C30 RID: 7216
|
|
// (get) Token: 0x0600B31E RID: 45854 RVA: 0x00270414 File Offset: 0x0026E614
|
|
[Token(Token = "0x17001C30")]
|
|
public BigInteger A
|
|
{
|
|
[Token(Token = "0x600B31E")]
|
|
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
|
get
|
|
{
|
|
return this.a;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001C31 RID: 7217
|
|
// (get) Token: 0x0600B31F RID: 45855 RVA: 0x00270428 File Offset: 0x0026E628
|
|
[Token(Token = "0x17001C31")]
|
|
public Gost3410ValidationParameters ValidationParameters
|
|
{
|
|
[Token(Token = "0x600B31F")]
|
|
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")]
|
|
get
|
|
{
|
|
return this.validation;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600B320 RID: 45856 RVA: 0x0027043C File Offset: 0x0026E63C
|
|
[Token(Token = "0x600B320")]
|
|
[Address(RVA = "0x180A380", Offset = "0x1809180", VA = "0x18180A380", Slot = "0")]
|
|
public override bool Equals(object obj)
|
|
{
|
|
if (obj != this)
|
|
{
|
|
if (obj != 0 && obj != 0)
|
|
{
|
|
BigInteger bigInteger = this.p;
|
|
BigInteger bigInteger2 = this.q;
|
|
BigInteger bigInteger3 = this.a;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
// Token: 0x0600B321 RID: 45857 RVA: 0x00270478 File Offset: 0x0026E678
|
|
[Token(Token = "0x600B321")]
|
|
[Address(RVA = "0x18052E0", Offset = "0x18040E0", VA = "0x1818052E0")]
|
|
protected bool Equals(Gost3410Parameters other)
|
|
{
|
|
BigInteger bigInteger = this.p;
|
|
BigInteger bigInteger2 = this.q;
|
|
BigInteger bigInteger3 = this.a;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600B322 RID: 45858 RVA: 0x002704A4 File Offset: 0x0026E6A4
|
|
[Token(Token = "0x600B322")]
|
|
[Address(RVA = "0x1805380", Offset = "0x1804180", VA = "0x181805380", Slot = "2")]
|
|
public override int GetHashCode()
|
|
{
|
|
this.p.Finalize();
|
|
this.q.Finalize();
|
|
this.a.Finalize();
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x040071E1 RID: 29153
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x40071E1")]
|
|
private readonly BigInteger p;
|
|
|
|
// Token: 0x040071E2 RID: 29154
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x40071E2")]
|
|
private readonly BigInteger q;
|
|
|
|
// Token: 0x040071E3 RID: 29155
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x40071E3")]
|
|
private readonly BigInteger a;
|
|
|
|
// Token: 0x040071E4 RID: 29156
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x40071E4")]
|
|
private readonly Gost3410ValidationParameters validation;
|
|
}
|
|
}
|