Files
Aug2021-Cpp2IL-Dump/Assembly-CSharp/BestHTTP/SecureProtocol/Org/BouncyCastle/Asn1/Crmf/PopoSigningKeyInput.cs
T
2026-04-10 22:50:51 +02:00

176 lines
7.1 KiB
C#

using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf
{
// Token: 0x02001F14 RID: 7956
[Token(Token = "0x2001F14")]
public class PopoSigningKeyInput : Asn1Encodable
{
// Token: 0x0600C908 RID: 51464 RVA: 0x002E0A78 File Offset: 0x002DEC78
[Token(Token = "0x600C908")]
[Address(RVA = "0x188CE50", Offset = "0x188BC50", VA = "0x18188CE50")]
private PopoSigningKeyInput(Asn1Sequence seq)
{
Asn1SequenceParser parser;
do
{
base..ctor();
parser = seq.Parser;
if (parser == 0 || parser == 0)
{
goto IL_2D;
}
}
while (parser == 0);
Asn1Object asn1Object;
GeneralName instance = GeneralName.GetInstance(asn1Object);
this.sender = instance;
IL_2D:
PKMacValue pkmacValue;
this.publicKeyMac = pkmacValue;
Asn1SequenceParser parser2 = seq.Parser;
SubjectPublicKeyInfo subjectPublicKeyInfo;
this.publicKey = subjectPublicKeyInfo;
}
// Token: 0x0600C909 RID: 51465 RVA: 0x002E0AD0 File Offset: 0x002DECD0
[Token(Token = "0x600C909")]
[Address(RVA = "0x188CA30", Offset = "0x188B830", VA = "0x18188CA30")]
public static PopoSigningKeyInput GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600C909)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf.PopoSigningKeyInput BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf.PopoSigningKeyInput::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: 0x0600C90A RID: 51466 RVA: 0x002E0B20 File Offset: 0x002DED20
[Token(Token = "0x600C90A")]
[Address(RVA = "0x188D050", Offset = "0x188BE50", VA = "0x18188D050")]
public PopoSigningKeyInput(GeneralName sender, SubjectPublicKeyInfo spki)
{
this.sender = sender;
this.publicKey = spki;
}
// Token: 0x0600C90B RID: 51467 RVA: 0x002E0B44 File Offset: 0x002DED44
[Token(Token = "0x600C90B")]
[Address(RVA = "0x188D010", Offset = "0x188BE10", VA = "0x18188D010")]
public PopoSigningKeyInput(PKMacValue pkmac, SubjectPublicKeyInfo spki)
{
this.publicKeyMac = pkmac;
this.publicKey = spki;
}
// Token: 0x17001F91 RID: 8081
// (get) Token: 0x0600C90C RID: 51468 RVA: 0x002E0B68 File Offset: 0x002DED68
[Token(Token = "0x17001F91")]
public virtual GeneralName Sender
{
[Token(Token = "0x600C90C")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
get
{
return this.sender;
}
}
// Token: 0x17001F92 RID: 8082
// (get) Token: 0x0600C90D RID: 51469 RVA: 0x002E0B7C File Offset: 0x002DED7C
[Token(Token = "0x17001F92")]
public virtual PKMacValue PublicKeyMac
{
[Token(Token = "0x600C90D")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
get
{
return this.publicKeyMac;
}
}
// Token: 0x17001F93 RID: 8083
// (get) Token: 0x0600C90E RID: 51470 RVA: 0x002E0B90 File Offset: 0x002DED90
[Token(Token = "0x17001F93")]
public virtual SubjectPublicKeyInfo PublicKey
{
[Token(Token = "0x600C90E")]
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400", Slot = "8")]
get
{
return this.publicKey;
}
}
// Token: 0x0600C90F RID: 51471 RVA: 0x002E0BA4 File Offset: 0x002DEDA4
[Token(Token = "0x600C90F")]
[Address(RVA = "0x188CC20", Offset = "0x188BA20", VA = "0x18188CC20", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
if (this.sender == (ulong)0L)
{
Asn1Encodable[] array = new Asn1Encodable[1];
PKMacValue pkmacValue = this.publicKeyMac;
if (pkmacValue != 0)
{
}
array[0] = pkmacValue;
}
Asn1Encodable[] array2 = new Asn1Encodable[1];
GeneralName generalName = this.sender;
int num;
int num2;
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, num2, generalName);
num2 = 0;
num = 0;
if (derTaggedObject != 0)
{
}
array2[0] = derTaggedObject;
Asn1EncodableVector asn1EncodableVector;
asn1EncodableVector.Add(array2);
Asn1Encodable[] array3 = new Asn1Encodable[1];
SubjectPublicKeyInfo subjectPublicKeyInfo = this.publicKey;
if (subjectPublicKeyInfo != 0)
{
}
array3[0] = subjectPublicKeyInfo;
asn1EncodableVector.Add(array3);
DerSequence derSequence = new DerSequence(asn1EncodableVector);
throw new NullReferenceException();
}
// Token: 0x04008041 RID: 32833
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4008041")]
private readonly GeneralName sender;
// Token: 0x04008042 RID: 32834
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4008042")]
private readonly PKMacValue publicKeyMac;
// Token: 0x04008043 RID: 32835
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4008043")]
private readonly SubjectPublicKeyInfo publicKey;
}
}