207 lines
10 KiB
C#
207 lines
10 KiB
C#
using System;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.CryptoPro
|
|
{
|
|
// Token: 0x02001EFD RID: 7933
|
|
[Token(Token = "0x2001EFD")]
|
|
public class ECGost3410ParamSetParameters : Asn1Encodable
|
|
{
|
|
// Token: 0x0600C85E RID: 51294 RVA: 0x002DE490 File Offset: 0x002DC690
|
|
[Token(Token = "0x600C85E")]
|
|
[Address(RVA = "0x1887620", Offset = "0x1886420", VA = "0x181887620")]
|
|
public static ECGost3410ParamSetParameters GetInstance(Asn1TaggedObject obj, bool explicitly)
|
|
{
|
|
return ECGost3410ParamSetParameters.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
|
}
|
|
|
|
// Token: 0x0600C85F RID: 51295 RVA: 0x002DE4AC File Offset: 0x002DC6AC
|
|
[Token(Token = "0x600C85F")]
|
|
[Address(RVA = "0x1887430", Offset = "0x1886230", VA = "0x181887430")]
|
|
public static ECGost3410ParamSetParameters GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600C85F)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.CryptoPro.ECGost3410ParamSetParameters BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.CryptoPro.ECGost3410ParamSetParameters::GetInstance(System.Object)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_26:
|
|
stloc:string(var_6_2C, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
|
stloc:ArgumentException(var_7_3F, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid GOST3410Parameter: "), ldloc:string(var_6_2C))))
|
|
}
|
|
|
|
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: 0x0600C860 RID: 51296 RVA: 0x002DE4FC File Offset: 0x002DC6FC
|
|
[Token(Token = "0x600C860")]
|
|
[Address(RVA = "0x1887A30", Offset = "0x1886830", VA = "0x181887A30")]
|
|
public ECGost3410ParamSetParameters(BigInteger a, BigInteger b, BigInteger p, BigInteger q, int x, BigInteger y)
|
|
{
|
|
DerInteger derInteger = new DerInteger(a);
|
|
this.a = derInteger;
|
|
DerInteger derInteger2 = new DerInteger(b);
|
|
this.b = derInteger2;
|
|
DerInteger derInteger3 = new DerInteger(p);
|
|
this.p = derInteger3;
|
|
DerInteger derInteger4;
|
|
this.q = derInteger4;
|
|
DerInteger derInteger5;
|
|
this.x = derInteger5;
|
|
DerInteger derInteger6;
|
|
this.y = derInteger6;
|
|
}
|
|
|
|
// Token: 0x0600C861 RID: 51297 RVA: 0x002DE550 File Offset: 0x002DC750
|
|
[Token(Token = "0x600C861")]
|
|
[Address(RVA = "0x18878A0", Offset = "0x18866A0", VA = "0x1818878A0")]
|
|
public ECGost3410ParamSetParameters(Asn1Sequence seq)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600C861)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.CryptoPro.ECGost3410ParamSetParameters::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_70:
|
|
stloc:ArgumentException(var_13_7F, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Wrong number of elements in sequence"), ldstr:string("seq")))
|
|
}
|
|
|
|
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: 0x17001F5B RID: 8027
|
|
// (get) Token: 0x0600C862 RID: 51298 RVA: 0x002DE5E0 File Offset: 0x002DC7E0
|
|
[Token(Token = "0x17001F5B")]
|
|
public BigInteger P
|
|
{
|
|
[Token(Token = "0x600C862")]
|
|
[Address(RVA = "0x1887BE0", Offset = "0x18869E0", VA = "0x181887BE0")]
|
|
get
|
|
{
|
|
byte[] bytes = this.p.bytes;
|
|
return new BigInteger(1, bytes);
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001F5C RID: 8028
|
|
// (get) Token: 0x0600C863 RID: 51299 RVA: 0x002DE608 File Offset: 0x002DC808
|
|
[Token(Token = "0x17001F5C")]
|
|
public BigInteger Q
|
|
{
|
|
[Token(Token = "0x600C863")]
|
|
[Address(RVA = "0x1887C50", Offset = "0x1886A50", VA = "0x181887C50")]
|
|
get
|
|
{
|
|
byte[] bytes = this.q.bytes;
|
|
return new BigInteger(1, bytes);
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001F5D RID: 8029
|
|
// (get) Token: 0x0600C864 RID: 51300 RVA: 0x002DE630 File Offset: 0x002DC830
|
|
[Token(Token = "0x17001F5D")]
|
|
public BigInteger A
|
|
{
|
|
[Token(Token = "0x600C864")]
|
|
[Address(RVA = "0x1887B70", Offset = "0x1886970", VA = "0x181887B70")]
|
|
get
|
|
{
|
|
byte[] bytes = this.a.bytes;
|
|
return new BigInteger(1, bytes);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600C865 RID: 51301 RVA: 0x002DE658 File Offset: 0x002DC858
|
|
[Token(Token = "0x600C865")]
|
|
[Address(RVA = "0x1887640", Offset = "0x1886440", VA = "0x181887640", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
Asn1Encodable[] array = new Asn1Encodable[6];
|
|
DerInteger derInteger = this.a;
|
|
if (derInteger != 0)
|
|
{
|
|
}
|
|
array[0] = derInteger;
|
|
DerInteger derInteger2 = this.b;
|
|
if (derInteger2 != 0)
|
|
{
|
|
}
|
|
array[1] = derInteger2;
|
|
DerInteger derInteger3 = this.p;
|
|
if (derInteger3 != 0)
|
|
{
|
|
}
|
|
array[2] = derInteger3;
|
|
DerInteger derInteger4 = this.q;
|
|
if (derInteger4 != 0)
|
|
{
|
|
}
|
|
array[3] = derInteger4;
|
|
DerInteger derInteger5 = this.x;
|
|
if (derInteger5 != 0)
|
|
{
|
|
}
|
|
array[4] = derInteger5;
|
|
DerInteger derInteger6 = this.y;
|
|
if (derInteger6 != 0)
|
|
{
|
|
}
|
|
array[5] = derInteger6;
|
|
DerSequence derSequence = new DerSequence(array);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x04007FE6 RID: 32742
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4007FE6")]
|
|
internal readonly DerInteger p;
|
|
|
|
// Token: 0x04007FE7 RID: 32743
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4007FE7")]
|
|
internal readonly DerInteger q;
|
|
|
|
// Token: 0x04007FE8 RID: 32744
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4007FE8")]
|
|
internal readonly DerInteger a;
|
|
|
|
// Token: 0x04007FE9 RID: 32745
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4007FE9")]
|
|
internal readonly DerInteger b;
|
|
|
|
// Token: 0x04007FEA RID: 32746
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4007FEA")]
|
|
internal readonly DerInteger x;
|
|
|
|
// Token: 0x04007FEB RID: 32747
|
|
[FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x4007FEB")]
|
|
internal readonly DerInteger y;
|
|
}
|
|
}
|