scripts
This commit is contained in:
@@ -0,0 +1,180 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf
|
||||
{
|
||||
// Token: 0x02001936 RID: 6454
|
||||
[Token(Token = "0x2001936")]
|
||||
[StructLayout(3)]
|
||||
public class PopoSigningKey : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AD26 RID: 44326 RVA: 0x002883B0 File Offset: 0x002865B0
|
||||
[Token(Token = "0x600AD26")]
|
||||
[Address(RVA = "0x1EE07D0", Offset = "0x1EDF1D0", VA = "0x181EE07D0")]
|
||||
private PopoSigningKey(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser2;
|
||||
do
|
||||
{
|
||||
base..ctor();
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
if (parser == 0 || parser == 0)
|
||||
{
|
||||
goto IL_3C;
|
||||
}
|
||||
parser2 = seq.Parser;
|
||||
}
|
||||
while (parser2 == 0);
|
||||
Asn1Object asn1Object;
|
||||
PopoSigningKeyInput instance = PopoSigningKeyInput.GetInstance(asn1Object);
|
||||
this.poposkInput = instance;
|
||||
IL_3C:
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
AlgorithmIdentifier algorithmIdentifier;
|
||||
this.algorithmIdentifier = algorithmIdentifier;
|
||||
Asn1SequenceParser parser4 = seq.Parser;
|
||||
DerBitString derBitString;
|
||||
this.signature = derBitString;
|
||||
}
|
||||
|
||||
// Token: 0x0600AD27 RID: 44327 RVA: 0x00288420 File Offset: 0x00286620
|
||||
[Token(Token = "0x600AD27")]
|
||||
[Address(RVA = "0x1EE0360", Offset = "0x1EDED60", VA = "0x181EE0360")]
|
||||
public static PopoSigningKey GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AD27)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf.PopoSigningKey BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf.PopoSigningKey::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_22:
|
||||
stloc:string(var_6_28, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_40, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_6_28)), 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: 0x0600AD28 RID: 44328 RVA: 0x00288470 File Offset: 0x00286670
|
||||
[Token(Token = "0x600AD28")]
|
||||
[Address(RVA = "0x1EE0550", Offset = "0x1EDEF50", VA = "0x181EE0550")]
|
||||
public static PopoSigningKey GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
return PopoSigningKey.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
||||
}
|
||||
|
||||
// Token: 0x0600AD29 RID: 44329 RVA: 0x0028848C File Offset: 0x0028668C
|
||||
[Token(Token = "0x600AD29")]
|
||||
[Address(RVA = "0xC54A80", Offset = "0xC53480", VA = "0x180C54A80")]
|
||||
public PopoSigningKey(PopoSigningKeyInput poposkIn, AlgorithmIdentifier aid, DerBitString signature)
|
||||
{
|
||||
this.poposkInput = poposkIn;
|
||||
this.algorithmIdentifier = aid;
|
||||
this.signature = signature;
|
||||
}
|
||||
|
||||
// Token: 0x17001B8D RID: 7053
|
||||
// (get) Token: 0x0600AD2A RID: 44330 RVA: 0x002884B4 File Offset: 0x002866B4
|
||||
[Token(Token = "0x17001B8D")]
|
||||
public virtual PopoSigningKeyInput PoposkInput
|
||||
{
|
||||
[Token(Token = "0x600AD2A")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.poposkInput;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001B8E RID: 7054
|
||||
// (get) Token: 0x0600AD2B RID: 44331 RVA: 0x002884C8 File Offset: 0x002866C8
|
||||
[Token(Token = "0x17001B8E")]
|
||||
public virtual AlgorithmIdentifier AlgorithmIdentifier
|
||||
{
|
||||
[Token(Token = "0x600AD2B")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.algorithmIdentifier;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001B8F RID: 7055
|
||||
// (get) Token: 0x0600AD2C RID: 44332 RVA: 0x002884DC File Offset: 0x002866DC
|
||||
[Token(Token = "0x17001B8F")]
|
||||
public virtual DerBitString Signature
|
||||
{
|
||||
[Token(Token = "0x600AD2C")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.signature;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AD2D RID: 44333 RVA: 0x002884F0 File Offset: 0x002866F0
|
||||
[Token(Token = "0x600AD2D")]
|
||||
[Address(RVA = "0x1EE0570", Offset = "0x1EDEF70", VA = "0x181EE0570", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
if (this.poposkInput != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
PopoSigningKeyInput popoSigningKeyInput = this.poposkInput;
|
||||
int num;
|
||||
int num2;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, num2, popoSigningKeyInput);
|
||||
num2 = 0;
|
||||
num = 0;
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derTaggedObject;
|
||||
asn1EncodableVector.Add(array);
|
||||
}
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
AlgorithmIdentifier algorithmIdentifier = this.algorithmIdentifier;
|
||||
if (algorithmIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = algorithmIdentifier;
|
||||
asn1EncodableVector.Add(array2);
|
||||
Asn1Encodable[] array3 = new Asn1Encodable[1];
|
||||
DerBitString derBitString = this.signature;
|
||||
if (derBitString != 0)
|
||||
{
|
||||
}
|
||||
array3[0] = derBitString;
|
||||
asn1EncodableVector.Add(array3);
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x040071FB RID: 29179
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40071FB")]
|
||||
private readonly PopoSigningKeyInput poposkInput;
|
||||
|
||||
// Token: 0x040071FC RID: 29180
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40071FC")]
|
||||
private readonly AlgorithmIdentifier algorithmIdentifier;
|
||||
|
||||
// Token: 0x040071FD RID: 29181
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40071FD")]
|
||||
private readonly DerBitString signature;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user