scripts
This commit is contained in:
+250
@@ -0,0 +1,250 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X9
|
||||
{
|
||||
// Token: 0x020017E8 RID: 6120
|
||||
[Token(Token = "0x20017E8")]
|
||||
[StructLayout(3)]
|
||||
public class DHDomainParameters : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600A529 RID: 42281 RVA: 0x002664B8 File Offset: 0x002646B8
|
||||
[Token(Token = "0x600A529")]
|
||||
[Address(RVA = "0x27733B0", Offset = "0x2771DB0", VA = "0x1827733B0")]
|
||||
public static DHDomainParameters GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
return DHDomainParameters.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
||||
}
|
||||
|
||||
// Token: 0x0600A52A RID: 42282 RVA: 0x002664D4 File Offset: 0x002646D4
|
||||
[Token(Token = "0x600A52A")]
|
||||
[Address(RVA = "0x27733D0", Offset = "0x2771DD0", VA = "0x1827733D0")]
|
||||
public static DHDomainParameters GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600A52A)
|
||||
|
||||
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: 0x0600A52B RID: 42283 RVA: 0x00266528 File Offset: 0x00264728
|
||||
[Token(Token = "0x600A52B")]
|
||||
[Address(RVA = "0x2773920", Offset = "0x2772320", VA = "0x182773920")]
|
||||
public DHDomainParameters(DerInteger p, DerInteger g, DerInteger q, DerInteger j, DHValidationParms validationParms)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600A52B)
|
||||
|
||||
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: 0x0600A52C RID: 42284 RVA: 0x00266580 File Offset: 0x00264780
|
||||
[Token(Token = "0x600A52C")]
|
||||
[Address(RVA = "0x2773A40", Offset = "0x2772440", VA = "0x182773A40")]
|
||||
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: 0x0600A52D RID: 42285 RVA: 0x00266624 File Offset: 0x00264824
|
||||
[Token(Token = "0x600A52D")]
|
||||
[Address(RVA = "0x27735D0", Offset = "0x2771FD0", VA = "0x1827735D0")]
|
||||
private static Asn1Encodable GetNext(IEnumerator e)
|
||||
{
|
||||
while (e == 0)
|
||||
{
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x170019BC RID: 6588
|
||||
// (get) Token: 0x0600A52E RID: 42286 RVA: 0x00266640 File Offset: 0x00264840
|
||||
[Token(Token = "0x170019BC")]
|
||||
public DerInteger P
|
||||
{
|
||||
[Token(Token = "0x600A52E")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.p;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170019BD RID: 6589
|
||||
// (get) Token: 0x0600A52F RID: 42287 RVA: 0x00266654 File Offset: 0x00264854
|
||||
[Token(Token = "0x170019BD")]
|
||||
public DerInteger G
|
||||
{
|
||||
[Token(Token = "0x600A52F")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.g;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170019BE RID: 6590
|
||||
// (get) Token: 0x0600A530 RID: 42288 RVA: 0x00266668 File Offset: 0x00264868
|
||||
[Token(Token = "0x170019BE")]
|
||||
public DerInteger Q
|
||||
{
|
||||
[Token(Token = "0x600A530")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this.q;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170019BF RID: 6591
|
||||
// (get) Token: 0x0600A531 RID: 42289 RVA: 0x0026667C File Offset: 0x0026487C
|
||||
[Token(Token = "0x170019BF")]
|
||||
public DerInteger J
|
||||
{
|
||||
[Token(Token = "0x600A531")]
|
||||
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230")]
|
||||
get
|
||||
{
|
||||
return this.j;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170019C0 RID: 6592
|
||||
// (get) Token: 0x0600A532 RID: 42290 RVA: 0x00266690 File Offset: 0x00264890
|
||||
[Token(Token = "0x170019C0")]
|
||||
public DHValidationParms ValidationParms
|
||||
{
|
||||
[Token(Token = "0x600A532")]
|
||||
[Address(RVA = "0x3C1250", Offset = "0x3BFC50", VA = "0x1803C1250")]
|
||||
get
|
||||
{
|
||||
return this.validationParms;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600A533 RID: 42291 RVA: 0x002666A4 File Offset: 0x002648A4
|
||||
[Token(Token = "0x600A533")]
|
||||
[Address(RVA = "0x2773680", Offset = "0x2772080", VA = "0x182773680", 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: 0x04006B94 RID: 27540
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006B94")]
|
||||
private readonly DerInteger p;
|
||||
|
||||
// Token: 0x04006B95 RID: 27541
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4006B95")]
|
||||
private readonly DerInteger g;
|
||||
|
||||
// Token: 0x04006B96 RID: 27542
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4006B96")]
|
||||
private readonly DerInteger q;
|
||||
|
||||
// Token: 0x04006B97 RID: 27543
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4006B97")]
|
||||
private readonly DerInteger j;
|
||||
|
||||
// Token: 0x04006B98 RID: 27544
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4006B98")]
|
||||
private readonly DHValidationParms validationParms;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user