Files
27Aug2021-Cpp2IL-Dump/Assembly-CSharp/BestHTTP/SecureProtocol/Org/BouncyCastle/Asn1/Crmf/PopoSigningKey.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

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: 0x02001FF3 RID: 8179
[Token(Token = "0x2001FF3")]
public class PopoSigningKey : Asn1Encodable
{
// Token: 0x0600CCCE RID: 52430 RVA: 0x002E9084 File Offset: 0x002E7284
[Token(Token = "0x600CCCE")]
[Address(RVA = "0x23B9F60", Offset = "0x23B8F60", VA = "0x1823B9F60")]
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: 0x0600CCCF RID: 52431 RVA: 0x002E90F4 File Offset: 0x002E72F4
[Token(Token = "0x600CCCF")]
[Address(RVA = "0x23B9AF0", Offset = "0x23B8AF0", VA = "0x1823B9AF0")]
public static PopoSigningKey GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600CCCF)
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: 0x0600CCD0 RID: 52432 RVA: 0x002E9144 File Offset: 0x002E7344
[Token(Token = "0x600CCD0")]
[Address(RVA = "0x23B9CE0", Offset = "0x23B8CE0", VA = "0x1823B9CE0")]
public static PopoSigningKey GetInstance(Asn1TaggedObject obj, bool isExplicit)
{
return PopoSigningKey.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
}
// Token: 0x0600CCD1 RID: 52433 RVA: 0x002E9160 File Offset: 0x002E7360
[Token(Token = "0x600CCD1")]
[Address(RVA = "0xED6DA0", Offset = "0xED5DA0", VA = "0x180ED6DA0")]
public PopoSigningKey(PopoSigningKeyInput poposkIn, AlgorithmIdentifier aid, DerBitString signature)
{
this.poposkInput = poposkIn;
this.algorithmIdentifier = aid;
this.signature = signature;
}
// Token: 0x1700202B RID: 8235
// (get) Token: 0x0600CCD2 RID: 52434 RVA: 0x002E9188 File Offset: 0x002E7388
[Token(Token = "0x1700202B")]
public virtual PopoSigningKeyInput PoposkInput
{
[Token(Token = "0x600CCD2")]
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
get
{
return this.poposkInput;
}
}
// Token: 0x1700202C RID: 8236
// (get) Token: 0x0600CCD3 RID: 52435 RVA: 0x002E919C File Offset: 0x002E739C
[Token(Token = "0x1700202C")]
public virtual AlgorithmIdentifier AlgorithmIdentifier
{
[Token(Token = "0x600CCD3")]
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
get
{
return this.algorithmIdentifier;
}
}
// Token: 0x1700202D RID: 8237
// (get) Token: 0x0600CCD4 RID: 52436 RVA: 0x002E91B0 File Offset: 0x002E73B0
[Token(Token = "0x1700202D")]
public virtual DerBitString Signature
{
[Token(Token = "0x600CCD4")]
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0", Slot = "8")]
get
{
return this.signature;
}
}
// Token: 0x0600CCD5 RID: 52437 RVA: 0x002E91C4 File Offset: 0x002E73C4
[Token(Token = "0x600CCD5")]
[Address(RVA = "0x23B9D00", Offset = "0x23B8D00", VA = "0x1823B9D00", 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: 0x040081F7 RID: 33271
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40081F7")]
private readonly PopoSigningKeyInput poposkInput;
// Token: 0x040081F8 RID: 33272
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40081F8")]
private readonly AlgorithmIdentifier algorithmIdentifier;
// Token: 0x040081F9 RID: 33273
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x40081F9")]
private readonly DerBitString signature;
}
}