177 lines
9.3 KiB
C#
177 lines
9.3 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
|
{
|
|
// Token: 0x0200161E RID: 5662
|
|
[Token(Token = "0x200161E")]
|
|
[StructLayout(3)]
|
|
public class Gost3410Parameters : ICipherParameters
|
|
{
|
|
// Token: 0x06009740 RID: 38720 RVA: 0x00218D28 File Offset: 0x00216F28
|
|
[Token(Token = "0x6009740")]
|
|
[Address(RVA = "0x1DD98F0", Offset = "0x1DD82F0", VA = "0x181DD98F0")]
|
|
public Gost3410Parameters(BigInteger p, BigInteger q, BigInteger a)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06009740)
|
|
|
|
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: 0x06009741 RID: 38721 RVA: 0x00218D7C File Offset: 0x00216F7C
|
|
[Token(Token = "0x6009741")]
|
|
[Address(RVA = "0x1DD9A10", Offset = "0x1DD8410", VA = "0x181DD9A10")]
|
|
public Gost3410Parameters(BigInteger p, BigInteger q, BigInteger a, Gost3410ValidationParameters validation)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06009741)
|
|
|
|
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: 0x1700182D RID: 6189
|
|
// (get) Token: 0x06009742 RID: 38722 RVA: 0x00218DD0 File Offset: 0x00216FD0
|
|
[Token(Token = "0x1700182D")]
|
|
public BigInteger P
|
|
{
|
|
[Token(Token = "0x6009742")]
|
|
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
|
get
|
|
{
|
|
return this.p;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700182E RID: 6190
|
|
// (get) Token: 0x06009743 RID: 38723 RVA: 0x00218DE4 File Offset: 0x00216FE4
|
|
[Token(Token = "0x1700182E")]
|
|
public BigInteger Q
|
|
{
|
|
[Token(Token = "0x6009743")]
|
|
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
|
get
|
|
{
|
|
return this.q;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700182F RID: 6191
|
|
// (get) Token: 0x06009744 RID: 38724 RVA: 0x00218DF8 File Offset: 0x00216FF8
|
|
[Token(Token = "0x1700182F")]
|
|
public BigInteger A
|
|
{
|
|
[Token(Token = "0x6009744")]
|
|
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
|
get
|
|
{
|
|
return this.a;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001830 RID: 6192
|
|
// (get) Token: 0x06009745 RID: 38725 RVA: 0x00218E0C File Offset: 0x0021700C
|
|
[Token(Token = "0x17001830")]
|
|
public Gost3410ValidationParameters ValidationParameters
|
|
{
|
|
[Token(Token = "0x6009745")]
|
|
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230")]
|
|
get
|
|
{
|
|
return this.validation;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06009746 RID: 38726 RVA: 0x00218E20 File Offset: 0x00217020
|
|
[Token(Token = "0x6009746")]
|
|
[Address(RVA = "0x1DD97D0", Offset = "0x1DD81D0", VA = "0x181DD97D0", 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: 0x06009747 RID: 38727 RVA: 0x00218E5C File Offset: 0x0021705C
|
|
[Token(Token = "0x6009747")]
|
|
[Address(RVA = "0x1DD4700", Offset = "0x1DD3100", VA = "0x181DD4700")]
|
|
protected bool Equals(Gost3410Parameters other)
|
|
{
|
|
BigInteger bigInteger = this.p;
|
|
BigInteger bigInteger2 = this.q;
|
|
BigInteger bigInteger3 = this.a;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06009748 RID: 38728 RVA: 0x00218E88 File Offset: 0x00217088
|
|
[Token(Token = "0x6009748")]
|
|
[Address(RVA = "0x1DD47A0", Offset = "0x1DD31A0", VA = "0x181DD47A0", Slot = "2")]
|
|
public override int GetHashCode()
|
|
{
|
|
this.p.Finalize();
|
|
this.q.Finalize();
|
|
this.a.Finalize();
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0400639E RID: 25502
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400639E")]
|
|
private readonly BigInteger p;
|
|
|
|
// Token: 0x0400639F RID: 25503
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400639F")]
|
|
private readonly BigInteger q;
|
|
|
|
// Token: 0x040063A0 RID: 25504
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x40063A0")]
|
|
private readonly BigInteger a;
|
|
|
|
// Token: 0x040063A1 RID: 25505
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x40063A1")]
|
|
private readonly Gost3410ValidationParameters validation;
|
|
}
|
|
}
|