116 lines
5.3 KiB
C#
116 lines
5.3 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
|
{
|
|
// Token: 0x02002049 RID: 8265
|
|
[Token(Token = "0x2002049")]
|
|
public class ProtectedPart : Asn1Encodable
|
|
{
|
|
// Token: 0x0600CF4C RID: 53068 RVA: 0x002F2578 File Offset: 0x002F0778
|
|
[Token(Token = "0x600CF4C")]
|
|
[Address(RVA = "0x2FF07A0", Offset = "0x2FEF7A0", VA = "0x182FF07A0")]
|
|
private ProtectedPart(Asn1Sequence seq)
|
|
{
|
|
Asn1SequenceParser parser = seq.Parser;
|
|
PkiHeader pkiHeader;
|
|
this.header = pkiHeader;
|
|
Asn1SequenceParser parser2 = seq.Parser;
|
|
PkiBody pkiBody;
|
|
this.body = pkiBody;
|
|
}
|
|
|
|
// Token: 0x0600CF4D RID: 53069 RVA: 0x002F25B0 File Offset: 0x002F07B0
|
|
[Token(Token = "0x600CF4D")]
|
|
[Address(RVA = "0x2FF0420", Offset = "0x2FEF420", VA = "0x182FF0420")]
|
|
public static ProtectedPart GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CF4D)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.ProtectedPart BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.ProtectedPart::GetInstance(System.Object)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_2E:
|
|
stloc:string(var_8_34, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
|
stloc:ArgumentException(var_9_4C, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_8_34)), 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: 0x0600CF4E RID: 53070 RVA: 0x002F260C File Offset: 0x002F080C
|
|
[Token(Token = "0x600CF4E")]
|
|
[Address(RVA = "0x4714F0", Offset = "0x4704F0", VA = "0x1804714F0")]
|
|
public ProtectedPart(PkiHeader header, PkiBody body)
|
|
{
|
|
this.header = header;
|
|
this.body = body;
|
|
}
|
|
|
|
// Token: 0x170020EE RID: 8430
|
|
// (get) Token: 0x0600CF4F RID: 53071 RVA: 0x002F2630 File Offset: 0x002F0830
|
|
[Token(Token = "0x170020EE")]
|
|
public virtual PkiHeader Header
|
|
{
|
|
[Token(Token = "0x600CF4F")]
|
|
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
|
get
|
|
{
|
|
return this.header;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170020EF RID: 8431
|
|
// (get) Token: 0x0600CF50 RID: 53072 RVA: 0x002F2644 File Offset: 0x002F0844
|
|
[Token(Token = "0x170020EF")]
|
|
public virtual PkiBody Body
|
|
{
|
|
[Token(Token = "0x600CF50")]
|
|
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
|
get
|
|
{
|
|
return this.body;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CF51 RID: 53073 RVA: 0x002F2658 File Offset: 0x002F0858
|
|
[Token(Token = "0x600CF51")]
|
|
[Address(RVA = "0x2FF0690", Offset = "0x2FEF690", VA = "0x182FF0690", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
Asn1Encodable[] array = new Asn1Encodable[2];
|
|
PkiHeader pkiHeader = this.header;
|
|
if (pkiHeader != 0)
|
|
{
|
|
}
|
|
array[0] = pkiHeader;
|
|
PkiBody pkiBody = this.body;
|
|
if (pkiBody != 0)
|
|
{
|
|
}
|
|
array[1] = pkiBody;
|
|
DerSequence derSequence = new DerSequence(array);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x04008362 RID: 33634
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4008362")]
|
|
private readonly PkiHeader header;
|
|
|
|
// Token: 0x04008363 RID: 33635
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4008363")]
|
|
private readonly PkiBody body;
|
|
}
|
|
}
|