178 lines
7.3 KiB
C#
178 lines
7.3 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf
|
|
{
|
|
// Token: 0x02001937 RID: 6455
|
|
[Token(Token = "0x2001937")]
|
|
[StructLayout(3)]
|
|
public class PopoSigningKeyInput : Asn1Encodable
|
|
{
|
|
// Token: 0x0600AD2E RID: 44334 RVA: 0x00288598 File Offset: 0x00286798
|
|
[Token(Token = "0x600AD2E")]
|
|
[Address(RVA = "0x1EE0120", Offset = "0x1EDEB20", VA = "0x181EE0120")]
|
|
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: 0x0600AD2F RID: 44335 RVA: 0x002885F0 File Offset: 0x002867F0
|
|
[Token(Token = "0x600AD2F")]
|
|
[Address(RVA = "0x1EDFD00", Offset = "0x1EDE700", VA = "0x181EDFD00")]
|
|
public static PopoSigningKeyInput GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600AD2F)
|
|
|
|
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: 0x0600AD30 RID: 44336 RVA: 0x00288640 File Offset: 0x00286840
|
|
[Token(Token = "0x600AD30")]
|
|
[Address(RVA = "0x1EE0320", Offset = "0x1EDED20", VA = "0x181EE0320")]
|
|
public PopoSigningKeyInput(GeneralName sender, SubjectPublicKeyInfo spki)
|
|
{
|
|
this.sender = sender;
|
|
this.publicKey = spki;
|
|
}
|
|
|
|
// Token: 0x0600AD31 RID: 44337 RVA: 0x00288664 File Offset: 0x00286864
|
|
[Token(Token = "0x600AD31")]
|
|
[Address(RVA = "0x1EE02E0", Offset = "0x1EDECE0", VA = "0x181EE02E0")]
|
|
public PopoSigningKeyInput(PKMacValue pkmac, SubjectPublicKeyInfo spki)
|
|
{
|
|
this.publicKeyMac = pkmac;
|
|
this.publicKey = spki;
|
|
}
|
|
|
|
// Token: 0x17001B90 RID: 7056
|
|
// (get) Token: 0x0600AD32 RID: 44338 RVA: 0x00288688 File Offset: 0x00286888
|
|
[Token(Token = "0x17001B90")]
|
|
public virtual GeneralName Sender
|
|
{
|
|
[Token(Token = "0x600AD32")]
|
|
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
|
|
get
|
|
{
|
|
return this.sender;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001B91 RID: 7057
|
|
// (get) Token: 0x0600AD33 RID: 44339 RVA: 0x0028869C File Offset: 0x0028689C
|
|
[Token(Token = "0x17001B91")]
|
|
public virtual PKMacValue PublicKeyMac
|
|
{
|
|
[Token(Token = "0x600AD33")]
|
|
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")]
|
|
get
|
|
{
|
|
return this.publicKeyMac;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001B92 RID: 7058
|
|
// (get) Token: 0x0600AD34 RID: 44340 RVA: 0x002886B0 File Offset: 0x002868B0
|
|
[Token(Token = "0x17001B92")]
|
|
public virtual SubjectPublicKeyInfo PublicKey
|
|
{
|
|
[Token(Token = "0x600AD34")]
|
|
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220", Slot = "8")]
|
|
get
|
|
{
|
|
return this.publicKey;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600AD35 RID: 44341 RVA: 0x002886C4 File Offset: 0x002868C4
|
|
[Token(Token = "0x600AD35")]
|
|
[Address(RVA = "0x1EDFEF0", Offset = "0x1EDE8F0", VA = "0x181EDFEF0", 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: 0x040071FE RID: 29182
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x40071FE")]
|
|
private readonly GeneralName sender;
|
|
|
|
// Token: 0x040071FF RID: 29183
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x40071FF")]
|
|
private readonly PKMacValue publicKeyMac;
|
|
|
|
// Token: 0x04007200 RID: 29184
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4007200")]
|
|
private readonly SubjectPublicKeyInfo publicKey;
|
|
}
|
|
}
|