249 lines
11 KiB
C#
249 lines
11 KiB
C#
using System;
|
|
using System.Collections;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X9
|
|
{
|
|
// Token: 0x02001DC5 RID: 7621
|
|
[Token(Token = "0x2001DC5")]
|
|
public class DHDomainParameters : Asn1Encodable
|
|
{
|
|
// Token: 0x0600C103 RID: 49411 RVA: 0x002BEA98 File Offset: 0x002BCC98
|
|
[Token(Token = "0x600C103")]
|
|
[Address(RVA = "0x2B34ED0", Offset = "0x2B33CD0", VA = "0x182B34ED0")]
|
|
public static DHDomainParameters GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
|
{
|
|
return DHDomainParameters.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
|
}
|
|
|
|
// Token: 0x0600C104 RID: 49412 RVA: 0x002BEAB4 File Offset: 0x002BCCB4
|
|
[Token(Token = "0x600C104")]
|
|
[Address(RVA = "0x2B34EF0", Offset = "0x2B33CF0", VA = "0x182B34EF0")]
|
|
public static DHDomainParameters GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600C104)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X9.DHDomainParameters BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X9.DHDomainParameters::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_44, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid DHDomainParameters: "), ldloc:string(var_6_2C)), ldstr:string("obj")))
|
|
}
|
|
|
|
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: 0x0600C105 RID: 49413 RVA: 0x002BEB08 File Offset: 0x002BCD08
|
|
[Token(Token = "0x600C105")]
|
|
[Address(RVA = "0x2B35440", Offset = "0x2B34240", VA = "0x182B35440")]
|
|
public DHDomainParameters(DerInteger p, DerInteger g, DerInteger q, DerInteger j, DHValidationParms validationParms)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600C105)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X9.DHDomainParameters::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X9.DHValidationParms)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_41:
|
|
stloc:ArgumentNullException(var_1_4B, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("g")))
|
|
}
|
|
|
|
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: 0x0600C106 RID: 49414 RVA: 0x002BEB60 File Offset: 0x002BCD60
|
|
[Token(Token = "0x600C106")]
|
|
[Address(RVA = "0x2B35560", Offset = "0x2B34360", VA = "0x182B35560")]
|
|
private DHDomainParameters(Asn1Sequence seq)
|
|
{
|
|
IEnumerator enumerator = seq.GetEnumerator();
|
|
DerInteger instance = DerInteger.GetInstance(DHDomainParameters.GetNext(enumerator));
|
|
this.p = instance;
|
|
DerInteger instance2 = DerInteger.GetInstance(DHDomainParameters.GetNext(enumerator));
|
|
this.g = instance2;
|
|
DerInteger instance3 = DerInteger.GetInstance(DHDomainParameters.GetNext(enumerator));
|
|
this.q = instance3;
|
|
Asn1Encodable next = DHDomainParameters.GetNext(enumerator);
|
|
if (next != 0)
|
|
{
|
|
if (next != 0)
|
|
{
|
|
DerInteger instance4 = DerInteger.GetInstance(next);
|
|
this.j = instance4;
|
|
Asn1Encodable next2 = DHDomainParameters.GetNext(enumerator);
|
|
}
|
|
if (next != 0)
|
|
{
|
|
DHValidationParms instance5 = DHValidationParms.GetInstance(next.ToAsn1Object());
|
|
this.validationParms = instance5;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600C107 RID: 49415 RVA: 0x002BEC04 File Offset: 0x002BCE04
|
|
[Token(Token = "0x600C107")]
|
|
[Address(RVA = "0x2B350F0", Offset = "0x2B33EF0", VA = "0x182B350F0")]
|
|
private static Asn1Encodable GetNext(IEnumerator e)
|
|
{
|
|
while (e == 0)
|
|
{
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x17001DBD RID: 7613
|
|
// (get) Token: 0x0600C108 RID: 49416 RVA: 0x002BEC20 File Offset: 0x002BCE20
|
|
[Token(Token = "0x17001DBD")]
|
|
public DerInteger P
|
|
{
|
|
[Token(Token = "0x600C108")]
|
|
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
|
get
|
|
{
|
|
return this.p;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001DBE RID: 7614
|
|
// (get) Token: 0x0600C109 RID: 49417 RVA: 0x002BEC34 File Offset: 0x002BCE34
|
|
[Token(Token = "0x17001DBE")]
|
|
public DerInteger G
|
|
{
|
|
[Token(Token = "0x600C109")]
|
|
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
|
get
|
|
{
|
|
return this.g;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001DBF RID: 7615
|
|
// (get) Token: 0x0600C10A RID: 49418 RVA: 0x002BEC48 File Offset: 0x002BCE48
|
|
[Token(Token = "0x17001DBF")]
|
|
public DerInteger Q
|
|
{
|
|
[Token(Token = "0x600C10A")]
|
|
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
|
get
|
|
{
|
|
return this.q;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001DC0 RID: 7616
|
|
// (get) Token: 0x0600C10B RID: 49419 RVA: 0x002BEC5C File Offset: 0x002BCE5C
|
|
[Token(Token = "0x17001DC0")]
|
|
public DerInteger J
|
|
{
|
|
[Token(Token = "0x600C10B")]
|
|
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")]
|
|
get
|
|
{
|
|
return this.j;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001DC1 RID: 7617
|
|
// (get) Token: 0x0600C10C RID: 49420 RVA: 0x002BEC70 File Offset: 0x002BCE70
|
|
[Token(Token = "0x17001DC1")]
|
|
public DHValidationParms ValidationParms
|
|
{
|
|
[Token(Token = "0x600C10C")]
|
|
[Address(RVA = "0x3FA180", Offset = "0x3F8F80", VA = "0x1803FA180")]
|
|
get
|
|
{
|
|
return this.validationParms;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600C10D RID: 49421 RVA: 0x002BEC84 File Offset: 0x002BCE84
|
|
[Token(Token = "0x600C10D")]
|
|
[Address(RVA = "0x2B351A0", Offset = "0x2B33FA0", VA = "0x182B351A0", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
Asn1Encodable[] array = new Asn1Encodable[3];
|
|
DerInteger derInteger = this.p;
|
|
if (derInteger != 0)
|
|
{
|
|
}
|
|
array[0] = derInteger;
|
|
DerInteger derInteger2 = this.g;
|
|
if (derInteger2 != 0)
|
|
{
|
|
}
|
|
array[1] = derInteger2;
|
|
DerInteger derInteger3 = this.q;
|
|
if (derInteger3 != 0)
|
|
{
|
|
}
|
|
array[2] = derInteger3;
|
|
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
|
if (this.j != (ulong)0L)
|
|
{
|
|
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
|
DerInteger derInteger4 = this.j;
|
|
if (derInteger4 != 0)
|
|
{
|
|
}
|
|
array2[0] = derInteger4;
|
|
asn1EncodableVector.Add(array2);
|
|
}
|
|
if (this.validationParms != (ulong)0L)
|
|
{
|
|
Asn1Encodable[] array3 = new Asn1Encodable[1];
|
|
DHValidationParms dhvalidationParms = this.validationParms;
|
|
if (dhvalidationParms != 0)
|
|
{
|
|
}
|
|
array3[0] = dhvalidationParms;
|
|
asn1EncodableVector.Add(array3);
|
|
}
|
|
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x040079D7 RID: 31191
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x40079D7")]
|
|
private readonly DerInteger p;
|
|
|
|
// Token: 0x040079D8 RID: 31192
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x40079D8")]
|
|
private readonly DerInteger g;
|
|
|
|
// Token: 0x040079D9 RID: 31193
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x40079D9")]
|
|
private readonly DerInteger q;
|
|
|
|
// Token: 0x040079DA RID: 31194
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x40079DA")]
|
|
private readonly DerInteger j;
|
|
|
|
// Token: 0x040079DB RID: 31195
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x40079DB")]
|
|
private readonly DHValidationParms validationParms;
|
|
}
|
|
}
|