m
This commit is contained in:
+175
@@ -0,0 +1,175 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf
|
||||
{
|
||||
// Token: 0x02001FF4 RID: 8180
|
||||
[Token(Token = "0x2001FF4")]
|
||||
public class PopoSigningKeyInput : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CCD6 RID: 52438 RVA: 0x002E926C File Offset: 0x002E746C
|
||||
[Token(Token = "0x600CCD6")]
|
||||
[Address(RVA = "0x23B98B0", Offset = "0x23B88B0", VA = "0x1823B98B0")]
|
||||
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: 0x0600CCD7 RID: 52439 RVA: 0x002E92C4 File Offset: 0x002E74C4
|
||||
[Token(Token = "0x600CCD7")]
|
||||
[Address(RVA = "0x23B9490", Offset = "0x23B8490", VA = "0x1823B9490")]
|
||||
public static PopoSigningKeyInput GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CCD7)
|
||||
|
||||
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: 0x0600CCD8 RID: 52440 RVA: 0x002E9314 File Offset: 0x002E7514
|
||||
[Token(Token = "0x600CCD8")]
|
||||
[Address(RVA = "0x23B9AB0", Offset = "0x23B8AB0", VA = "0x1823B9AB0")]
|
||||
public PopoSigningKeyInput(GeneralName sender, SubjectPublicKeyInfo spki)
|
||||
{
|
||||
this.sender = sender;
|
||||
this.publicKey = spki;
|
||||
}
|
||||
|
||||
// Token: 0x0600CCD9 RID: 52441 RVA: 0x002E9338 File Offset: 0x002E7538
|
||||
[Token(Token = "0x600CCD9")]
|
||||
[Address(RVA = "0x23B9A70", Offset = "0x23B8A70", VA = "0x1823B9A70")]
|
||||
public PopoSigningKeyInput(PKMacValue pkmac, SubjectPublicKeyInfo spki)
|
||||
{
|
||||
this.publicKeyMac = pkmac;
|
||||
this.publicKey = spki;
|
||||
}
|
||||
|
||||
// Token: 0x1700202E RID: 8238
|
||||
// (get) Token: 0x0600CCDA RID: 52442 RVA: 0x002E935C File Offset: 0x002E755C
|
||||
[Token(Token = "0x1700202E")]
|
||||
public virtual GeneralName Sender
|
||||
{
|
||||
[Token(Token = "0x600CCDA")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.sender;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700202F RID: 8239
|
||||
// (get) Token: 0x0600CCDB RID: 52443 RVA: 0x002E9370 File Offset: 0x002E7570
|
||||
[Token(Token = "0x1700202F")]
|
||||
public virtual PKMacValue PublicKeyMac
|
||||
{
|
||||
[Token(Token = "0x600CCDB")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.publicKeyMac;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002030 RID: 8240
|
||||
// (get) Token: 0x0600CCDC RID: 52444 RVA: 0x002E9384 File Offset: 0x002E7584
|
||||
[Token(Token = "0x17002030")]
|
||||
public virtual SubjectPublicKeyInfo PublicKey
|
||||
{
|
||||
[Token(Token = "0x600CCDC")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.publicKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CCDD RID: 52445 RVA: 0x002E9398 File Offset: 0x002E7598
|
||||
[Token(Token = "0x600CCDD")]
|
||||
[Address(RVA = "0x23B9680", Offset = "0x23B8680", VA = "0x1823B9680", 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: 0x040081FA RID: 33274
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40081FA")]
|
||||
private readonly GeneralName sender;
|
||||
|
||||
// Token: 0x040081FB RID: 33275
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40081FB")]
|
||||
private readonly PKMacValue publicKeyMac;
|
||||
|
||||
// Token: 0x040081FC RID: 33276
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40081FC")]
|
||||
private readonly SubjectPublicKeyInfo publicKey;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user