179 lines
7.5 KiB
C#
179 lines
7.5 KiB
C#
using System;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf
|
|
{
|
|
// Token: 0x02001F13 RID: 7955
|
|
[Token(Token = "0x2001F13")]
|
|
public class PopoSigningKey : Asn1Encodable
|
|
{
|
|
// Token: 0x0600C900 RID: 51456 RVA: 0x002E0890 File Offset: 0x002DEA90
|
|
[Token(Token = "0x600C900")]
|
|
[Address(RVA = "0x188D500", Offset = "0x188C300", VA = "0x18188D500")]
|
|
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: 0x0600C901 RID: 51457 RVA: 0x002E0900 File Offset: 0x002DEB00
|
|
[Token(Token = "0x600C901")]
|
|
[Address(RVA = "0x188D090", Offset = "0x188BE90", VA = "0x18188D090")]
|
|
public static PopoSigningKey GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600C901)
|
|
|
|
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: 0x0600C902 RID: 51458 RVA: 0x002E0950 File Offset: 0x002DEB50
|
|
[Token(Token = "0x600C902")]
|
|
[Address(RVA = "0x188D280", Offset = "0x188C080", VA = "0x18188D280")]
|
|
public static PopoSigningKey GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
|
{
|
|
return PopoSigningKey.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
|
}
|
|
|
|
// Token: 0x0600C903 RID: 51459 RVA: 0x002E096C File Offset: 0x002DEB6C
|
|
[Token(Token = "0x600C903")]
|
|
[Address(RVA = "0xECF220", Offset = "0xECE020", VA = "0x180ECF220")]
|
|
public PopoSigningKey(PopoSigningKeyInput poposkIn, AlgorithmIdentifier aid, DerBitString signature)
|
|
{
|
|
this.poposkInput = poposkIn;
|
|
this.algorithmIdentifier = aid;
|
|
this.signature = signature;
|
|
}
|
|
|
|
// Token: 0x17001F8E RID: 8078
|
|
// (get) Token: 0x0600C904 RID: 51460 RVA: 0x002E0994 File Offset: 0x002DEB94
|
|
[Token(Token = "0x17001F8E")]
|
|
public virtual PopoSigningKeyInput PoposkInput
|
|
{
|
|
[Token(Token = "0x600C904")]
|
|
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
|
|
get
|
|
{
|
|
return this.poposkInput;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001F8F RID: 8079
|
|
// (get) Token: 0x0600C905 RID: 51461 RVA: 0x002E09A8 File Offset: 0x002DEBA8
|
|
[Token(Token = "0x17001F8F")]
|
|
public virtual AlgorithmIdentifier AlgorithmIdentifier
|
|
{
|
|
[Token(Token = "0x600C905")]
|
|
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
|
|
get
|
|
{
|
|
return this.algorithmIdentifier;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001F90 RID: 8080
|
|
// (get) Token: 0x0600C906 RID: 51462 RVA: 0x002E09BC File Offset: 0x002DEBBC
|
|
[Token(Token = "0x17001F90")]
|
|
public virtual DerBitString Signature
|
|
{
|
|
[Token(Token = "0x600C906")]
|
|
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400", Slot = "8")]
|
|
get
|
|
{
|
|
return this.signature;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600C907 RID: 51463 RVA: 0x002E09D0 File Offset: 0x002DEBD0
|
|
[Token(Token = "0x600C907")]
|
|
[Address(RVA = "0x188D2A0", Offset = "0x188C0A0", VA = "0x18188D2A0", 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: 0x0400803E RID: 32830
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400803E")]
|
|
private readonly PopoSigningKeyInput poposkInput;
|
|
|
|
// Token: 0x0400803F RID: 32831
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400803F")]
|
|
private readonly AlgorithmIdentifier algorithmIdentifier;
|
|
|
|
// Token: 0x04008040 RID: 32832
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4008040")]
|
|
private readonly DerBitString signature;
|
|
}
|
|
}
|