This commit is contained in:
niko
2026-04-10 22:50:51 +02:00
parent 6d1607d5a2
commit f18d448581
17033 changed files with 2863270 additions and 0 deletions
@@ -0,0 +1,132 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
{
// Token: 0x02001F48 RID: 8008
[Token(Token = "0x2001F48")]
public class CAKeyUpdAnnContent : Asn1Encodable
{
// Token: 0x0600CA9A RID: 51866 RVA: 0x002E6844 File Offset: 0x002E4A44
[Token(Token = "0x600CA9A")]
[Address(RVA = "0x26480D0", Offset = "0x2646ED0", VA = "0x1826480D0")]
private CAKeyUpdAnnContent(Asn1Sequence seq)
{
Asn1SequenceParser parser = seq.Parser;
CmpCertificate cmpCertificate;
this.oldWithNew = cmpCertificate;
Asn1SequenceParser parser2 = seq.Parser;
CmpCertificate cmpCertificate2;
this.newWithOld = cmpCertificate2;
Asn1SequenceParser parser3 = seq.Parser;
CmpCertificate cmpCertificate3;
this.newWithNew = cmpCertificate3;
}
// Token: 0x0600CA9B RID: 51867 RVA: 0x002E688C File Offset: 0x002E4A8C
[Token(Token = "0x600CA9B")]
[Address(RVA = "0x2647D00", Offset = "0x2646B00", VA = "0x182647D00")]
public static CAKeyUpdAnnContent GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600CA9B)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CAKeyUpdAnnContent BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CAKeyUpdAnnContent::GetInstance(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_3A:
stloc:string(var_9_40, call:string(Platform::GetTypeName, ldloc:object(obj)))
stloc:ArgumentException(var_10_58, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_9_40)), 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: 0x17002018 RID: 8216
// (get) Token: 0x0600CA9C RID: 51868 RVA: 0x002E68F4 File Offset: 0x002E4AF4
[Token(Token = "0x17002018")]
public virtual CmpCertificate OldWithNew
{
[Token(Token = "0x600CA9C")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
get
{
return this.oldWithNew;
}
}
// Token: 0x17002019 RID: 8217
// (get) Token: 0x0600CA9D RID: 51869 RVA: 0x002E6908 File Offset: 0x002E4B08
[Token(Token = "0x17002019")]
public virtual CmpCertificate NewWithOld
{
[Token(Token = "0x600CA9D")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
get
{
return this.newWithOld;
}
}
// Token: 0x1700201A RID: 8218
// (get) Token: 0x0600CA9E RID: 51870 RVA: 0x002E691C File Offset: 0x002E4B1C
[Token(Token = "0x1700201A")]
public virtual CmpCertificate NewWithNew
{
[Token(Token = "0x600CA9E")]
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400", Slot = "8")]
get
{
return this.newWithNew;
}
}
// Token: 0x0600CA9F RID: 51871 RVA: 0x002E6930 File Offset: 0x002E4B30
[Token(Token = "0x600CA9F")]
[Address(RVA = "0x2647F60", Offset = "0x2646D60", VA = "0x182647F60", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1Encodable[] array = new Asn1Encodable[3];
CmpCertificate cmpCertificate = this.oldWithNew;
if (cmpCertificate != 0)
{
}
array[0] = cmpCertificate;
CmpCertificate cmpCertificate2 = this.newWithOld;
if (cmpCertificate2 != 0)
{
}
array[1] = cmpCertificate2;
CmpCertificate cmpCertificate3 = this.newWithNew;
if (cmpCertificate3 != 0)
{
}
array[2] = cmpCertificate3;
DerSequence derSequence = new DerSequence(array);
throw new NullReferenceException();
}
// Token: 0x040080F3 RID: 33011
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40080F3")]
private readonly CmpCertificate oldWithNew;
// Token: 0x040080F4 RID: 33012
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40080F4")]
private readonly CmpCertificate newWithOld;
// Token: 0x040080F5 RID: 33013
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x40080F5")]
private readonly CmpCertificate newWithNew;
}
}
@@ -0,0 +1,98 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
{
// Token: 0x02001F49 RID: 8009
[Token(Token = "0x2001F49")]
public class CertConfirmContent : Asn1Encodable
{
// Token: 0x0600CAA0 RID: 51872 RVA: 0x002E698C File Offset: 0x002E4B8C
[Token(Token = "0x600CAA0")]
[Address(RVA = "0x3FFB80", Offset = "0x3FE980", VA = "0x1803FFB80")]
private CertConfirmContent(Asn1Sequence seq)
{
this.content = seq;
}
// Token: 0x0600CAA1 RID: 51873 RVA: 0x002E69A8 File Offset: 0x002E4BA8
[Token(Token = "0x600CAA1")]
[Address(RVA = "0x2648170", Offset = "0x2646F70", VA = "0x182648170")]
public static CertConfirmContent GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600CAA1)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertConfirmContent BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertConfirmContent::GetInstance(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_29:
stloc:string(var_6_2F, call:string(Platform::GetTypeName, ldloc:object(obj)))
stloc:ArgumentException(var_7_47, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_6_2F)), 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: 0x0600CAA2 RID: 51874 RVA: 0x002E6A00 File Offset: 0x002E4C00
[Token(Token = "0x600CAA2")]
[Address(RVA = "0x2648360", Offset = "0x2647160", VA = "0x182648360", Slot = "6")]
public virtual CertStatus[] ToCertStatusArray()
{
Asn1Sequence asn1Sequence = this.content;
Asn1Encodable asn1Encodable;
CertStatus[] array = new CertStatus[asn1Encodable];
int num = 0;
if (num != array.Length)
{
Asn1SequenceParser parser = this.content.Parser;
CertStatus certStatus;
if (certStatus != 0)
{
}
num++;
array[0] = certStatus;
}
return array;
}
// Token: 0x0600CAA3 RID: 51875 RVA: 0x002E6A4C File Offset: 0x002E4C4C
[Token(Token = "0x600CAA3")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
/*
An exception occurred when decompiling this method (0600CAA3)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertConfirmContent::ToAsn1Object()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:Asn1Sequence(var_0_06, ldfld:Asn1Sequence(CertConfirmContent::content, ldloc:CertConfirmContent(this)))
}
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: 0x040080F6 RID: 33014
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40080F6")]
private readonly Asn1Sequence content;
}
}
@@ -0,0 +1,219 @@
using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
{
// Token: 0x02001F4A RID: 8010
[Token(Token = "0x2001F4A")]
public class CertOrEncCert : Asn1Encodable, IAsn1Choice
{
// Token: 0x0600CAA4 RID: 51876 RVA: 0x002E6A60 File Offset: 0x002E4C60
[Token(Token = "0x600CAA4")]
[Address(RVA = "0x2648880", Offset = "0x2647680", VA = "0x182648880")]
private CertOrEncCert(Asn1TaggedObject tagged)
{
int tagNo = tagged.tagNo;
if (tagNo != 0)
{
if (tagNo == 1)
{
Asn1Encodable obj = tagged.obj;
if (obj == 0)
{
}
EncryptedValue instance = EncryptedValue.GetInstance(obj.ToAsn1Object());
this.encryptedCert = instance;
return;
}
throw new NullReferenceException();
}
else
{
if (tagged.obj == 0)
{
CmpCertificate instance2 = CmpCertificate.GetInstance(0);
this.certificate = instance2;
return;
}
int num;
CmpCertificate instance3 = CmpCertificate.GetInstance(num);
this.certificate = instance3;
return;
}
}
// Token: 0x0600CAA5 RID: 51877 RVA: 0x002E6AF8 File Offset: 0x002E4CF8
[Token(Token = "0x600CAA5")]
[Address(RVA = "0x2648470", Offset = "0x2647270", VA = "0x182648470")]
public static CertOrEncCert GetInstance(object obj)
{
while (obj != 0)
{
if (obj == 0)
{
if (obj == 0)
{
break;
}
if (obj != 0)
{
CertOrEncCert certOrEncCert;
Asn1Object asn1Object;
if (typeof(Asn1TaggedObject).TypeHandle != 0)
{
if (typeof(Asn1TaggedObject).TypeHandle != (ulong)1L)
{
IL_96:
throw new NullReferenceException();
}
if (certOrEncCert != 0)
{
asn1Object = certOrEncCert.ToAsn1Object();
}
EncryptedValue instance = EncryptedValue.GetInstance(asn1Object);
certOrEncCert.encryptedCert = instance;
}
Asn1Object asn1Object2;
if (asn1Object != 0)
{
asn1Object2 = asn1Object.ToAsn1Object();
}
CmpCertificate instance2 = CmpCertificate.GetInstance(asn1Object2);
certOrEncCert.certificate = instance2;
return certOrEncCert;
}
}
else if (obj != 0)
{
break;
}
}
string typeName = Platform.GetTypeName(obj);
ArgumentException ex = new ArgumentException("Invalid object: " + typeName, "obj");
goto IL_96;
}
// Token: 0x0600CAA6 RID: 51878 RVA: 0x002E6BB8 File Offset: 0x002E4DB8
[Token(Token = "0x600CAA6")]
[Address(RVA = "0x26489D0", Offset = "0x26477D0", VA = "0x1826489D0")]
public CertOrEncCert(CmpCertificate certificate)
{
/*
An exception occurred when decompiling this method (0600CAA6)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertOrEncCert::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CmpCertificate)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_12:
stloc:ArgumentNullException(var_0_1C, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("certificate")))
}
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
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: 0x0600CAA7 RID: 51879 RVA: 0x002E6BE4 File Offset: 0x002E4DE4
[Token(Token = "0x600CAA7")]
[Address(RVA = "0x2648800", Offset = "0x2647600", VA = "0x182648800")]
public CertOrEncCert(EncryptedValue encryptedCert)
{
/*
An exception occurred when decompiling this method (0600CAA7)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertOrEncCert::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf.EncryptedValue)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_12:
stloc:ArgumentNullException(var_0_1C, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("encryptedCert")))
}
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
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: 0x1700201B RID: 8219
// (get) Token: 0x0600CAA8 RID: 51880 RVA: 0x002E6C10 File Offset: 0x002E4E10
[Token(Token = "0x1700201B")]
public virtual CmpCertificate Certificate
{
[Token(Token = "0x600CAA8")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
get
{
return this.certificate;
}
}
// Token: 0x1700201C RID: 8220
// (get) Token: 0x0600CAA9 RID: 51881 RVA: 0x002E6C24 File Offset: 0x002E4E24
[Token(Token = "0x1700201C")]
public virtual EncryptedValue EncryptedCert
{
[Token(Token = "0x600CAA9")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
get
{
return this.encryptedCert;
}
}
// Token: 0x0600CAAA RID: 51882 RVA: 0x002E6C38 File Offset: 0x002E4E38
[Token(Token = "0x600CAAA")]
[Address(RVA = "0x2648760", Offset = "0x2647560", VA = "0x182648760", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
/*
An exception occurred when decompiling this method (0600CAAA)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertOrEncCert::ToAsn1Object()
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_23:
stloc:DerTaggedObject(var_4_2C, newobj:DerTaggedObject(DerTaggedObject::.ctor, ldc.i4:bool(1), ldloc:int32(var_6), ldloc:CmpCertificate[exp:Asn1Encodable](var_0_06)))
stloc:int32(var_6, ldc.i4:int32(0))
}
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: 0x040080F7 RID: 33015
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40080F7")]
private readonly CmpCertificate certificate;
// Token: 0x040080F8 RID: 33016
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40080F8")]
private readonly EncryptedValue encryptedCert;
}
}
@@ -0,0 +1,178 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
{
// Token: 0x02001F4B RID: 8011
[Token(Token = "0x2001F4B")]
public class CertRepMessage : Asn1Encodable
{
// Token: 0x0600CAAB RID: 51883 RVA: 0x002E6C78 File Offset: 0x002E4E78
[Token(Token = "0x600CAAB")]
[Address(RVA = "0x2649130", Offset = "0x2647F30", VA = "0x182649130")]
private CertRepMessage(Asn1Sequence seq)
{
int num;
Asn1SequenceParser parser;
do
{
base..ctor();
num = 0;
Asn1Encodable asn1Encodable;
if (asn1Encodable <= (ulong)1L)
{
goto IL_30;
}
parser = seq.Parser;
}
while (parser != 0 && parser == 0);
Asn1Sequence instance = Asn1Sequence.GetInstance(num, true);
this.caPubs = instance;
IL_30:
Asn1SequenceParser parser2 = seq.Parser;
Asn1Sequence asn1Sequence;
this.response = asn1Sequence;
}
// Token: 0x0600CAAC RID: 51884 RVA: 0x002E6CCC File Offset: 0x002E4ECC
[Token(Token = "0x600CAAC")]
[Address(RVA = "0x2648B70", Offset = "0x2647970", VA = "0x182648B70")]
public static CertRepMessage GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600CAAC)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertRepMessage BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertRepMessage::GetInstance(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_3F:
stloc:string(var_11_45, call:string(Platform::GetTypeName, ldloc:object(obj)))
stloc:ArgumentException(var_12_5D, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_11_45)), 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: 0x0600CAAD RID: 51885 RVA: 0x002E6D38 File Offset: 0x002E4F38
[Token(Token = "0x600CAAD")]
[Address(RVA = "0x2649250", Offset = "0x2648050", VA = "0x182649250")]
public CertRepMessage(CmpCertificate[] caPubs, CertResponse[] response)
{
/*
An exception occurred when decompiling this method (0600CAAD)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertRepMessage::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CmpCertificate[],BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertResponse[])
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_2B:
stloc:ArgumentNullException(var_2_35, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("response")))
}
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
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: 0x0600CAAE RID: 51886 RVA: 0x002E6D7C File Offset: 0x002E4F7C
[Token(Token = "0x600CAAE")]
[Address(RVA = "0x2648A50", Offset = "0x2647850", VA = "0x182648A50", Slot = "6")]
public virtual CmpCertificate[] GetCAPubs()
{
if (this.caPubs != 0)
{
Asn1Encodable asn1Encodable;
CmpCertificate[] array = new CmpCertificate[asn1Encodable];
int num = 0;
if (num != array.Length)
{
Asn1SequenceParser parser = this.caPubs.Parser;
CmpCertificate cmpCertificate;
if (cmpCertificate != 0)
{
}
num++;
array[0] = cmpCertificate;
}
return array;
}
throw new ArrayTypeMismatchException();
}
// Token: 0x0600CAAF RID: 51887 RVA: 0x002E6DCC File Offset: 0x002E4FCC
[Token(Token = "0x600CAAF")]
[Address(RVA = "0x2648E40", Offset = "0x2647C40", VA = "0x182648E40", Slot = "7")]
public virtual CertResponse[] GetResponse()
{
Asn1Sequence asn1Sequence = this.response;
Asn1Encodable asn1Encodable;
CertResponse[] array = new CertResponse[asn1Encodable];
int num = 0;
if (num != array.Length)
{
Asn1SequenceParser parser = this.response.Parser;
CertResponse certResponse;
if (certResponse != 0)
{
}
num++;
array[0] = certResponse;
}
return array;
}
// Token: 0x0600CAB0 RID: 51888 RVA: 0x002E6E18 File Offset: 0x002E5018
[Token(Token = "0x600CAB0")]
[Address(RVA = "0x2648F50", Offset = "0x2647D50", VA = "0x182648F50", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1EncodableVector asn1EncodableVector;
if (this.caPubs != (ulong)0L)
{
Asn1Encodable[] array = new Asn1Encodable[1];
Asn1Sequence asn1Sequence = this.caPubs;
DerTaggedObject derTaggedObject = new DerTaggedObject(16777216 != 0, 16777216, asn1Sequence);
if (derTaggedObject != 0)
{
}
array[0] = derTaggedObject;
asn1EncodableVector.Add(array);
}
Asn1Encodable[] array2 = new Asn1Encodable[1];
Asn1Sequence asn1Sequence2 = this.response;
if (asn1Sequence2 != 0)
{
}
array2[0] = asn1Sequence2;
asn1EncodableVector.Add(array2);
DerSequence derSequence = new DerSequence(asn1EncodableVector);
throw new NullReferenceException();
}
// Token: 0x040080F9 RID: 33017
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40080F9")]
private readonly Asn1Sequence caPubs;
// Token: 0x040080FA RID: 33018
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40080FA")]
private readonly Asn1Sequence response;
}
}
@@ -0,0 +1,211 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
{
// Token: 0x02001F4C RID: 8012
[Token(Token = "0x2001F4C")]
public class CertResponse : Asn1Encodable
{
// Token: 0x0600CAB1 RID: 51889 RVA: 0x002E6E98 File Offset: 0x002E5098
[Token(Token = "0x600CAB1")]
[Address(RVA = "0x2649740", Offset = "0x2648540", VA = "0x182649740")]
private CertResponse(Asn1Sequence seq)
{
Asn1SequenceParser parser = seq.Parser;
DerInteger derInteger;
this.certReqId = derInteger;
Asn1SequenceParser parser2 = seq.Parser;
PkiStatusInfo pkiStatusInfo;
this.status = pkiStatusInfo;
Asn1Encodable asn1Encodable;
if (asn1Encodable != (ulong)3L)
{
Asn1SequenceParser parser3 = seq.Parser;
CertifiedKeyPair certifiedKeyPair;
this.certifiedKeyPair = certifiedKeyPair;
Asn1SequenceParser parser4 = seq.Parser;
Asn1OctetString asn1OctetString;
this.rspInfo = asn1OctetString;
return;
}
Asn1SequenceParser parser5 = seq.Parser;
if (parser5 == 0 || parser5 != 0)
{
}
CertifiedKeyPair certifiedKeyPair2;
this.certifiedKeyPair = certifiedKeyPair2;
}
// Token: 0x0600CAB2 RID: 51890 RVA: 0x002E6F14 File Offset: 0x002E5114
[Token(Token = "0x600CAB2")]
[Address(RVA = "0x2649330", Offset = "0x2648130", VA = "0x182649330")]
public static CertResponse GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600CAB2)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertResponse BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertResponse::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: 0x0600CAB3 RID: 51891 RVA: 0x002E6F64 File Offset: 0x002E5164
[Token(Token = "0x600CAB3")]
[Address(RVA = "0x26498D0", Offset = "0x26486D0", VA = "0x1826498D0")]
public CertResponse(DerInteger certReqId, PkiStatusInfo status)
{
/*
An exception occurred when decompiling this method (0600CAB3)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertResponse::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiStatusInfo)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_38:
stloc:ArgumentNullException(var_2_42, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("status")))
}
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: 0x0600CAB4 RID: 51892 RVA: 0x002E6FB4 File Offset: 0x002E51B4
[Token(Token = "0x600CAB4")]
[Address(RVA = "0x26499A0", Offset = "0x26487A0", VA = "0x1826499A0")]
public CertResponse(DerInteger certReqId, PkiStatusInfo status, CertifiedKeyPair certifiedKeyPair, Asn1OctetString rspInfo)
{
/*
An exception occurred when decompiling this method (0600CAB4)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertResponse::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiStatusInfo,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertifiedKeyPair,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1OctetString)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_36:
stloc:ArgumentNullException(var_1_40, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("status")))
}
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: 0x1700201D RID: 8221
// (get) Token: 0x0600CAB5 RID: 51893 RVA: 0x002E7004 File Offset: 0x002E5204
[Token(Token = "0x1700201D")]
public virtual DerInteger CertReqID
{
[Token(Token = "0x600CAB5")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
get
{
return this.certReqId;
}
}
// Token: 0x1700201E RID: 8222
// (get) Token: 0x0600CAB6 RID: 51894 RVA: 0x002E7018 File Offset: 0x002E5218
[Token(Token = "0x1700201E")]
public virtual PkiStatusInfo Status
{
[Token(Token = "0x600CAB6")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
get
{
return this.status;
}
}
// Token: 0x1700201F RID: 8223
// (get) Token: 0x0600CAB7 RID: 51895 RVA: 0x002E702C File Offset: 0x002E522C
[Token(Token = "0x1700201F")]
public virtual CertifiedKeyPair CertifiedKeyPair
{
[Token(Token = "0x600CAB7")]
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400", Slot = "8")]
get
{
return this.certifiedKeyPair;
}
}
// Token: 0x0600CAB8 RID: 51896 RVA: 0x002E7040 File Offset: 0x002E5240
[Token(Token = "0x600CAB8")]
[Address(RVA = "0x2649520", Offset = "0x2648320", VA = "0x182649520", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1Encodable[] array = new Asn1Encodable[2];
DerInteger derInteger = this.certReqId;
if (derInteger != 0)
{
}
array[0] = derInteger;
PkiStatusInfo pkiStatusInfo = this.status;
if (pkiStatusInfo != 0)
{
}
array[1] = pkiStatusInfo;
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
Asn1Encodable[] array2 = new Asn1Encodable[2];
CertifiedKeyPair certifiedKeyPair = this.certifiedKeyPair;
if (certifiedKeyPair != 0)
{
}
array2[0] = certifiedKeyPair;
Asn1OctetString asn1OctetString = this.rspInfo;
if (asn1OctetString != 0)
{
}
array2[1] = asn1OctetString;
asn1EncodableVector.AddOptional(array2);
DerSequence derSequence = new DerSequence(asn1EncodableVector);
throw new NullReferenceException();
}
// Token: 0x040080FB RID: 33019
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40080FB")]
private readonly DerInteger certReqId;
// Token: 0x040080FC RID: 33020
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40080FC")]
private readonly PkiStatusInfo status;
// Token: 0x040080FD RID: 33021
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x40080FD")]
private readonly CertifiedKeyPair certifiedKeyPair;
// Token: 0x040080FE RID: 33022
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x40080FE")]
private readonly Asn1OctetString rspInfo;
}
}
@@ -0,0 +1,163 @@
using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
{
// Token: 0x02001F4D RID: 8013
[Token(Token = "0x2001F4D")]
public class CertStatus : Asn1Encodable
{
// Token: 0x0600CAB9 RID: 51897 RVA: 0x002E70CC File Offset: 0x002E52CC
[Token(Token = "0x600CAB9")]
[Address(RVA = "0x2649F60", Offset = "0x2648D60", VA = "0x182649F60")]
private CertStatus(Asn1Sequence seq)
{
Asn1SequenceParser parser = seq.Parser;
Asn1OctetString asn1OctetString;
this.certHash = asn1OctetString;
Asn1SequenceParser parser2 = seq.Parser;
DerInteger derInteger;
this.certReqId = derInteger;
Asn1Encodable asn1Encodable;
if (asn1Encodable > (ulong)2L)
{
Asn1SequenceParser parser3 = seq.Parser;
PkiStatusInfo pkiStatusInfo;
this.statusInfo = pkiStatusInfo;
}
}
// Token: 0x0600CABA RID: 51898 RVA: 0x002E7118 File Offset: 0x002E5318
[Token(Token = "0x600CABA")]
[Address(RVA = "0x2649EC0", Offset = "0x2648CC0", VA = "0x182649EC0")]
public CertStatus(byte[] certHash, BigInteger certReqId)
{
DerOctetString derOctetString = new DerOctetString(certHash);
this.certHash = derOctetString;
DerInteger derInteger = new DerInteger(certReqId);
this.certReqId = derInteger;
}
// Token: 0x0600CABB RID: 51899 RVA: 0x002E7148 File Offset: 0x002E5348
[Token(Token = "0x600CABB")]
[Address(RVA = "0x264A020", Offset = "0x2648E20", VA = "0x18264A020")]
public CertStatus(byte[] certHash, BigInteger certReqId, PkiStatusInfo statusInfo)
{
DerOctetString derOctetString = new DerOctetString(certHash);
this.certHash = derOctetString;
DerInteger derInteger = new DerInteger(certReqId);
this.certReqId = derInteger;
this.statusInfo = statusInfo;
}
// Token: 0x0600CABC RID: 51900 RVA: 0x002E7180 File Offset: 0x002E5380
[Token(Token = "0x600CABC")]
[Address(RVA = "0x2649A80", Offset = "0x2648880", VA = "0x182649A80")]
public static CertStatus GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600CABC)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertStatus BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertStatus::GetInstance(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_3A:
stloc:string(var_9_40, call:string(Platform::GetTypeName, ldloc:object(obj)))
stloc:ArgumentException(var_10_58, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_9_40)), 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: 0x17002020 RID: 8224
// (get) Token: 0x0600CABD RID: 51901 RVA: 0x002E71E8 File Offset: 0x002E53E8
[Token(Token = "0x17002020")]
public virtual Asn1OctetString CertHash
{
[Token(Token = "0x600CABD")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
get
{
return this.certHash;
}
}
// Token: 0x17002021 RID: 8225
// (get) Token: 0x0600CABE RID: 51902 RVA: 0x002E71FC File Offset: 0x002E53FC
[Token(Token = "0x17002021")]
public virtual DerInteger CertReqID
{
[Token(Token = "0x600CABE")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
get
{
return this.certReqId;
}
}
// Token: 0x17002022 RID: 8226
// (get) Token: 0x0600CABF RID: 51903 RVA: 0x002E7210 File Offset: 0x002E5410
[Token(Token = "0x17002022")]
public virtual PkiStatusInfo StatusInfo
{
[Token(Token = "0x600CABF")]
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400", Slot = "8")]
get
{
return this.statusInfo;
}
}
// Token: 0x0600CAC0 RID: 51904 RVA: 0x002E7224 File Offset: 0x002E5424
[Token(Token = "0x600CAC0")]
[Address(RVA = "0x2649D00", Offset = "0x2648B00", VA = "0x182649D00", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1Encodable[] array = new Asn1Encodable[2];
Asn1OctetString asn1OctetString = this.certHash;
if (asn1OctetString != 0)
{
}
array[0] = asn1OctetString;
DerInteger derInteger = this.certReqId;
if (derInteger != 0)
{
}
array[1] = derInteger;
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
Asn1Encodable[] array2 = new Asn1Encodable[1];
PkiStatusInfo pkiStatusInfo = this.statusInfo;
if (pkiStatusInfo != 0)
{
}
array2[0] = pkiStatusInfo;
asn1EncodableVector.AddOptional(array2);
DerSequence derSequence = new DerSequence(asn1EncodableVector);
throw new NullReferenceException();
}
// Token: 0x040080FF RID: 33023
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40080FF")]
private readonly Asn1OctetString certHash;
// Token: 0x04008100 RID: 33024
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4008100")]
private readonly DerInteger certReqId;
// Token: 0x04008101 RID: 33025
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4008101")]
private readonly PkiStatusInfo statusInfo;
}
}
@@ -0,0 +1,232 @@
using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
{
// Token: 0x02001F4E RID: 8014
[Token(Token = "0x2001F4E")]
public class CertifiedKeyPair : Asn1Encodable
{
// Token: 0x0600CAC1 RID: 51905 RVA: 0x002E729C File Offset: 0x002E549C
[Token(Token = "0x600CAC1")]
[Address(RVA = "0x264A5D0", Offset = "0x26493D0", VA = "0x18264A5D0")]
private CertifiedKeyPair(Asn1Sequence seq)
{
Asn1SequenceParser parser = seq.Parser;
CertOrEncCert certOrEncCert;
this.certOrEncCert = certOrEncCert;
Asn1Encodable asn1Encodable;
if (asn1Encodable != (ulong)2L)
{
Asn1SequenceParser parser2 = seq.Parser;
Asn1TaggedObject asn1TaggedObject;
EncryptedValue instance = EncryptedValue.GetInstance(asn1TaggedObject);
this.privateKey = instance;
Asn1SequenceParser parser3 = seq.Parser;
Asn1TaggedObject asn1TaggedObject2;
PkiPublicationInfo instance2 = PkiPublicationInfo.GetInstance(asn1TaggedObject2);
this.publicationInfo = instance2;
return;
}
Asn1SequenceParser parser4 = seq.Parser;
Asn1TaggedObject asn1TaggedObject3;
Asn1Encodable obj = asn1TaggedObject3.obj;
if (asn1TaggedObject3.tagNo != 0)
{
if (obj == 0)
{
}
Asn1Object asn1Object = obj.ToAsn1Object();
}
if (obj == 0)
{
EncryptedValue instance3 = EncryptedValue.GetInstance(0);
this.privateKey = instance3;
return;
}
int num;
EncryptedValue instance4 = EncryptedValue.GetInstance(num);
this.privateKey = instance4;
}
// Token: 0x0600CAC2 RID: 51906 RVA: 0x002E734C File Offset: 0x002E554C
[Token(Token = "0x600CAC2")]
[Address(RVA = "0x264A0D0", Offset = "0x2648ED0", VA = "0x18264A0D0")]
public static CertifiedKeyPair GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600CAC2)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertifiedKeyPair BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertifiedKeyPair::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: 0x0600CAC3 RID: 51907 RVA: 0x002E739C File Offset: 0x002E559C
[Token(Token = "0x600CAC3")]
[Address(RVA = "0x264A740", Offset = "0x2649540", VA = "0x18264A740")]
public CertifiedKeyPair(CertOrEncCert certOrEncCert)
{
/*
An exception occurred when decompiling this method (0600CAC3)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertifiedKeyPair::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertOrEncCert)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_22:
stloc:ArgumentNullException(var_1_2C, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("certOrEncCert")))
}
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
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: 0x0600CAC4 RID: 51908 RVA: 0x002E73D8 File Offset: 0x002E55D8
[Token(Token = "0x600CAC4")]
[Address(RVA = "0x264A530", Offset = "0x2649330", VA = "0x18264A530")]
public CertifiedKeyPair(CertOrEncCert certOrEncCert, EncryptedValue privateKey, PkiPublicationInfo publicationInfo)
{
/*
An exception occurred when decompiling this method (0600CAC4)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertifiedKeyPair::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertOrEncCert,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf.EncryptedValue,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf.PkiPublicationInfo)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_20:
stloc:ArgumentNullException(var_0_2A, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("certOrEncCert")))
}
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
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: 0x17002023 RID: 8227
// (get) Token: 0x0600CAC5 RID: 51909 RVA: 0x002E7410 File Offset: 0x002E5610
[Token(Token = "0x17002023")]
public virtual CertOrEncCert CertOrEncCert
{
[Token(Token = "0x600CAC5")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
get
{
return this.certOrEncCert;
}
}
// Token: 0x17002024 RID: 8228
// (get) Token: 0x0600CAC6 RID: 51910 RVA: 0x002E7424 File Offset: 0x002E5624
[Token(Token = "0x17002024")]
public virtual EncryptedValue PrivateKey
{
[Token(Token = "0x600CAC6")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
get
{
return this.privateKey;
}
}
// Token: 0x17002025 RID: 8229
// (get) Token: 0x0600CAC7 RID: 51911 RVA: 0x002E7438 File Offset: 0x002E5638
[Token(Token = "0x17002025")]
public virtual PkiPublicationInfo PublicationInfo
{
[Token(Token = "0x600CAC7")]
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400", Slot = "8")]
get
{
return this.publicationInfo;
}
}
// Token: 0x0600CAC8 RID: 51912 RVA: 0x002E744C File Offset: 0x002E564C
[Token(Token = "0x600CAC8")]
[Address(RVA = "0x264A2C0", Offset = "0x26490C0", VA = "0x18264A2C0", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1Encodable[] array = new Asn1Encodable[1];
CertOrEncCert certOrEncCert = this.certOrEncCert;
if (certOrEncCert != 0)
{
}
array[0] = certOrEncCert;
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
if (this.privateKey != (ulong)0L)
{
Asn1Encodable[] array2 = new Asn1Encodable[1];
EncryptedValue encryptedValue = this.privateKey;
int num;
DerTaggedObject derTaggedObject = new DerTaggedObject(true, num, encryptedValue);
num = 0;
if (derTaggedObject != 0)
{
}
array2[0] = derTaggedObject;
asn1EncodableVector.Add(array2);
}
if (this.publicationInfo != (ulong)0L)
{
Asn1Encodable[] array3 = new Asn1Encodable[1];
PkiPublicationInfo pkiPublicationInfo = this.publicationInfo;
DerTaggedObject derTaggedObject2 = new DerTaggedObject(16777216 != 0, 16777216, pkiPublicationInfo);
if (derTaggedObject2 != 0)
{
}
array3[0] = derTaggedObject2;
asn1EncodableVector.Add(array3);
}
DerSequence derSequence = new DerSequence(asn1EncodableVector);
throw new NullReferenceException();
}
// Token: 0x04008102 RID: 33026
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4008102")]
private readonly CertOrEncCert certOrEncCert;
// Token: 0x04008103 RID: 33027
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4008103")]
private readonly EncryptedValue privateKey;
// Token: 0x04008104 RID: 33028
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4008104")]
private readonly PkiPublicationInfo publicationInfo;
}
}
@@ -0,0 +1,117 @@
using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
{
// Token: 0x02001F4F RID: 8015
[Token(Token = "0x2001F4F")]
public class Challenge : Asn1Encodable
{
// Token: 0x0600CAC9 RID: 51913 RVA: 0x002E750C File Offset: 0x002E570C
[Token(Token = "0x600CAC9")]
[Address(RVA = "0x264AC60", Offset = "0x2649A60", VA = "0x18264AC60")]
private Challenge(Asn1Sequence seq)
{
Asn1Encodable asn1Encodable;
if (asn1Encodable == (ulong)3L)
{
Asn1SequenceParser parser = seq.Parser;
AlgorithmIdentifier algorithmIdentifier;
this.owf = algorithmIdentifier;
}
Asn1SequenceParser parser2 = seq.Parser;
Asn1OctetString asn1OctetString;
this.witness = asn1OctetString;
Asn1SequenceParser parser3 = seq.Parser;
Asn1OctetString asn1OctetString2;
this.challenge = asn1OctetString2;
}
// Token: 0x0600CACA RID: 51914 RVA: 0x002E7558 File Offset: 0x002E5758
[Token(Token = "0x600CACA")]
[Address(RVA = "0x264A7D0", Offset = "0x26495D0", VA = "0x18264A7D0")]
public static Challenge GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600CACA)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.Challenge BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.Challenge::GetInstance(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_3A:
stloc:string(var_9_40, call:string(Platform::GetTypeName, ldloc:object(obj)))
stloc:ArgumentException(var_10_58, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_9_40)), 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: 0x17002026 RID: 8230
// (get) Token: 0x0600CACB RID: 51915 RVA: 0x002E75C0 File Offset: 0x002E57C0
[Token(Token = "0x17002026")]
public virtual AlgorithmIdentifier Owf
{
[Token(Token = "0x600CACB")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
get
{
return this.owf;
}
}
// Token: 0x0600CACC RID: 51916 RVA: 0x002E75D4 File Offset: 0x002E57D4
[Token(Token = "0x600CACC")]
[Address(RVA = "0x264AA50", Offset = "0x2649850", VA = "0x18264AA50", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1Encodable[] array = new Asn1Encodable[1];
AlgorithmIdentifier algorithmIdentifier = this.owf;
if (algorithmIdentifier != 0)
{
}
array[0] = algorithmIdentifier;
Asn1EncodableVector asn1EncodableVector;
asn1EncodableVector.AddOptional(array);
Asn1Encodable[] array2 = new Asn1Encodable[1];
Asn1OctetString asn1OctetString = this.witness;
if (asn1OctetString != 0)
{
}
array2[0] = asn1OctetString;
asn1EncodableVector.Add(array2);
Asn1Encodable[] array3 = new Asn1Encodable[1];
Asn1OctetString asn1OctetString2 = this.challenge;
if (asn1OctetString2 != 0)
{
}
array3[0] = asn1OctetString2;
asn1EncodableVector.Add(array3);
DerSequence derSequence = new DerSequence(asn1EncodableVector);
throw new NullReferenceException();
}
// Token: 0x04008105 RID: 33029
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4008105")]
private readonly AlgorithmIdentifier owf;
// Token: 0x04008106 RID: 33030
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4008106")]
private readonly Asn1OctetString witness;
// Token: 0x04008107 RID: 33031
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4008107")]
private readonly Asn1OctetString challenge;
}
}
@@ -0,0 +1,143 @@
using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
{
// Token: 0x02001F50 RID: 8016
[Token(Token = "0x2001F50")]
public class CmpCertificate : Asn1Encodable, IAsn1Choice
{
// Token: 0x0600CACD RID: 51917 RVA: 0x002E765C File Offset: 0x002E585C
[Token(Token = "0x600CACD")]
[Address(RVA = "0x445BC0", Offset = "0x4449C0", VA = "0x180445BC0")]
public CmpCertificate(AttributeCertificate x509v2AttrCert)
{
this.x509v2AttrCert = x509v2AttrCert;
}
// Token: 0x0600CACE RID: 51918 RVA: 0x002E7678 File Offset: 0x002E5878
[Token(Token = "0x600CACE")]
[Address(RVA = "0x264B0C0", Offset = "0x2649EC0", VA = "0x18264B0C0")]
public CmpCertificate(X509CertificateStructure x509v3PKCert)
{
/*
An exception occurred when decompiling this method (0600CACE)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CmpCertificate::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.X509CertificateStructure)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_1D:
stloc:ArgumentException(var_0_2C, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("only version 3 certificates allowed"), ldstr:string("x509v3PKCert")))
}
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
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: 0x0600CACF RID: 51919 RVA: 0x002E76B4 File Offset: 0x002E58B4
[Token(Token = "0x600CACF")]
[Address(RVA = "0x264AD30", Offset = "0x2649B30", VA = "0x18264AD30")]
public static CmpCertificate GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600CACF)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CmpCertificate BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CmpCertificate::GetInstance(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_79:
stloc:ArgumentException(var_12_88, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("only version 3 certificates allowed"), ldstr:string("x509v3PKCert")))
}
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
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: 0x17002027 RID: 8231
// (get) Token: 0x0600CAD0 RID: 51920 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x17002027")]
public virtual bool IsX509v3PKCert
{
[Token(Token = "0x600CAD0")]
[Address(RVA = "0x111F720", Offset = "0x111E520", VA = "0x18111F720", Slot = "6")]
get
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
}
// Token: 0x17002028 RID: 8232
// (get) Token: 0x0600CAD1 RID: 51921 RVA: 0x002E774C File Offset: 0x002E594C
[Token(Token = "0x17002028")]
public virtual X509CertificateStructure X509v3PKCert
{
[Token(Token = "0x600CAD1")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "7")]
get
{
return this.x509v3PKCert;
}
}
// Token: 0x17002029 RID: 8233
// (get) Token: 0x0600CAD2 RID: 51922 RVA: 0x002E7760 File Offset: 0x002E5960
[Token(Token = "0x17002029")]
public virtual AttributeCertificate X509v2AttrCert
{
[Token(Token = "0x600CAD2")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "8")]
get
{
return this.x509v2AttrCert;
}
}
// Token: 0x0600CAD3 RID: 51923 RVA: 0x002E7774 File Offset: 0x002E5974
[Token(Token = "0x600CAD3")]
[Address(RVA = "0x264B020", Offset = "0x2649E20", VA = "0x18264B020", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
AttributeCertificate attributeCertificate = this.x509v2AttrCert;
if (attributeCertificate == 0)
{
return this.x509v3PKCert.ToAsn1Object();
}
DerTaggedObject derTaggedObject = new DerTaggedObject(16777216 != 0, 16777216, attributeCertificate);
throw new NullReferenceException();
}
// Token: 0x04008108 RID: 33032
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4008108")]
private readonly X509CertificateStructure x509v3PKCert;
// Token: 0x04008109 RID: 33033
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4008109")]
private readonly AttributeCertificate x509v2AttrCert;
}
}
@@ -0,0 +1,121 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
{
// Token: 0x02001F51 RID: 8017
[Token(Token = "0x2001F51")]
public abstract class CmpObjectIdentifiers
{
// Token: 0x0600CAD4 RID: 51924 RVA: 0x002E77B0 File Offset: 0x002E59B0
[Token(Token = "0x600CAD4")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
protected CmpObjectIdentifiers()
{
}
// Token: 0x0400810A RID: 33034
[Token(Token = "0x400810A")]
public static readonly DerObjectIdentifier passwordBasedMac = new DerObjectIdentifier("1.2.840.113533.7.66.13");
// Token: 0x0400810B RID: 33035
[Token(Token = "0x400810B")]
public static readonly DerObjectIdentifier dhBasedMac = new DerObjectIdentifier("1.2.840.113533.7.66.30");
// Token: 0x0400810C RID: 33036
[Token(Token = "0x400810C")]
public static readonly DerObjectIdentifier it_caProtEncCert = new DerObjectIdentifier("1.3.6.1.5.5.7.4.1");
// Token: 0x0400810D RID: 33037
[Token(Token = "0x400810D")]
public static readonly DerObjectIdentifier it_signKeyPairTypes = new DerObjectIdentifier("1.3.6.1.5.5.7.4.2");
// Token: 0x0400810E RID: 33038
[Token(Token = "0x400810E")]
public static readonly DerObjectIdentifier it_encKeyPairTypes = new DerObjectIdentifier("1.3.6.1.5.5.7.4.3");
// Token: 0x0400810F RID: 33039
[Token(Token = "0x400810F")]
public static readonly DerObjectIdentifier it_preferredSymAlg = new DerObjectIdentifier("1.3.6.1.5.5.7.4.4");
// Token: 0x04008110 RID: 33040
[Token(Token = "0x4008110")]
public static readonly DerObjectIdentifier it_caKeyUpdateInfo = new DerObjectIdentifier("1.3.6.1.5.5.7.4.5");
// Token: 0x04008111 RID: 33041
[Token(Token = "0x4008111")]
public static readonly DerObjectIdentifier it_currentCRL = new DerObjectIdentifier("1.3.6.1.5.5.7.4.6");
// Token: 0x04008112 RID: 33042
[Token(Token = "0x4008112")]
public static readonly DerObjectIdentifier it_unsupportedOIDs = new DerObjectIdentifier("1.3.6.1.5.5.7.4.7");
// Token: 0x04008113 RID: 33043
[Token(Token = "0x4008113")]
public static readonly DerObjectIdentifier it_keyPairParamReq = new DerObjectIdentifier("1.3.6.1.5.5.7.4.10");
// Token: 0x04008114 RID: 33044
[Token(Token = "0x4008114")]
public static readonly DerObjectIdentifier it_keyPairParamRep = new DerObjectIdentifier("1.3.6.1.5.5.7.4.11");
// Token: 0x04008115 RID: 33045
[Token(Token = "0x4008115")]
public static readonly DerObjectIdentifier it_revPassphrase = new DerObjectIdentifier("1.3.6.1.5.5.7.4.12");
// Token: 0x04008116 RID: 33046
[Token(Token = "0x4008116")]
public static readonly DerObjectIdentifier it_implicitConfirm = new DerObjectIdentifier("1.3.6.1.5.5.7.4.13");
// Token: 0x04008117 RID: 33047
[Token(Token = "0x4008117")]
public static readonly DerObjectIdentifier it_confirmWaitTime = new DerObjectIdentifier("1.3.6.1.5.5.7.4.14");
// Token: 0x04008118 RID: 33048
[Token(Token = "0x4008118")]
public static readonly DerObjectIdentifier it_origPKIMessage = new DerObjectIdentifier("1.3.6.1.5.5.7.4.15");
// Token: 0x04008119 RID: 33049
[Token(Token = "0x4008119")]
public static readonly DerObjectIdentifier it_suppLangTags = new DerObjectIdentifier("1.3.6.1.5.5.7.4.16");
// Token: 0x0400811A RID: 33050
[Token(Token = "0x400811A")]
public static readonly DerObjectIdentifier regCtrl_regToken = new DerObjectIdentifier("1.3.6.1.5.5.7.5.1.1");
// Token: 0x0400811B RID: 33051
[Token(Token = "0x400811B")]
public static readonly DerObjectIdentifier regCtrl_authenticator = new DerObjectIdentifier("1.3.6.1.5.5.7.5.1.2");
// Token: 0x0400811C RID: 33052
[Token(Token = "0x400811C")]
public static readonly DerObjectIdentifier regCtrl_pkiPublicationInfo = new DerObjectIdentifier("1.3.6.1.5.5.7.5.1.3");
// Token: 0x0400811D RID: 33053
[Token(Token = "0x400811D")]
public static readonly DerObjectIdentifier regCtrl_pkiArchiveOptions = new DerObjectIdentifier("1.3.6.1.5.5.7.5.1.4");
// Token: 0x0400811E RID: 33054
[Token(Token = "0x400811E")]
public static readonly DerObjectIdentifier regCtrl_oldCertID = new DerObjectIdentifier("1.3.6.1.5.5.7.5.1.5");
// Token: 0x0400811F RID: 33055
[Token(Token = "0x400811F")]
public static readonly DerObjectIdentifier regCtrl_protocolEncrKey = new DerObjectIdentifier("1.3.6.1.5.5.7.5.1.6");
// Token: 0x04008120 RID: 33056
[Token(Token = "0x4008120")]
public static readonly DerObjectIdentifier regCtrl_altCertTemplate = new DerObjectIdentifier("1.3.6.1.5.5.7.5.1.7");
// Token: 0x04008121 RID: 33057
[Token(Token = "0x4008121")]
public static readonly DerObjectIdentifier regInfo_utf8Pairs = new DerObjectIdentifier("1.3.6.1.5.5.7.5.2.1");
// Token: 0x04008122 RID: 33058
[Token(Token = "0x4008122")]
public static readonly DerObjectIdentifier regInfo_certReq = new DerObjectIdentifier("1.3.6.1.5.5.7.5.2.2");
// Token: 0x04008123 RID: 33059
[Token(Token = "0x4008123")]
public static readonly DerObjectIdentifier ct_encKeyWithID = new DerObjectIdentifier("1.2.840.113549.1.9.16.1.21");
}
}
@@ -0,0 +1,99 @@
using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
{
// Token: 0x02001F52 RID: 8018
[Token(Token = "0x2001F52")]
public class CrlAnnContent : Asn1Encodable
{
// Token: 0x0600CAD6 RID: 51926 RVA: 0x002E7958 File Offset: 0x002E5B58
[Token(Token = "0x600CAD6")]
[Address(RVA = "0x3FFB80", Offset = "0x3FE980", VA = "0x1803FFB80")]
private CrlAnnContent(Asn1Sequence seq)
{
this.content = seq;
}
// Token: 0x0600CAD7 RID: 51927 RVA: 0x002E7974 File Offset: 0x002E5B74
[Token(Token = "0x600CAD7")]
[Address(RVA = "0x264B6E0", Offset = "0x264A4E0", VA = "0x18264B6E0")]
public static CrlAnnContent GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600CAD7)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CrlAnnContent BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CrlAnnContent::GetInstance(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_29:
stloc:string(var_6_2F, call:string(Platform::GetTypeName, ldloc:object(obj)))
stloc:ArgumentException(var_7_47, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_6_2F)), 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: 0x0600CAD8 RID: 51928 RVA: 0x002E79CC File Offset: 0x002E5BCC
[Token(Token = "0x600CAD8")]
[Address(RVA = "0x264B8D0", Offset = "0x264A6D0", VA = "0x18264B8D0", Slot = "6")]
public virtual CertificateList[] ToCertificateListArray()
{
Asn1Sequence asn1Sequence = this.content;
Asn1Encodable asn1Encodable;
CertificateList[] array = new CertificateList[asn1Encodable];
int num = 0;
if (num != array.Length)
{
Asn1SequenceParser parser = this.content.Parser;
CertificateList certificateList;
if (certificateList != 0)
{
}
num++;
array[0] = certificateList;
}
return array;
}
// Token: 0x0600CAD9 RID: 51929 RVA: 0x002E7A18 File Offset: 0x002E5C18
[Token(Token = "0x600CAD9")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
/*
An exception occurred when decompiling this method (0600CAD9)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CrlAnnContent::ToAsn1Object()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:Asn1Sequence(var_0_06, ldfld:Asn1Sequence(CrlAnnContent::content, ldloc:CrlAnnContent(this)))
}
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: 0x04008124 RID: 33060
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4008124")]
private readonly Asn1Sequence content;
}
}
@@ -0,0 +1,199 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
{
// Token: 0x02001F53 RID: 8019
[Token(Token = "0x2001F53")]
public class ErrorMsgContent : Asn1Encodable
{
// Token: 0x0600CADA RID: 51930 RVA: 0x002E7A2C File Offset: 0x002E5C2C
[Token(Token = "0x600CADA")]
[Address(RVA = "0x264D060", Offset = "0x264BE60", VA = "0x18264D060")]
private ErrorMsgContent(Asn1Sequence seq)
{
Asn1SequenceParser parser = seq.Parser;
PkiStatusInfo pkiStatusInfo;
this.pkiStatusInfo = pkiStatusInfo;
Asn1Encodable asn1Encodable;
if ((uint)1 < asn1Encodable)
{
Asn1SequenceParser parser2 = seq.Parser;
if (parser2 != 0 && parser2 != 0)
{
DerInteger derInteger;
this.errorCode = derInteger;
}
PkiFreeText pkiFreeText;
this.errorDetails = pkiFreeText;
}
}
// Token: 0x0600CADB RID: 51931 RVA: 0x002E7A7C File Offset: 0x002E5C7C
[Token(Token = "0x600CADB")]
[Address(RVA = "0x264CBA0", Offset = "0x264B9A0", VA = "0x18264CBA0")]
public static ErrorMsgContent GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600CADB)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.ErrorMsgContent BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.ErrorMsgContent::GetInstance(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_44:
stloc:string(var_11_4A, call:string(Platform::GetTypeName, ldloc:object(obj)))
stloc:ArgumentException(var_12_62, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_11_4A)), 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: 0x0600CADC RID: 51932 RVA: 0x002E7AEC File Offset: 0x002E5CEC
[Token(Token = "0x600CADC")]
[Address(RVA = "0x264D190", Offset = "0x264BF90", VA = "0x18264D190")]
public ErrorMsgContent(PkiStatusInfo pkiStatusInfo)
{
/*
An exception occurred when decompiling this method (0600CADC)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.ErrorMsgContent::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiStatusInfo)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_22:
stloc:ArgumentNullException(var_1_2C, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("pkiStatusInfo")))
}
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
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: 0x0600CADD RID: 51933 RVA: 0x002E7B28 File Offset: 0x002E5D28
[Token(Token = "0x600CADD")]
[Address(RVA = "0x264D220", Offset = "0x264C020", VA = "0x18264D220")]
public ErrorMsgContent(PkiStatusInfo pkiStatusInfo, DerInteger errorCode, PkiFreeText errorDetails)
{
/*
An exception occurred when decompiling this method (0600CADD)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.ErrorMsgContent::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiStatusInfo,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiFreeText)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_20:
stloc:ArgumentNullException(var_0_2A, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("pkiStatusInfo")))
}
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
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: 0x1700202A RID: 8234
// (get) Token: 0x0600CADE RID: 51934 RVA: 0x002E7B60 File Offset: 0x002E5D60
[Token(Token = "0x1700202A")]
public virtual PkiStatusInfo PkiStatusInfo
{
[Token(Token = "0x600CADE")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
get
{
return this.pkiStatusInfo;
}
}
// Token: 0x1700202B RID: 8235
// (get) Token: 0x0600CADF RID: 51935 RVA: 0x002E7B74 File Offset: 0x002E5D74
[Token(Token = "0x1700202B")]
public virtual DerInteger ErrorCode
{
[Token(Token = "0x600CADF")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
get
{
return this.errorCode;
}
}
// Token: 0x1700202C RID: 8236
// (get) Token: 0x0600CAE0 RID: 51936 RVA: 0x002E7B88 File Offset: 0x002E5D88
[Token(Token = "0x1700202C")]
public virtual PkiFreeText ErrorDetails
{
[Token(Token = "0x600CAE0")]
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400", Slot = "8")]
get
{
return this.errorDetails;
}
}
// Token: 0x0600CAE1 RID: 51937 RVA: 0x002E7B9C File Offset: 0x002E5D9C
[Token(Token = "0x600CAE1")]
[Address(RVA = "0x264CE90", Offset = "0x264BC90", VA = "0x18264CE90", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1Encodable[] array = new Asn1Encodable[1];
PkiStatusInfo pkiStatusInfo = this.pkiStatusInfo;
if (pkiStatusInfo != 0)
{
}
array[0] = pkiStatusInfo;
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
Asn1Encodable[] array2 = new Asn1Encodable[2];
DerInteger derInteger = this.errorCode;
if (derInteger != 0)
{
}
array2[0] = derInteger;
PkiFreeText pkiFreeText = this.errorDetails;
if (pkiFreeText != 0)
{
}
array2[1] = pkiFreeText;
asn1EncodableVector.AddOptional(array2);
DerSequence derSequence = new DerSequence(asn1EncodableVector);
throw new NullReferenceException();
}
// Token: 0x04008125 RID: 33061
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4008125")]
private readonly PkiStatusInfo pkiStatusInfo;
// Token: 0x04008126 RID: 33062
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4008126")]
private readonly DerInteger errorCode;
// Token: 0x04008127 RID: 33063
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4008127")]
private readonly PkiFreeText errorDetails;
}
}
@@ -0,0 +1,107 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
{
// Token: 0x02001F54 RID: 8020
[Token(Token = "0x2001F54")]
public class GenMsgContent : Asn1Encodable
{
// Token: 0x0600CAE2 RID: 51938 RVA: 0x002E7C14 File Offset: 0x002E5E14
[Token(Token = "0x600CAE2")]
[Address(RVA = "0x3FFB80", Offset = "0x3FE980", VA = "0x1803FFB80")]
private GenMsgContent(Asn1Sequence seq)
{
this.content = seq;
}
// Token: 0x0600CAE3 RID: 51939 RVA: 0x002E7C30 File Offset: 0x002E5E30
[Token(Token = "0x600CAE3")]
[Address(RVA = "0x264D4C0", Offset = "0x264C2C0", VA = "0x18264D4C0")]
public static GenMsgContent GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600CAE3)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.GenMsgContent BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.GenMsgContent::GetInstance(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_29:
stloc:string(var_6_2F, call:string(Platform::GetTypeName, ldloc:object(obj)))
stloc:ArgumentException(var_7_47, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_6_2F)), 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: 0x0600CAE4 RID: 51940 RVA: 0x002E7C88 File Offset: 0x002E5E88
[Token(Token = "0x600CAE4")]
[Address(RVA = "0x264D7C0", Offset = "0x264C5C0", VA = "0x18264D7C0")]
public GenMsgContent(params InfoTypeAndValue[] itv)
{
DerSequence derSequence = new DerSequence(itv);
this.content = derSequence;
}
// Token: 0x0600CAE5 RID: 51941 RVA: 0x002E7CAC File Offset: 0x002E5EAC
[Token(Token = "0x600CAE5")]
[Address(RVA = "0x264D6B0", Offset = "0x264C4B0", VA = "0x18264D6B0", Slot = "6")]
public virtual InfoTypeAndValue[] ToInfoTypeAndValueArray()
{
Asn1Sequence asn1Sequence = this.content;
Asn1Encodable asn1Encodable;
InfoTypeAndValue[] array = new InfoTypeAndValue[asn1Encodable];
int num = 0;
if (num != array.Length)
{
Asn1SequenceParser parser = this.content.Parser;
InfoTypeAndValue infoTypeAndValue;
if (infoTypeAndValue != 0)
{
}
num++;
array[0] = infoTypeAndValue;
}
return array;
}
// Token: 0x0600CAE6 RID: 51942 RVA: 0x002E7CF8 File Offset: 0x002E5EF8
[Token(Token = "0x600CAE6")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
/*
An exception occurred when decompiling this method (0600CAE6)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.GenMsgContent::ToAsn1Object()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:Asn1Sequence(var_0_06, ldfld:Asn1Sequence(GenMsgContent::content, ldloc:GenMsgContent(this)))
}
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: 0x04008128 RID: 33064
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4008128")]
private readonly Asn1Sequence content;
}
}
@@ -0,0 +1,107 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
{
// Token: 0x02001F55 RID: 8021
[Token(Token = "0x2001F55")]
public class GenRepContent : Asn1Encodable
{
// Token: 0x0600CAE7 RID: 51943 RVA: 0x002E7D0C File Offset: 0x002E5F0C
[Token(Token = "0x600CAE7")]
[Address(RVA = "0x3FFB80", Offset = "0x3FE980", VA = "0x1803FFB80")]
private GenRepContent(Asn1Sequence seq)
{
this.content = seq;
}
// Token: 0x0600CAE8 RID: 51944 RVA: 0x002E7D28 File Offset: 0x002E5F28
[Token(Token = "0x600CAE8")]
[Address(RVA = "0x264D830", Offset = "0x264C630", VA = "0x18264D830")]
public static GenRepContent GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600CAE8)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.GenRepContent BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.GenRepContent::GetInstance(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_29:
stloc:string(var_6_2F, call:string(Platform::GetTypeName, ldloc:object(obj)))
stloc:ArgumentException(var_7_47, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_6_2F)), 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: 0x0600CAE9 RID: 51945 RVA: 0x002E7D80 File Offset: 0x002E5F80
[Token(Token = "0x600CAE9")]
[Address(RVA = "0x264DB30", Offset = "0x264C930", VA = "0x18264DB30")]
public GenRepContent(params InfoTypeAndValue[] itv)
{
DerSequence derSequence = new DerSequence(itv);
this.content = derSequence;
}
// Token: 0x0600CAEA RID: 51946 RVA: 0x002E7DA4 File Offset: 0x002E5FA4
[Token(Token = "0x600CAEA")]
[Address(RVA = "0x264DA20", Offset = "0x264C820", VA = "0x18264DA20", Slot = "6")]
public virtual InfoTypeAndValue[] ToInfoTypeAndValueArray()
{
Asn1Sequence asn1Sequence = this.content;
Asn1Encodable asn1Encodable;
InfoTypeAndValue[] array = new InfoTypeAndValue[asn1Encodable];
int num = 0;
if (num != array.Length)
{
Asn1SequenceParser parser = this.content.Parser;
InfoTypeAndValue infoTypeAndValue;
if (infoTypeAndValue != 0)
{
}
num++;
array[0] = infoTypeAndValue;
}
return array;
}
// Token: 0x0600CAEB RID: 51947 RVA: 0x002E7DF0 File Offset: 0x002E5FF0
[Token(Token = "0x600CAEB")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
/*
An exception occurred when decompiling this method (0600CAEB)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.GenRepContent::ToAsn1Object()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:Asn1Sequence(var_0_06, ldfld:Asn1Sequence(GenRepContent::content, ldloc:GenRepContent(this)))
}
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: 0x04008129 RID: 33065
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4008129")]
private readonly Asn1Sequence content;
}
}
@@ -0,0 +1,133 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
{
// Token: 0x02001F56 RID: 8022
[Token(Token = "0x2001F56")]
public class InfoTypeAndValue : Asn1Encodable
{
// Token: 0x0600CAEC RID: 51948 RVA: 0x002E7E04 File Offset: 0x002E6004
[Token(Token = "0x600CAEC")]
[Address(RVA = "0x264F300", Offset = "0x264E100", VA = "0x18264F300")]
private InfoTypeAndValue(Asn1Sequence seq)
{
Asn1SequenceParser parser = seq.Parser;
DerObjectIdentifier derObjectIdentifier;
this.infoType = derObjectIdentifier;
Asn1Encodable asn1Encodable;
if (asn1Encodable > (ulong)1L)
{
Asn1SequenceParser parser2 = seq.Parser;
this.infoValue = parser2;
}
}
// Token: 0x0600CAED RID: 51949 RVA: 0x002E7E40 File Offset: 0x002E6040
[Token(Token = "0x600CAED")]
[Address(RVA = "0x264EF10", Offset = "0x264DD10", VA = "0x18264EF10")]
public static InfoTypeAndValue GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600CAED)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.InfoTypeAndValue BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.InfoTypeAndValue::GetInstance(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_23:
stloc:string(var_6_29, call:string(Platform::GetTypeName, ldloc:object(obj)))
stloc:ArgumentException(var_7_41, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_6_29)), 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: 0x0600CAEE RID: 51950 RVA: 0x002E7E90 File Offset: 0x002E6090
[Token(Token = "0x600CAEE")]
[Address(RVA = "0x1B151E0", Offset = "0x1B13FE0", VA = "0x181B151E0")]
public InfoTypeAndValue(DerObjectIdentifier infoType)
{
this.infoType = infoType;
this.infoValue = (ulong)0L;
}
// Token: 0x0600CAEF RID: 51951 RVA: 0x002E7EB4 File Offset: 0x002E60B4
[Token(Token = "0x600CAEF")]
[Address(RVA = "0x4089A0", Offset = "0x4077A0", VA = "0x1804089A0")]
public InfoTypeAndValue(DerObjectIdentifier infoType, Asn1Encodable optionalValue)
{
this.infoType = infoType;
this.infoValue = optionalValue;
}
// Token: 0x1700202D RID: 8237
// (get) Token: 0x0600CAF0 RID: 51952 RVA: 0x002E7ED8 File Offset: 0x002E60D8
[Token(Token = "0x1700202D")]
public virtual DerObjectIdentifier InfoType
{
[Token(Token = "0x600CAF0")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
get
{
return this.infoType;
}
}
// Token: 0x1700202E RID: 8238
// (get) Token: 0x0600CAF1 RID: 51953 RVA: 0x002E7EEC File Offset: 0x002E60EC
[Token(Token = "0x1700202E")]
public virtual Asn1Encodable InfoValue
{
[Token(Token = "0x600CAF1")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
get
{
return this.infoValue;
}
}
// Token: 0x0600CAF2 RID: 51954 RVA: 0x002E7F00 File Offset: 0x002E6100
[Token(Token = "0x600CAF2")]
[Address(RVA = "0x264F190", Offset = "0x264DF90", VA = "0x18264F190", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1Encodable[] array = new Asn1Encodable[1];
DerObjectIdentifier derObjectIdentifier = this.infoType;
if (derObjectIdentifier != 0)
{
}
array[0] = derObjectIdentifier;
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
if (this.infoValue != (ulong)0L)
{
Asn1Encodable[] array2 = new Asn1Encodable[1];
Asn1Encodable asn1Encodable = this.infoValue;
if (asn1Encodable != 0)
{
}
array2[0] = asn1Encodable;
asn1EncodableVector.Add(array2);
}
DerSequence derSequence = new DerSequence(asn1EncodableVector);
throw new NullReferenceException();
}
// Token: 0x0400812A RID: 33066
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x400812A")]
private readonly DerObjectIdentifier infoType;
// Token: 0x0400812B RID: 33067
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400812B")]
private readonly Asn1Encodable infoValue;
}
}
@@ -0,0 +1,228 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
{
// Token: 0x02001F57 RID: 8023
[Token(Token = "0x2001F57")]
public class KeyRecRepContent : Asn1Encodable
{
// Token: 0x0600CAF3 RID: 51955 RVA: 0x002E7F6C File Offset: 0x002E616C
[Token(Token = "0x600CAF3")]
[Address(RVA = "0x2651780", Offset = "0x2650580", VA = "0x182651780")]
private KeyRecRepContent(Asn1Sequence seq)
{
Asn1SequenceParser parser = seq.Parser;
PkiStatusInfo pkiStatusInfo;
this.status = pkiStatusInfo;
uint num;
Asn1Encodable asn1Encodable;
if (num < asn1Encodable)
{
Asn1SequenceParser parser2 = seq.Parser;
Asn1TaggedObject asn1TaggedObject;
int tagNo = asn1TaggedObject.tagNo;
if (tagNo != 0)
{
if (tagNo != 0)
{
if (tagNo != 1)
{
throw new NullReferenceException();
}
Asn1Encodable obj = asn1TaggedObject.obj;
if (obj == 0)
{
Asn1Sequence instance = Asn1Sequence.GetInstance(0);
this.keyPairHist = instance;
num += (uint)1;
}
Asn1Sequence instance2 = Asn1Sequence.GetInstance(obj.ToAsn1Object());
this.keyPairHist = instance2;
num += (uint)1;
}
if (asn1TaggedObject.obj == 0)
{
Asn1Sequence instance3 = Asn1Sequence.GetInstance(0);
this.caCerts = instance3;
num += (uint)1;
}
int num2;
Asn1Sequence instance4 = Asn1Sequence.GetInstance(num2);
this.caCerts = instance4;
num += (uint)1;
}
Asn1Encodable obj2 = asn1TaggedObject.obj;
if (obj2 == 0)
{
}
CmpCertificate instance5 = CmpCertificate.GetInstance(obj2.ToAsn1Object());
this.newSigCert = instance5;
num += (uint)1;
}
}
// Token: 0x0600CAF4 RID: 51956 RVA: 0x002E8080 File Offset: 0x002E6280
[Token(Token = "0x600CAF4")]
[Address(RVA = "0x2651330", Offset = "0x2650130", VA = "0x182651330")]
public static KeyRecRepContent GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600CAF4)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.KeyRecRepContent BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.KeyRecRepContent::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: 0x1700202F RID: 8239
// (get) Token: 0x0600CAF5 RID: 51957 RVA: 0x002E80D0 File Offset: 0x002E62D0
[Token(Token = "0x1700202F")]
public virtual PkiStatusInfo Status
{
[Token(Token = "0x600CAF5")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
get
{
return this.status;
}
}
// Token: 0x17002030 RID: 8240
// (get) Token: 0x0600CAF6 RID: 51958 RVA: 0x002E80E4 File Offset: 0x002E62E4
[Token(Token = "0x17002030")]
public virtual CmpCertificate NewSigCert
{
[Token(Token = "0x600CAF6")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
get
{
return this.newSigCert;
}
}
// Token: 0x0600CAF7 RID: 51959 RVA: 0x002E80F8 File Offset: 0x002E62F8
[Token(Token = "0x600CAF7")]
[Address(RVA = "0x2651210", Offset = "0x2650010", VA = "0x182651210", Slot = "8")]
public virtual CmpCertificate[] GetCACerts()
{
if (this.caCerts != 0)
{
Asn1Encodable asn1Encodable;
CmpCertificate[] array = new CmpCertificate[asn1Encodable];
int num = 0;
if (num != array.Length)
{
Asn1SequenceParser parser = this.caCerts.Parser;
CmpCertificate cmpCertificate;
if (cmpCertificate != 0)
{
}
num++;
array[0] = cmpCertificate;
}
return array;
}
throw new ArrayTypeMismatchException();
}
// Token: 0x0600CAF8 RID: 51960 RVA: 0x002E8148 File Offset: 0x002E6348
[Token(Token = "0x600CAF8")]
[Address(RVA = "0x2651520", Offset = "0x2650320", VA = "0x182651520", Slot = "9")]
public virtual CertifiedKeyPair[] GetKeyPairHist()
{
if (this.keyPairHist != 0)
{
Asn1Encodable asn1Encodable;
CertifiedKeyPair[] array = new CertifiedKeyPair[asn1Encodable];
int num = 0;
if (num != array.Length)
{
Asn1SequenceParser parser = this.keyPairHist.Parser;
CertifiedKeyPair certifiedKeyPair;
if (certifiedKeyPair != 0)
{
}
num++;
array[0] = certifiedKeyPair;
}
return array;
}
throw new ArrayTypeMismatchException();
}
// Token: 0x0600CAF9 RID: 51961 RVA: 0x002E8198 File Offset: 0x002E6398
[Token(Token = "0x600CAF9")]
[Address(RVA = "0x2651640", Offset = "0x2650440", VA = "0x182651640", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1Encodable[] array = new Asn1Encodable[1];
PkiStatusInfo pkiStatusInfo = this.status;
if (pkiStatusInfo != 0)
{
}
array[0] = pkiStatusInfo;
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
CmpCertificate cmpCertificate = this.newSigCert;
int num = 0;
this.AddOptional(asn1EncodableVector, num, cmpCertificate);
Asn1Sequence asn1Sequence = this.caCerts;
this.AddOptional(asn1EncodableVector, 1, asn1Sequence);
Asn1Sequence asn1Sequence2 = this.keyPairHist;
this.AddOptional(asn1EncodableVector, 2, asn1Sequence2);
DerSequence derSequence = new DerSequence(asn1EncodableVector);
throw new NullReferenceException();
}
// Token: 0x0600CAFA RID: 51962 RVA: 0x002E8210 File Offset: 0x002E6410
[Token(Token = "0x600CAFA")]
[Address(RVA = "0x2651110", Offset = "0x264FF10", VA = "0x182651110")]
private void AddOptional(Asn1EncodableVector v, int tagNo, Asn1Encodable obj)
{
if (obj != 0)
{
Asn1Encodable[] array = new Asn1Encodable[1];
DerTaggedObject derTaggedObject = new DerTaggedObject(true, tagNo, obj);
if (derTaggedObject != 0)
{
}
array[0] = derTaggedObject;
v.Add(array);
}
}
// Token: 0x0400812C RID: 33068
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x400812C")]
private readonly PkiStatusInfo status;
// Token: 0x0400812D RID: 33069
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400812D")]
private readonly CmpCertificate newSigCert;
// Token: 0x0400812E RID: 33070
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x400812E")]
private readonly Asn1Sequence caCerts;
// Token: 0x0400812F RID: 33071
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x400812F")]
private readonly Asn1Sequence keyPairHist;
}
}
@@ -0,0 +1,140 @@
using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
{
// Token: 0x02001F58 RID: 8024
[Token(Token = "0x2001F58")]
public class OobCertHash : Asn1Encodable
{
// Token: 0x0600CAFB RID: 51963 RVA: 0x002E824C File Offset: 0x002E644C
[Token(Token = "0x600CAFB")]
[Address(RVA = "0x2652350", Offset = "0x2651150", VA = "0x182652350")]
private OobCertHash(Asn1Sequence seq)
{
Asn1SequenceParser parser2;
do
{
base..ctor();
Asn1SequenceParser parser = seq.Parser;
DerBitString derBitString;
this.hashVal = derBitString;
parser2 = seq.Parser;
}
while (parser2 == 0);
CertId certId;
this.certId = certId;
AlgorithmIdentifier algorithmIdentifier;
this.hashAlg = algorithmIdentifier;
}
// Token: 0x0600CAFC RID: 51964 RVA: 0x002E8298 File Offset: 0x002E6498
[Token(Token = "0x600CAFC")]
[Address(RVA = "0x2651EE0", Offset = "0x2650CE0", VA = "0x182651EE0")]
public static OobCertHash GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600CAFC)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.OobCertHash BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.OobCertHash::GetInstance(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_42:
stloc:string(var_11_48, call:string(Platform::GetTypeName, ldloc:object(obj)))
stloc:ArgumentException(var_12_60, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_11_48)), 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: 0x17002031 RID: 8241
// (get) Token: 0x0600CAFD RID: 51965 RVA: 0x002E8308 File Offset: 0x002E6508
[Token(Token = "0x17002031")]
public virtual AlgorithmIdentifier HashAlg
{
[Token(Token = "0x600CAFD")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
get
{
return this.hashAlg;
}
}
// Token: 0x17002032 RID: 8242
// (get) Token: 0x0600CAFE RID: 51966 RVA: 0x002E831C File Offset: 0x002E651C
[Token(Token = "0x17002032")]
public virtual CertId CertID
{
[Token(Token = "0x600CAFE")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
get
{
return this.certId;
}
}
// Token: 0x0600CAFF RID: 51967 RVA: 0x002E8330 File Offset: 0x002E6530
[Token(Token = "0x600CAFF")]
[Address(RVA = "0x2652210", Offset = "0x2651010", VA = "0x182652210", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
AlgorithmIdentifier algorithmIdentifier = this.hashAlg;
int num = 0;
Asn1EncodableVector asn1EncodableVector;
this.AddOptional(asn1EncodableVector, num, algorithmIdentifier);
CertId certId = this.certId;
this.AddOptional(asn1EncodableVector, 1, certId);
Asn1Encodable[] array = new Asn1Encodable[0];
DerBitString derBitString = this.hashVal;
if (derBitString != 0)
{
}
array[0] = derBitString;
asn1EncodableVector.Add(array);
DerSequence derSequence = new DerSequence(asn1EncodableVector);
throw new NullReferenceException();
}
// Token: 0x0600CB00 RID: 51968 RVA: 0x002E8398 File Offset: 0x002E6598
[Token(Token = "0x600CB00")]
[Address(RVA = "0x2651DE0", Offset = "0x2650BE0", VA = "0x182651DE0")]
private void AddOptional(Asn1EncodableVector v, int tagNo, Asn1Encodable obj)
{
if (obj != 0)
{
Asn1Encodable[] array = new Asn1Encodable[1];
DerTaggedObject derTaggedObject = new DerTaggedObject(true, tagNo, obj);
if (derTaggedObject != 0)
{
}
array[0] = derTaggedObject;
v.Add(array);
}
}
// Token: 0x04008130 RID: 33072
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4008130")]
private readonly AlgorithmIdentifier hashAlg;
// Token: 0x04008131 RID: 33073
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4008131")]
private readonly CertId certId;
// Token: 0x04008132 RID: 33074
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4008132")]
private readonly DerBitString hashVal;
}
}
@@ -0,0 +1,186 @@
using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
{
// Token: 0x02001F64 RID: 8036
[Token(Token = "0x2001F64")]
public class PbmParameter : Asn1Encodable
{
// Token: 0x0600CB60 RID: 52064 RVA: 0x002E9770 File Offset: 0x002E7970
[Token(Token = "0x600CB60")]
[Address(RVA = "0x26528F0", Offset = "0x26516F0", VA = "0x1826528F0")]
private PbmParameter(Asn1Sequence seq)
{
Asn1SequenceParser parser = seq.Parser;
Asn1OctetString asn1OctetString;
this.salt = asn1OctetString;
Asn1SequenceParser parser2 = seq.Parser;
AlgorithmIdentifier algorithmIdentifier;
this.owf = algorithmIdentifier;
Asn1SequenceParser parser3 = seq.Parser;
DerInteger derInteger;
this.iterationCount = derInteger;
Asn1SequenceParser parser4 = seq.Parser;
AlgorithmIdentifier algorithmIdentifier2;
this.mac = algorithmIdentifier2;
}
// Token: 0x0600CB61 RID: 52065 RVA: 0x002E97C8 File Offset: 0x002E79C8
[Token(Token = "0x600CB61")]
[Address(RVA = "0x26524B0", Offset = "0x26512B0", VA = "0x1826524B0")]
public static PbmParameter GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600CB61)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PbmParameter BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PbmParameter::GetInstance(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_42:
stloc:string(var_10_48, call:string(Platform::GetTypeName, ldloc:object(obj)))
stloc:ArgumentException(var_11_60, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_10_48)), 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: 0x0600CB62 RID: 52066 RVA: 0x002E9838 File Offset: 0x002E7A38
[Token(Token = "0x600CB62")]
[Address(RVA = "0x26529C0", Offset = "0x26517C0", VA = "0x1826529C0")]
public PbmParameter(byte[] salt, AlgorithmIdentifier owf, int iterationCount, AlgorithmIdentifier mac)
{
DerOctetString derOctetString = new DerOctetString(salt);
DerInteger derInteger = new DerInteger(iterationCount);
int num = 0;
int num2 = 0;
base.FieldGetter(num2, num, iterationCount);
this.salt = derOctetString;
this.iterationCount = derInteger;
this.mac = 0;
this.owf = owf;
}
// Token: 0x0600CB63 RID: 52067 RVA: 0x002E987C File Offset: 0x002E7A7C
[Token(Token = "0x600CB63")]
[Address(RVA = "0xBD6F30", Offset = "0xBD5D30", VA = "0x180BD6F30")]
public PbmParameter(Asn1OctetString salt, AlgorithmIdentifier owf, DerInteger iterationCount, AlgorithmIdentifier mac)
{
this.salt = salt;
this.iterationCount = iterationCount;
this.mac = 0;
this.owf = owf;
}
// Token: 0x1700204A RID: 8266
// (get) Token: 0x0600CB64 RID: 52068 RVA: 0x002E98AC File Offset: 0x002E7AAC
[Token(Token = "0x1700204A")]
public virtual Asn1OctetString Salt
{
[Token(Token = "0x600CB64")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
get
{
return this.salt;
}
}
// Token: 0x1700204B RID: 8267
// (get) Token: 0x0600CB65 RID: 52069 RVA: 0x002E98C0 File Offset: 0x002E7AC0
[Token(Token = "0x1700204B")]
public virtual AlgorithmIdentifier Owf
{
[Token(Token = "0x600CB65")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
get
{
return this.owf;
}
}
// Token: 0x1700204C RID: 8268
// (get) Token: 0x0600CB66 RID: 52070 RVA: 0x002E98D4 File Offset: 0x002E7AD4
[Token(Token = "0x1700204C")]
public virtual DerInteger IterationCount
{
[Token(Token = "0x600CB66")]
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400", Slot = "8")]
get
{
return this.iterationCount;
}
}
// Token: 0x1700204D RID: 8269
// (get) Token: 0x0600CB67 RID: 52071 RVA: 0x002E98E8 File Offset: 0x002E7AE8
[Token(Token = "0x1700204D")]
public virtual AlgorithmIdentifier Mac
{
[Token(Token = "0x600CB67")]
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0", Slot = "9")]
get
{
return this.mac;
}
}
// Token: 0x0600CB68 RID: 52072 RVA: 0x002E98FC File Offset: 0x002E7AFC
[Token(Token = "0x600CB68")]
[Address(RVA = "0x2652730", Offset = "0x2651530", VA = "0x182652730", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1Encodable[] array = new Asn1Encodable[4];
Asn1OctetString asn1OctetString = this.salt;
if (asn1OctetString != 0)
{
}
array[0] = asn1OctetString;
AlgorithmIdentifier algorithmIdentifier = this.owf;
if (algorithmIdentifier != 0)
{
}
array[1] = algorithmIdentifier;
DerInteger derInteger = this.iterationCount;
if (derInteger != 0)
{
}
array[2] = derInteger;
AlgorithmIdentifier algorithmIdentifier2 = this.mac;
if (algorithmIdentifier2 != 0)
{
}
array[3] = algorithmIdentifier2;
DerSequence derSequence = new DerSequence(array);
throw new NullReferenceException();
}
// Token: 0x0400819F RID: 33183
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x400819F")]
private Asn1OctetString salt;
// Token: 0x040081A0 RID: 33184
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40081A0")]
private AlgorithmIdentifier owf;
// Token: 0x040081A1 RID: 33185
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x40081A1")]
private DerInteger iterationCount;
// Token: 0x040081A2 RID: 33186
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x40081A2")]
private AlgorithmIdentifier mac;
}
}
@@ -0,0 +1,261 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
{
// Token: 0x02001F59 RID: 8025
[Token(Token = "0x2001F59")]
public class PkiBody : Asn1Encodable, IAsn1Choice
{
// Token: 0x0600CB01 RID: 51969 RVA: 0x002E83D4 File Offset: 0x002E65D4
[Token(Token = "0x600CB01")]
[Address(RVA = "0x2652D30", Offset = "0x2651B30", VA = "0x182652D30")]
public static PkiBody GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600CB01)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiBody BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiBody::GetInstance(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_3D:
stloc:string(var_8_43, call:string(Platform::GetTypeName, ldloc:object(obj)))
stloc:ArgumentException(var_9_5B, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_8_43)), 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: 0x0600CB02 RID: 51970 RVA: 0x002E8440 File Offset: 0x002E6640
[Token(Token = "0x600CB02")]
[Address(RVA = "0x2652FD0", Offset = "0x2651DD0", VA = "0x182652FD0")]
private PkiBody(Asn1TaggedObject tagged)
{
int num = tagged.tagNo;
this.tagNo = num;
Asn1Encodable obj = tagged.obj;
if (obj == 0)
{
}
Asn1Object asn1Object = obj.ToAsn1Object();
Asn1Encodable bodyForType = PkiBody.GetBodyForType(num, asn1Object);
this.body = bodyForType;
}
// Token: 0x0600CB03 RID: 51971 RVA: 0x002E8488 File Offset: 0x002E6688
[Token(Token = "0x600CB03")]
[Address(RVA = "0x2653040", Offset = "0x2651E40", VA = "0x182653040")]
public PkiBody(int type, Asn1Encodable content)
{
this.tagNo = type;
Asn1Encodable bodyForType = PkiBody.GetBodyForType(type, content);
this.body = bodyForType;
}
// Token: 0x0600CB04 RID: 51972 RVA: 0x002E84B4 File Offset: 0x002E66B4
[Token(Token = "0x600CB04")]
[Address(RVA = "0x2652A80", Offset = "0x2651880", VA = "0x182652A80")]
private static Asn1Encodable GetBodyForType(int type, Asn1Encodable o)
{
/*
An exception occurred when decompiling this method (0600CB04)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Encodable BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiBody::GetBodyForType(System.Int32,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Encodable)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_0C:
stloc:ArgumentException(var_20_21, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string[exp:object]("unknown tag number: "), ldloc:int32[exp:object](type)), ldstr:string("type")))
}
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: 0x17002033 RID: 8243
// (get) Token: 0x0600CB05 RID: 51973 RVA: 0x002E84E4 File Offset: 0x002E66E4
[Token(Token = "0x17002033")]
public virtual int Type
{
[Token(Token = "0x600CB05")]
[Address(RVA = "0x3FA560", Offset = "0x3F9360", VA = "0x1803FA560", Slot = "6")]
get
{
return this.tagNo;
}
}
// Token: 0x17002034 RID: 8244
// (get) Token: 0x0600CB06 RID: 51974 RVA: 0x002E84F8 File Offset: 0x002E66F8
[Token(Token = "0x17002034")]
public virtual Asn1Encodable Content
{
[Token(Token = "0x600CB06")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
get
{
return this.body;
}
}
// Token: 0x0600CB07 RID: 51975 RVA: 0x002E850C File Offset: 0x002E670C
[Token(Token = "0x600CB07")]
[Address(RVA = "0x2652F60", Offset = "0x2651D60", VA = "0x182652F60", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
/*
An exception occurred when decompiling this method (0600CB07)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiBody::ToAsn1Object()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:int32(var_0_06, ldfld:int32(PkiBody::tagNo, ldloc:PkiBody(this)))
stloc:Asn1Encodable(var_1_0D, ldfld:Asn1Encodable(PkiBody::body, ldloc:PkiBody(this)))
stloc:DerTaggedObject(var_2_16, newobj:DerTaggedObject(DerTaggedObject::.ctor, ldc.i4:bool(1), ldloc:int32(var_0_06), ldloc:Asn1Encodable(var_1_0D)))
}
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: 0x04008133 RID: 33075
[Token(Token = "0x4008133")]
public const int TYPE_INIT_REQ = 0;
// Token: 0x04008134 RID: 33076
[Token(Token = "0x4008134")]
public const int TYPE_INIT_REP = 1;
// Token: 0x04008135 RID: 33077
[Token(Token = "0x4008135")]
public const int TYPE_CERT_REQ = 2;
// Token: 0x04008136 RID: 33078
[Token(Token = "0x4008136")]
public const int TYPE_CERT_REP = 3;
// Token: 0x04008137 RID: 33079
[Token(Token = "0x4008137")]
public const int TYPE_P10_CERT_REQ = 4;
// Token: 0x04008138 RID: 33080
[Token(Token = "0x4008138")]
public const int TYPE_POPO_CHALL = 5;
// Token: 0x04008139 RID: 33081
[Token(Token = "0x4008139")]
public const int TYPE_POPO_REP = 6;
// Token: 0x0400813A RID: 33082
[Token(Token = "0x400813A")]
public const int TYPE_KEY_UPDATE_REQ = 7;
// Token: 0x0400813B RID: 33083
[Token(Token = "0x400813B")]
public const int TYPE_KEY_UPDATE_REP = 8;
// Token: 0x0400813C RID: 33084
[Token(Token = "0x400813C")]
public const int TYPE_KEY_RECOVERY_REQ = 9;
// Token: 0x0400813D RID: 33085
[Token(Token = "0x400813D")]
public const int TYPE_KEY_RECOVERY_REP = 10;
// Token: 0x0400813E RID: 33086
[Token(Token = "0x400813E")]
public const int TYPE_REVOCATION_REQ = 11;
// Token: 0x0400813F RID: 33087
[Token(Token = "0x400813F")]
public const int TYPE_REVOCATION_REP = 12;
// Token: 0x04008140 RID: 33088
[Token(Token = "0x4008140")]
public const int TYPE_CROSS_CERT_REQ = 13;
// Token: 0x04008141 RID: 33089
[Token(Token = "0x4008141")]
public const int TYPE_CROSS_CERT_REP = 14;
// Token: 0x04008142 RID: 33090
[Token(Token = "0x4008142")]
public const int TYPE_CA_KEY_UPDATE_ANN = 15;
// Token: 0x04008143 RID: 33091
[Token(Token = "0x4008143")]
public const int TYPE_CERT_ANN = 16;
// Token: 0x04008144 RID: 33092
[Token(Token = "0x4008144")]
public const int TYPE_REVOCATION_ANN = 17;
// Token: 0x04008145 RID: 33093
[Token(Token = "0x4008145")]
public const int TYPE_CRL_ANN = 18;
// Token: 0x04008146 RID: 33094
[Token(Token = "0x4008146")]
public const int TYPE_CONFIRM = 19;
// Token: 0x04008147 RID: 33095
[Token(Token = "0x4008147")]
public const int TYPE_NESTED = 20;
// Token: 0x04008148 RID: 33096
[Token(Token = "0x4008148")]
public const int TYPE_GEN_MSG = 21;
// Token: 0x04008149 RID: 33097
[Token(Token = "0x4008149")]
public const int TYPE_GEN_REP = 22;
// Token: 0x0400814A RID: 33098
[Token(Token = "0x400814A")]
public const int TYPE_ERROR = 23;
// Token: 0x0400814B RID: 33099
[Token(Token = "0x400814B")]
public const int TYPE_CERT_CONFIRM = 24;
// Token: 0x0400814C RID: 33100
[Token(Token = "0x400814C")]
public const int TYPE_POLL_REQ = 25;
// Token: 0x0400814D RID: 33101
[Token(Token = "0x400814D")]
public const int TYPE_POLL_REP = 26;
// Token: 0x0400814E RID: 33102
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x400814E")]
private int tagNo;
// Token: 0x0400814F RID: 33103
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400814F")]
private Asn1Encodable body;
}
}
@@ -0,0 +1,70 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
{
// Token: 0x02001F5A RID: 8026
[Token(Token = "0x2001F5A")]
public class PkiConfirmContent : Asn1Encodable
{
// Token: 0x0600CB08 RID: 51976 RVA: 0x002E8530 File Offset: 0x002E6730
[Token(Token = "0x600CB08")]
[Address(RVA = "0x2653090", Offset = "0x2651E90", VA = "0x182653090")]
public static PkiConfirmContent GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600CB08)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiConfirmContent BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiConfirmContent::GetInstance(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_20:
stloc:string(var_4_26, call:string(Platform::GetTypeName, ldloc:object(obj)))
stloc:ArgumentException(var_5_3E, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_4_26)), 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: 0x0600CB09 RID: 51977 RVA: 0x002E857C File Offset: 0x002E677C
[Token(Token = "0x600CB09")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
public PkiConfirmContent()
{
}
// Token: 0x0600CB0A RID: 51978 RVA: 0x002E8590 File Offset: 0x002E6790
[Token(Token = "0x600CB0A")]
[Address(RVA = "0x2653220", Offset = "0x2652020", VA = "0x182653220", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
/*
An exception occurred when decompiling this method (0600CB0A)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiConfirmContent::ToAsn1Object()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:DerNull(var_0_05, ldsfld:DerNull(DerNull::Instance))
}
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
*/;
}
}
}
@@ -0,0 +1,145 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
{
// Token: 0x02001F5B RID: 8027
[Token(Token = "0x2001F5B")]
public class PkiFailureInfo : DerBitString
{
// Token: 0x0600CB0B RID: 51979 RVA: 0x002E85A4 File Offset: 0x002E67A4
[Token(Token = "0x600CB0B")]
[Address(RVA = "0x26532F0", Offset = "0x26520F0", VA = "0x1826532F0")]
public PkiFailureInfo(int info)
: base(info)
{
}
// Token: 0x0600CB0C RID: 51980 RVA: 0x002E85B8 File Offset: 0x002E67B8
[Token(Token = "0x600CB0C")]
[Address(RVA = "0x2653350", Offset = "0x2652150", VA = "0x182653350")]
public PkiFailureInfo(DerBitString info)
{
byte[] octets = info.GetOctets();
byte[] bytes = info.GetBytes();
}
// Token: 0x0600CB0D RID: 51981 RVA: 0x002E85DC File Offset: 0x002E67DC
[Token(Token = "0x600CB0D")]
[Address(RVA = "0x2653280", Offset = "0x2652080", VA = "0x182653280", Slot = "3")]
public override string ToString()
{
int padBits = this.PadBits;
string text;
return "PkiFailureInfo: 0x" + text;
}
// Token: 0x04008150 RID: 33104
[Token(Token = "0x4008150")]
public const int BadAlg = 128;
// Token: 0x04008151 RID: 33105
[Token(Token = "0x4008151")]
public const int BadMessageCheck = 64;
// Token: 0x04008152 RID: 33106
[Token(Token = "0x4008152")]
public const int BadRequest = 32;
// Token: 0x04008153 RID: 33107
[Token(Token = "0x4008153")]
public const int BadTime = 16;
// Token: 0x04008154 RID: 33108
[Token(Token = "0x4008154")]
public const int BadCertId = 8;
// Token: 0x04008155 RID: 33109
[Token(Token = "0x4008155")]
public const int BadDataFormat = 4;
// Token: 0x04008156 RID: 33110
[Token(Token = "0x4008156")]
public const int WrongAuthority = 2;
// Token: 0x04008157 RID: 33111
[Token(Token = "0x4008157")]
public const int IncorrectData = 1;
// Token: 0x04008158 RID: 33112
[Token(Token = "0x4008158")]
public const int MissingTimeStamp = 32768;
// Token: 0x04008159 RID: 33113
[Token(Token = "0x4008159")]
public const int BadPop = 16384;
// Token: 0x0400815A RID: 33114
[Token(Token = "0x400815A")]
public const int CertRevoked = 8192;
// Token: 0x0400815B RID: 33115
[Token(Token = "0x400815B")]
public const int CertConfirmed = 4096;
// Token: 0x0400815C RID: 33116
[Token(Token = "0x400815C")]
public const int WrongIntegrity = 2048;
// Token: 0x0400815D RID: 33117
[Token(Token = "0x400815D")]
public const int BadRecipientNonce = 1024;
// Token: 0x0400815E RID: 33118
[Token(Token = "0x400815E")]
public const int TimeNotAvailable = 512;
// Token: 0x0400815F RID: 33119
[Token(Token = "0x400815F")]
public const int UnacceptedPolicy = 256;
// Token: 0x04008160 RID: 33120
[Token(Token = "0x4008160")]
public const int UnacceptedExtension = 8388608;
// Token: 0x04008161 RID: 33121
[Token(Token = "0x4008161")]
public const int AddInfoNotAvailable = 4194304;
// Token: 0x04008162 RID: 33122
[Token(Token = "0x4008162")]
public const int BadSenderNonce = 2097152;
// Token: 0x04008163 RID: 33123
[Token(Token = "0x4008163")]
public const int BadCertTemplate = 1048576;
// Token: 0x04008164 RID: 33124
[Token(Token = "0x4008164")]
public const int SignerNotTrusted = 524288;
// Token: 0x04008165 RID: 33125
[Token(Token = "0x4008165")]
public const int TransactionIdInUse = 262144;
// Token: 0x04008166 RID: 33126
[Token(Token = "0x4008166")]
public const int UnsupportedVersion = 131072;
// Token: 0x04008167 RID: 33127
[Token(Token = "0x4008167")]
public const int NotAuthorized = 65536;
// Token: 0x04008168 RID: 33128
[Token(Token = "0x4008168")]
public const int SystemUnavail = -2147483648;
// Token: 0x04008169 RID: 33129
[Token(Token = "0x4008169")]
public const int SystemFailure = 1073741824;
// Token: 0x0400816A RID: 33130
[Token(Token = "0x400816A")]
public const int DuplicateCertReq = 536870912;
}
}
@@ -0,0 +1,181 @@
using System;
using System.Collections;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
{
// Token: 0x02001F5C RID: 8028
[Token(Token = "0x2001F5C")]
public class PkiFreeText : Asn1Encodable
{
// Token: 0x0600CB0E RID: 51982 RVA: 0x002E85FC File Offset: 0x002E67FC
[Token(Token = "0x600CB0E")]
[Address(RVA = "0x2653400", Offset = "0x2652200", VA = "0x182653400")]
public static PkiFreeText GetInstance(Asn1TaggedObject obj, bool isExplicit)
{
return PkiFreeText.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
}
// Token: 0x0600CB0F RID: 51983 RVA: 0x002E8618 File Offset: 0x002E6818
[Token(Token = "0x600CB0F")]
[Address(RVA = "0x2653420", Offset = "0x2652220", VA = "0x182653420")]
public static PkiFreeText GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600CB0F)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiFreeText BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiFreeText::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("Unknown object in factory: "), 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: 0x0600CB10 RID: 51984 RVA: 0x002E8668 File Offset: 0x002E6868
[Token(Token = "0x600CB10")]
[Address(RVA = "0x26536C0", Offset = "0x26524C0", VA = "0x1826536C0")]
public PkiFreeText(Asn1Sequence seq)
{
int num;
do
{
num = 0;
base..ctor();
IEnumerator enumerator = seq.GetEnumerator();
if (enumerator != 0 && (enumerator == 0 || enumerator == 0))
{
goto IL_33;
}
if (enumerator != 0)
{
}
}
while (num != 0);
this.strings = seq;
return;
IL_33:
ArgumentException ex = new ArgumentException("attempt to insert non UTF8 STRING into PkiFreeText");
throw new NullReferenceException();
}
// Token: 0x0600CB11 RID: 51985 RVA: 0x002E86B8 File Offset: 0x002E68B8
[Token(Token = "0x600CB11")]
[Address(RVA = "0x2653870", Offset = "0x2652670", VA = "0x182653870")]
public PkiFreeText(DerUtf8String p)
{
DerSequence derSequence = new DerSequence(p);
this.strings = derSequence;
}
// Token: 0x17002035 RID: 8245
// (get) Token: 0x0600CB12 RID: 51986 RVA: 0x002E86DC File Offset: 0x002E68DC
[Token(Token = "0x17002035")]
[Obsolete]
public int Size
{
[Token(Token = "0x600CB12")]
[Address(RVA = "0x5F5E10", Offset = "0x5F4C10", VA = "0x1805F5E10")]
get
{
IEnumerator enumerator = ((IEnumerable)this.strings).GetEnumerator();
throw new NullReferenceException();
}
}
// Token: 0x17002036 RID: 8246
// (get) Token: 0x0600CB13 RID: 51987 RVA: 0x002E86FC File Offset: 0x002E68FC
[Token(Token = "0x17002036")]
public int Count
{
[Token(Token = "0x600CB13")]
[Address(RVA = "0x5F5E10", Offset = "0x5F4C10", VA = "0x1805F5E10")]
get
{
IEnumerator enumerator = ((IEnumerable)this.strings).GetEnumerator();
throw new NullReferenceException();
}
}
// Token: 0x17002037 RID: 8247
[Token(Token = "0x17002037")]
public DerUtf8String this[int index]
{
[Token(Token = "0x600CB14")]
[Address(RVA = "0x2653610", Offset = "0x2652410", VA = "0x182653610")]
get
{
Asn1SequenceParser parser;
do
{
parser = this.strings.Parser;
if (parser == 0)
{
}
}
while (parser == 0);
throw new NullReferenceException();
}
}
// Token: 0x0600CB15 RID: 51989 RVA: 0x002E8744 File Offset: 0x002E6944
[Token(Token = "0x600CB15")]
[Address(RVA = "0x2653610", Offset = "0x2652410", VA = "0x182653610")]
[Obsolete]
public DerUtf8String GetStringAt(int index)
{
Asn1SequenceParser parser;
do
{
parser = this.strings.Parser;
if (parser == 0)
{
}
}
while (parser == 0);
throw new NullReferenceException();
}
// Token: 0x0600CB16 RID: 51990 RVA: 0x002E876C File Offset: 0x002E696C
[Token(Token = "0x600CB16")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
/*
An exception occurred when decompiling this method (0600CB16)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiFreeText::ToAsn1Object()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:Asn1Sequence(var_0_06, ldfld:Asn1Sequence(PkiFreeText::strings, ldloc:PkiFreeText(this)))
}
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: 0x0400816B RID: 33131
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x400816B")]
internal Asn1Sequence strings;
}
}
@@ -0,0 +1,422 @@
using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
{
// Token: 0x02001F5D RID: 8029
[Token(Token = "0x2001F5D")]
public class PkiHeader : Asn1Encodable
{
// Token: 0x0600CB17 RID: 51991 RVA: 0x002E8780 File Offset: 0x002E6980
[Token(Token = "0x600CB17")]
[Address(RVA = "0x2ADEF90", Offset = "0x2ADDD90", VA = "0x182ADEF90")]
private PkiHeader(Asn1Sequence seq)
{
uint num;
Asn1SequenceParser parser4;
do
{
base..ctor();
Asn1SequenceParser parser = seq.Parser;
DerInteger derInteger;
this.pvno = derInteger;
Asn1SequenceParser parser2 = seq.Parser;
GeneralName generalName;
this.sender = generalName;
Asn1SequenceParser parser3 = seq.Parser;
GeneralName generalName2;
this.recipient = generalName2;
Asn1Encodable asn1Encodable;
if (num >= asn1Encodable)
{
return;
}
parser4 = seq.Parser;
}
while (parser4 == 0);
if (parser4 > (ulong)8L)
{
throw new NullReferenceException();
}
DerGeneralizedTime derGeneralizedTime;
this.messageTime = derGeneralizedTime;
num += (uint)1;
AlgorithmIdentifier algorithmIdentifier;
this.protectionAlg = algorithmIdentifier;
num += (uint)1;
Asn1OctetString asn1OctetString;
this.senderKID = asn1OctetString;
num += (uint)1;
Asn1OctetString asn1OctetString2;
this.recipKID = asn1OctetString2;
num += (uint)1;
Asn1OctetString asn1OctetString3;
this.transactionID = asn1OctetString3;
num += (uint)1;
Asn1OctetString asn1OctetString4;
this.senderNonce = asn1OctetString4;
num += (uint)1;
Asn1OctetString asn1OctetString5;
this.recipNonce = asn1OctetString5;
num += (uint)1;
PkiFreeText pkiFreeText;
this.freeText = pkiFreeText;
num += (uint)1;
Asn1Sequence asn1Sequence;
this.generalInfo = asn1Sequence;
num += (uint)1;
}
// Token: 0x0600CB18 RID: 51992 RVA: 0x002E8888 File Offset: 0x002E6A88
[Token(Token = "0x600CB18")]
[Address(RVA = "0x2ADE9E0", Offset = "0x2ADD7E0", VA = "0x182ADE9E0")]
public static PkiHeader GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600CB18)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiHeader BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiHeader::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: 0x0600CB19 RID: 51993 RVA: 0x002E88D8 File Offset: 0x002E6AD8
[Token(Token = "0x600CB19")]
[Address(RVA = "0x2ADEF00", Offset = "0x2ADDD00", VA = "0x182ADEF00")]
public PkiHeader(int pvno, GeneralName sender, GeneralName recipient)
{
DerInteger derInteger = new DerInteger(pvno);
base..ctor();
this.pvno = derInteger;
this.sender = sender;
this.recipient = recipient;
}
// Token: 0x0600CB1A RID: 51994 RVA: 0x002E8908 File Offset: 0x002E6B08
[Token(Token = "0x600CB1A")]
[Address(RVA = "0xECF220", Offset = "0xECE020", VA = "0x180ECF220")]
private PkiHeader(DerInteger pvno, GeneralName sender, GeneralName recipient)
{
this.pvno = pvno;
this.sender = sender;
this.recipient = recipient;
}
// Token: 0x17002038 RID: 8248
// (get) Token: 0x0600CB1B RID: 51995 RVA: 0x002E8930 File Offset: 0x002E6B30
[Token(Token = "0x17002038")]
public virtual DerInteger Pvno
{
[Token(Token = "0x600CB1B")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
get
{
return this.pvno;
}
}
// Token: 0x17002039 RID: 8249
// (get) Token: 0x0600CB1C RID: 51996 RVA: 0x002E8944 File Offset: 0x002E6B44
[Token(Token = "0x17002039")]
public virtual GeneralName Sender
{
[Token(Token = "0x600CB1C")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
get
{
return this.sender;
}
}
// Token: 0x1700203A RID: 8250
// (get) Token: 0x0600CB1D RID: 51997 RVA: 0x002E8958 File Offset: 0x002E6B58
[Token(Token = "0x1700203A")]
public virtual GeneralName Recipient
{
[Token(Token = "0x600CB1D")]
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400", Slot = "8")]
get
{
return this.recipient;
}
}
// Token: 0x1700203B RID: 8251
// (get) Token: 0x0600CB1E RID: 51998 RVA: 0x002E896C File Offset: 0x002E6B6C
[Token(Token = "0x1700203B")]
public virtual DerGeneralizedTime MessageTime
{
[Token(Token = "0x600CB1E")]
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0", Slot = "9")]
get
{
return this.messageTime;
}
}
// Token: 0x1700203C RID: 8252
// (get) Token: 0x0600CB1F RID: 51999 RVA: 0x002E8980 File Offset: 0x002E6B80
[Token(Token = "0x1700203C")]
public virtual AlgorithmIdentifier ProtectionAlg
{
[Token(Token = "0x600CB1F")]
[Address(RVA = "0x3FA180", Offset = "0x3F8F80", VA = "0x1803FA180", Slot = "10")]
get
{
return this.protectionAlg;
}
}
// Token: 0x1700203D RID: 8253
// (get) Token: 0x0600CB20 RID: 52000 RVA: 0x002E8994 File Offset: 0x002E6B94
[Token(Token = "0x1700203D")]
public virtual Asn1OctetString SenderKID
{
[Token(Token = "0x600CB20")]
[Address(RVA = "0x3F63D0", Offset = "0x3F51D0", VA = "0x1803F63D0", Slot = "11")]
get
{
return this.senderKID;
}
}
// Token: 0x1700203E RID: 8254
// (get) Token: 0x0600CB21 RID: 52001 RVA: 0x002E89A8 File Offset: 0x002E6BA8
[Token(Token = "0x1700203E")]
public virtual Asn1OctetString RecipKID
{
[Token(Token = "0x600CB21")]
[Address(RVA = "0x408890", Offset = "0x407690", VA = "0x180408890", Slot = "12")]
get
{
return this.recipKID;
}
}
// Token: 0x1700203F RID: 8255
// (get) Token: 0x0600CB22 RID: 52002 RVA: 0x002E89BC File Offset: 0x002E6BBC
[Token(Token = "0x1700203F")]
public virtual Asn1OctetString TransactionID
{
[Token(Token = "0x600CB22")]
[Address(RVA = "0x3FA170", Offset = "0x3F8F70", VA = "0x1803FA170", Slot = "13")]
get
{
return this.transactionID;
}
}
// Token: 0x17002040 RID: 8256
// (get) Token: 0x0600CB23 RID: 52003 RVA: 0x002E89D0 File Offset: 0x002E6BD0
[Token(Token = "0x17002040")]
public virtual Asn1OctetString SenderNonce
{
[Token(Token = "0x600CB23")]
[Address(RVA = "0x415290", Offset = "0x414090", VA = "0x180415290", Slot = "14")]
get
{
return this.senderNonce;
}
}
// Token: 0x17002041 RID: 8257
// (get) Token: 0x0600CB24 RID: 52004 RVA: 0x002E89E4 File Offset: 0x002E6BE4
[Token(Token = "0x17002041")]
public virtual Asn1OctetString RecipNonce
{
[Token(Token = "0x600CB24")]
[Address(RVA = "0x423D40", Offset = "0x422B40", VA = "0x180423D40", Slot = "15")]
get
{
return this.recipNonce;
}
}
// Token: 0x17002042 RID: 8258
// (get) Token: 0x0600CB25 RID: 52005 RVA: 0x002E89F8 File Offset: 0x002E6BF8
[Token(Token = "0x17002042")]
public virtual PkiFreeText FreeText
{
[Token(Token = "0x600CB25")]
[Address(RVA = "0x423DE0", Offset = "0x422BE0", VA = "0x180423DE0", Slot = "16")]
get
{
return this.freeText;
}
}
// Token: 0x0600CB26 RID: 52006 RVA: 0x002E8A0C File Offset: 0x002E6C0C
[Token(Token = "0x600CB26")]
[Address(RVA = "0x2ADE8C0", Offset = "0x2ADD6C0", VA = "0x182ADE8C0", Slot = "17")]
public virtual InfoTypeAndValue[] GetGeneralInfo()
{
if (this.generalInfo != 0)
{
Asn1Encodable asn1Encodable;
InfoTypeAndValue[] array = new InfoTypeAndValue[asn1Encodable];
int num = 0;
if (num < array.Length)
{
Asn1SequenceParser parser = this.generalInfo.Parser;
InfoTypeAndValue infoTypeAndValue;
if (infoTypeAndValue != 0)
{
}
num++;
array[0] = infoTypeAndValue;
}
return array;
}
throw new ArrayTypeMismatchException();
}
// Token: 0x0600CB27 RID: 52007 RVA: 0x002E8A5C File Offset: 0x002E6C5C
[Token(Token = "0x600CB27")]
[Address(RVA = "0x2ADEBD0", Offset = "0x2ADD9D0", VA = "0x182ADEBD0", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1Encodable[] array = new Asn1Encodable[3];
DerInteger derInteger = this.pvno;
if (derInteger != 0)
{
}
array[0] = derInteger;
GeneralName generalName = this.sender;
if (generalName != 0)
{
}
array[1] = generalName;
GeneralName generalName2 = this.recipient;
if (generalName2 != 0)
{
}
array[2] = generalName2;
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
DerGeneralizedTime derGeneralizedTime = this.messageTime;
int num = 0;
PkiHeader.AddOptional(asn1EncodableVector, num, derGeneralizedTime);
AlgorithmIdentifier algorithmIdentifier = this.protectionAlg;
PkiHeader.AddOptional(asn1EncodableVector, 1, algorithmIdentifier);
Asn1OctetString asn1OctetString = this.senderKID;
PkiHeader.AddOptional(asn1EncodableVector, 2, asn1OctetString);
Asn1OctetString asn1OctetString2 = this.recipKID;
PkiHeader.AddOptional(asn1EncodableVector, 3, asn1OctetString2);
Asn1OctetString asn1OctetString3 = this.transactionID;
PkiHeader.AddOptional(asn1EncodableVector, 4, asn1OctetString3);
Asn1OctetString asn1OctetString4 = this.senderNonce;
PkiHeader.AddOptional(asn1EncodableVector, 5, asn1OctetString4);
Asn1OctetString asn1OctetString5 = this.recipNonce;
PkiHeader.AddOptional(asn1EncodableVector, 6, asn1OctetString5);
PkiFreeText pkiFreeText = this.freeText;
PkiHeader.AddOptional(asn1EncodableVector, 7, pkiFreeText);
Asn1Sequence asn1Sequence = this.generalInfo;
PkiHeader.AddOptional(asn1EncodableVector, 8, asn1Sequence);
DerSequence derSequence = new DerSequence(asn1EncodableVector);
throw new NullReferenceException();
}
// Token: 0x0600CB28 RID: 52008 RVA: 0x002E8B68 File Offset: 0x002E6D68
[Token(Token = "0x600CB28")]
[Address(RVA = "0x2ADE7C0", Offset = "0x2ADD5C0", VA = "0x182ADE7C0")]
private static void AddOptional(Asn1EncodableVector v, int tagNo, Asn1Encodable obj)
{
if (obj != 0)
{
Asn1Encodable[] array = new Asn1Encodable[1];
DerTaggedObject derTaggedObject = new DerTaggedObject(true, tagNo, obj);
if (derTaggedObject != 0)
{
}
array[0] = derTaggedObject;
v.Add(array);
}
}
// Token: 0x0400816C RID: 33132
[Token(Token = "0x400816C")]
public static readonly GeneralName NULL_NAME = new GeneralName(X509Name.GetInstance(new DerSequence()));
// Token: 0x0400816D RID: 33133
[Token(Token = "0x400816D")]
public static readonly int CMP_1999;
// Token: 0x0400816E RID: 33134
[Token(Token = "0x400816E")]
public static readonly int CMP_2000;
// Token: 0x0400816F RID: 33135
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x400816F")]
private readonly DerInteger pvno;
// Token: 0x04008170 RID: 33136
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4008170")]
private readonly GeneralName sender;
// Token: 0x04008171 RID: 33137
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4008171")]
private readonly GeneralName recipient;
// Token: 0x04008172 RID: 33138
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4008172")]
private readonly DerGeneralizedTime messageTime;
// Token: 0x04008173 RID: 33139
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x4008173")]
private readonly AlgorithmIdentifier protectionAlg;
// Token: 0x04008174 RID: 33140
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x4008174")]
private readonly Asn1OctetString senderKID;
// Token: 0x04008175 RID: 33141
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x4008175")]
private readonly Asn1OctetString recipKID;
// Token: 0x04008176 RID: 33142
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x4008176")]
private readonly Asn1OctetString transactionID;
// Token: 0x04008177 RID: 33143
[FieldOffset(Offset = "0x50")]
[Token(Token = "0x4008177")]
private readonly Asn1OctetString senderNonce;
// Token: 0x04008178 RID: 33144
[FieldOffset(Offset = "0x58")]
[Token(Token = "0x4008178")]
private readonly Asn1OctetString recipNonce;
// Token: 0x04008179 RID: 33145
[FieldOffset(Offset = "0x60")]
[Token(Token = "0x4008179")]
private readonly PkiFreeText freeText;
// Token: 0x0400817A RID: 33146
[FieldOffset(Offset = "0x68")]
[Token(Token = "0x400817A")]
private readonly Asn1Sequence generalInfo;
}
}
@@ -0,0 +1,409 @@
using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
{
// Token: 0x02001F5E RID: 8030
[Token(Token = "0x2001F5E")]
public class PkiHeaderBuilder
{
// Token: 0x0600CB2A RID: 52010 RVA: 0x002E8BC8 File Offset: 0x002E6DC8
[Token(Token = "0x600CB2A")]
[Address(RVA = "0x2ADE730", Offset = "0x2ADD530", VA = "0x182ADE730")]
public PkiHeaderBuilder(int pvno, GeneralName sender, GeneralName recipient)
{
DerInteger derInteger = new DerInteger(pvno);
int num = 0;
int num2 = 0;
base.FieldGetter(num2, num, recipient);
this.pvno = derInteger;
this.sender = sender;
this.recipient = recipient;
}
// Token: 0x0600CB2B RID: 52011 RVA: 0x002E8C00 File Offset: 0x002E6E00
[Token(Token = "0x600CB2B")]
[Address(RVA = "0x4A7B10", Offset = "0x4A6910", VA = "0x1804A7B10")]
private PkiHeaderBuilder(DerInteger pvno, GeneralName sender, GeneralName recipient)
{
this.pvno = pvno;
this.sender = sender;
this.recipient = recipient;
}
// Token: 0x0600CB2C RID: 52012 RVA: 0x002E8C28 File Offset: 0x002E6E28
[Token(Token = "0x600CB2C")]
[Address(RVA = "0x1871FD0", Offset = "0x1870DD0", VA = "0x181871FD0", Slot = "4")]
public virtual PkiHeaderBuilder SetMessageTime(DerGeneralizedTime time)
{
this.messageTime = time;
return this;
}
// Token: 0x0600CB2D RID: 52013 RVA: 0x002E8C40 File Offset: 0x002E6E40
[Token(Token = "0x600CB2D")]
[Address(RVA = "0xBED9A0", Offset = "0xBEC7A0", VA = "0x180BED9A0", Slot = "5")]
public virtual PkiHeaderBuilder SetProtectionAlg(AlgorithmIdentifier aid)
{
this.protectionAlg = aid;
return this;
}
// Token: 0x0600CB2E RID: 52014 RVA: 0x002E8C58 File Offset: 0x002E6E58
[Token(Token = "0x600CB2E")]
[Address(RVA = "0x2ADE580", Offset = "0x2ADD380", VA = "0x182ADE580", Slot = "6")]
public virtual PkiHeaderBuilder SetSenderKID(byte[] kid)
{
if (kid == 0)
{
}
DerOctetString derOctetString = new DerOctetString(kid);
throw new NullReferenceException();
}
// Token: 0x0600CB2F RID: 52015 RVA: 0x002E8C78 File Offset: 0x002E6E78
[Token(Token = "0x600CB2F")]
[Address(RVA = "0x14A6770", Offset = "0x14A5570", VA = "0x1814A6770", Slot = "7")]
public virtual PkiHeaderBuilder SetSenderKID(Asn1OctetString kid)
{
this.senderKID = kid;
return this;
}
// Token: 0x0600CB30 RID: 52016 RVA: 0x002E8C90 File Offset: 0x002E6E90
[Token(Token = "0x600CB30")]
[Address(RVA = "0x2ADE460", Offset = "0x2ADD260", VA = "0x182ADE460", Slot = "8")]
public virtual PkiHeaderBuilder SetRecipKID(byte[] kid)
{
if (kid == 0)
{
}
DerOctetString derOctetString = new DerOctetString(kid);
throw new NullReferenceException();
}
// Token: 0x0600CB31 RID: 52017 RVA: 0x002E8CB0 File Offset: 0x002E6EB0
[Token(Token = "0x600CB31")]
[Address(RVA = "0x1871FE0", Offset = "0x1870DE0", VA = "0x181871FE0", Slot = "9")]
public virtual PkiHeaderBuilder SetRecipKID(DerOctetString kid)
{
this.recipKID = kid;
return this;
}
// Token: 0x0600CB32 RID: 52018 RVA: 0x002E8CC8 File Offset: 0x002E6EC8
[Token(Token = "0x600CB32")]
[Address(RVA = "0x2ADE6A0", Offset = "0x2ADD4A0", VA = "0x182ADE6A0", Slot = "10")]
public virtual PkiHeaderBuilder SetTransactionID(byte[] tid)
{
if (tid == 0)
{
}
DerOctetString derOctetString = new DerOctetString(tid);
throw new NullReferenceException();
}
// Token: 0x0600CB33 RID: 52019 RVA: 0x002E8CE8 File Offset: 0x002E6EE8
[Token(Token = "0x600CB33")]
[Address(RVA = "0x1871FC0", Offset = "0x1870DC0", VA = "0x181871FC0", Slot = "11")]
public virtual PkiHeaderBuilder SetTransactionID(Asn1OctetString tid)
{
this.transactionID = tid;
return this;
}
// Token: 0x0600CB34 RID: 52020 RVA: 0x002E8D00 File Offset: 0x002E6F00
[Token(Token = "0x600CB34")]
[Address(RVA = "0x2ADE610", Offset = "0x2ADD410", VA = "0x182ADE610", Slot = "12")]
public virtual PkiHeaderBuilder SetSenderNonce(byte[] nonce)
{
if (nonce == 0)
{
}
DerOctetString derOctetString = new DerOctetString(nonce);
throw new NullReferenceException();
}
// Token: 0x0600CB35 RID: 52021 RVA: 0x002E8D20 File Offset: 0x002E6F20
[Token(Token = "0x600CB35")]
[Address(RVA = "0x1872010", Offset = "0x1870E10", VA = "0x181872010", Slot = "13")]
public virtual PkiHeaderBuilder SetSenderNonce(Asn1OctetString nonce)
{
this.senderNonce = nonce;
return this;
}
// Token: 0x0600CB36 RID: 52022 RVA: 0x002E8D38 File Offset: 0x002E6F38
[Token(Token = "0x600CB36")]
[Address(RVA = "0x2ADE4F0", Offset = "0x2ADD2F0", VA = "0x182ADE4F0", Slot = "14")]
public virtual PkiHeaderBuilder SetRecipNonce(byte[] nonce)
{
if (nonce == 0)
{
}
DerOctetString derOctetString = new DerOctetString(nonce);
throw new NullReferenceException();
}
// Token: 0x0600CB37 RID: 52023 RVA: 0x002E8D58 File Offset: 0x002E6F58
[Token(Token = "0x600CB37")]
[Address(RVA = "0x1871FB0", Offset = "0x1870DB0", VA = "0x181871FB0", Slot = "15")]
public virtual PkiHeaderBuilder SetRecipNonce(Asn1OctetString nonce)
{
this.recipNonce = nonce;
return this;
}
// Token: 0x0600CB38 RID: 52024 RVA: 0x002E8D70 File Offset: 0x002E6F70
[Token(Token = "0x600CB38")]
[Address(RVA = "0x2ADE260", Offset = "0x2ADD060", VA = "0x182ADE260", Slot = "16")]
public virtual PkiHeaderBuilder SetFreeText(PkiFreeText text)
{
this.freeText = text;
return this;
}
// Token: 0x0600CB39 RID: 52025 RVA: 0x002E8D88 File Offset: 0x002E6F88
[Token(Token = "0x600CB39")]
[Address(RVA = "0x2ADE270", Offset = "0x2ADD070", VA = "0x182ADE270", Slot = "17")]
public virtual PkiHeaderBuilder SetGeneralInfo(InfoTypeAndValue genInfo)
{
/*
An exception occurred when decompiling this method (0600CB39)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiHeaderBuilder BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiHeaderBuilder::SetGeneralInfo(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.InfoTypeAndValue)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:DerSequence(var_0_06, newobj:DerSequence(DerSequence::.ctor, ldloc:InfoTypeAndValue[exp:Asn1Encodable](genInfo)))
}
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: 0x0600CB3A RID: 52026 RVA: 0x002E8D9C File Offset: 0x002E6F9C
[Token(Token = "0x600CB3A")]
[Address(RVA = "0x2ADE2F0", Offset = "0x2ADD0F0", VA = "0x182ADE2F0", Slot = "18")]
public virtual PkiHeaderBuilder SetGeneralInfo(InfoTypeAndValue[] genInfos)
{
int num = 0;
if (genInfos != 0)
{
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(genInfos);
if (num < genInfos.Length)
{
Asn1Encodable[] array = new Asn1Encodable[1];
InfoTypeAndValue infoTypeAndValue = genInfos[num];
if (infoTypeAndValue != 0)
{
}
array[0] = infoTypeAndValue;
asn1EncodableVector.Add(array);
num++;
}
DerSequence derSequence = new DerSequence(asn1EncodableVector);
}
throw new ArrayTypeMismatchException();
}
// Token: 0x0600CB3B RID: 52027 RVA: 0x002E8DF4 File Offset: 0x002E6FF4
[Token(Token = "0x600CB3B")]
[Address(RVA = "0x2ADE450", Offset = "0x2ADD250", VA = "0x182ADE450", Slot = "19")]
public virtual PkiHeaderBuilder SetGeneralInfo(Asn1Sequence seqOfInfoTypeAndValue)
{
this.generalInfo = seqOfInfoTypeAndValue;
return this;
}
// Token: 0x0600CB3C RID: 52028 RVA: 0x002E8E0C File Offset: 0x002E700C
[Token(Token = "0x600CB3C")]
[Address(RVA = "0x2ADE200", Offset = "0x2ADD000", VA = "0x182ADE200")]
private static Asn1Sequence MakeGeneralInfoSeq(InfoTypeAndValue generalInfo)
{
/*
An exception occurred when decompiling this method (0600CB3C)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiHeaderBuilder::MakeGeneralInfoSeq(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.InfoTypeAndValue)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:DerSequence(var_0_06, newobj:DerSequence(DerSequence::.ctor, ldloc:InfoTypeAndValue[exp:Asn1Encodable](generalInfo)))
}
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: 0x0600CB3D RID: 52029 RVA: 0x002E8E20 File Offset: 0x002E7020
[Token(Token = "0x600CB3D")]
[Address(RVA = "0x2ADE0B0", Offset = "0x2ADCEB0", VA = "0x182ADE0B0")]
private static Asn1Sequence MakeGeneralInfoSeq(InfoTypeAndValue[] generalInfos)
{
int num = 0;
if (generalInfos != 0)
{
Asn1EncodableVector asn1EncodableVector;
if (num < generalInfos.Length)
{
Asn1Encodable[] array = new Asn1Encodable[1];
InfoTypeAndValue infoTypeAndValue = generalInfos[num];
if (infoTypeAndValue != 0)
{
}
array[0] = infoTypeAndValue;
asn1EncodableVector.Add(array);
num++;
}
DerSequence derSequence = new DerSequence(asn1EncodableVector);
}
throw new ArrayTypeMismatchException();
}
// Token: 0x0600CB3E RID: 52030 RVA: 0x002E8E70 File Offset: 0x002E7070
[Token(Token = "0x600CB3E")]
[Address(RVA = "0x2ADDE00", Offset = "0x2ADCC00", VA = "0x182ADDE00", Slot = "20")]
public virtual PkiHeader Build()
{
Asn1Encodable[] array = new Asn1Encodable[3];
DerInteger derInteger = this.pvno;
if (derInteger != 0)
{
}
array[0] = derInteger;
GeneralName generalName = this.sender;
if (generalName != 0)
{
}
array[1] = generalName;
GeneralName generalName2 = this.recipient;
if (generalName2 != 0)
{
}
array[2] = generalName2;
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
DerGeneralizedTime derGeneralizedTime = this.messageTime;
int num = 0;
int num2 = 0;
this.AddOptional(asn1EncodableVector, num2, derGeneralizedTime);
AlgorithmIdentifier algorithmIdentifier = this.protectionAlg;
this.AddOptional(asn1EncodableVector, 1, algorithmIdentifier);
Asn1OctetString asn1OctetString = this.senderKID;
this.AddOptional(asn1EncodableVector, 2, asn1OctetString);
Asn1OctetString asn1OctetString2 = this.recipKID;
this.AddOptional(asn1EncodableVector, 3, asn1OctetString2);
Asn1OctetString asn1OctetString3 = this.transactionID;
this.AddOptional(asn1EncodableVector, 4, asn1OctetString3);
Asn1OctetString asn1OctetString4 = this.senderNonce;
this.AddOptional(asn1EncodableVector, 5, asn1OctetString4);
Asn1OctetString asn1OctetString5 = this.recipNonce;
this.AddOptional(asn1EncodableVector, 6, asn1OctetString5);
PkiFreeText pkiFreeText = this.freeText;
this.AddOptional(asn1EncodableVector, 7, pkiFreeText);
Asn1Sequence asn1Sequence = this.generalInfo;
this.AddOptional(asn1EncodableVector, 8, asn1Sequence);
this.messageTime = num;
this.protectionAlg = num;
this.senderKID = num;
this.recipKID = num;
this.transactionID = num;
this.senderNonce = num;
this.recipNonce = num;
this.freeText = num;
this.generalInfo = num;
return PkiHeader.GetInstance(new DerSequence(asn1EncodableVector));
}
// Token: 0x0600CB3F RID: 52031 RVA: 0x002E8FD4 File Offset: 0x002E71D4
[Token(Token = "0x600CB3F")]
[Address(RVA = "0x2ADDD00", Offset = "0x2ADCB00", VA = "0x182ADDD00")]
private void AddOptional(Asn1EncodableVector v, int tagNo, Asn1Encodable obj)
{
if (obj != 0)
{
Asn1Encodable[] array = new Asn1Encodable[1];
DerTaggedObject derTaggedObject = new DerTaggedObject(true, tagNo, obj);
if (derTaggedObject != 0)
{
}
array[0] = derTaggedObject;
v.Add(array);
}
}
// Token: 0x0400817B RID: 33147
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x400817B")]
private DerInteger pvno;
// Token: 0x0400817C RID: 33148
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400817C")]
private GeneralName sender;
// Token: 0x0400817D RID: 33149
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x400817D")]
private GeneralName recipient;
// Token: 0x0400817E RID: 33150
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x400817E")]
private DerGeneralizedTime messageTime;
// Token: 0x0400817F RID: 33151
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x400817F")]
private AlgorithmIdentifier protectionAlg;
// Token: 0x04008180 RID: 33152
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x4008180")]
private Asn1OctetString senderKID;
// Token: 0x04008181 RID: 33153
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x4008181")]
private Asn1OctetString recipKID;
// Token: 0x04008182 RID: 33154
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x4008182")]
private Asn1OctetString transactionID;
// Token: 0x04008183 RID: 33155
[FieldOffset(Offset = "0x50")]
[Token(Token = "0x4008183")]
private Asn1OctetString senderNonce;
// Token: 0x04008184 RID: 33156
[FieldOffset(Offset = "0x58")]
[Token(Token = "0x4008184")]
private Asn1OctetString recipNonce;
// Token: 0x04008185 RID: 33157
[FieldOffset(Offset = "0x60")]
[Token(Token = "0x4008185")]
private PkiFreeText freeText;
// Token: 0x04008186 RID: 33158
[FieldOffset(Offset = "0x68")]
[Token(Token = "0x4008186")]
private Asn1Sequence generalInfo;
}
}
@@ -0,0 +1,218 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
{
// Token: 0x02001F5F RID: 8031
[Token(Token = "0x2001F5F")]
public class PkiMessage : Asn1Encodable
{
// Token: 0x0600CB40 RID: 52032 RVA: 0x002E9010 File Offset: 0x002E7210
[Token(Token = "0x600CB40")]
[Address(RVA = "0x2ADF880", Offset = "0x2ADE680", VA = "0x182ADF880")]
private PkiMessage(Asn1Sequence seq)
{
Asn1SequenceParser parser3;
do
{
base..ctor();
Asn1SequenceParser parser = seq.Parser;
PkiHeader pkiHeader;
this.header = pkiHeader;
Asn1SequenceParser parser2 = seq.Parser;
PkiBody pkiBody;
this.body = pkiBody;
Asn1Encodable asn1Encodable;
if ((uint)2 >= asn1Encodable)
{
return;
}
parser3 = seq.Parser;
}
while (parser3 == 0);
Asn1Sequence asn1Sequence;
this.extraCerts = asn1Sequence;
DerBitString derBitString;
this.protection = derBitString;
}
// Token: 0x0600CB41 RID: 52033 RVA: 0x002E9068 File Offset: 0x002E7268
[Token(Token = "0x600CB41")]
[Address(RVA = "0x2ADF4B0", Offset = "0x2ADE2B0", VA = "0x182ADF4B0")]
public static PkiMessage GetInstance(object obj)
{
while (obj != 0)
{
Asn1Sequence instance;
if (obj == 0)
{
instance = Asn1Sequence.GetInstance(obj);
return new PkiMessage(instance);
}
if (instance != 0)
{
return;
}
}
}
// Token: 0x0600CB42 RID: 52034 RVA: 0x002E909C File Offset: 0x002E729C
[Token(Token = "0x600CB42")]
[Address(RVA = "0x2ADF710", Offset = "0x2ADE510", VA = "0x182ADF710")]
public PkiMessage(PkiHeader header, PkiBody body, DerBitString protection, CmpCertificate[] extraCerts)
{
this.body = body;
this.header = header;
this.protection = protection;
DerSequence derSequence;
this.extraCerts = derSequence;
}
// Token: 0x0600CB43 RID: 52035 RVA: 0x002E90CC File Offset: 0x002E72CC
[Token(Token = "0x600CB43")]
[Address(RVA = "0x2ADF7B0", Offset = "0x2ADE5B0", VA = "0x182ADF7B0")]
public PkiMessage(PkiHeader header, PkiBody body, DerBitString protection)
{
this.header = header;
this.body = body;
this.protection = protection;
}
// Token: 0x0600CB44 RID: 52036 RVA: 0x002E90F4 File Offset: 0x002E72F4
[Token(Token = "0x600CB44")]
[Address(RVA = "0x2ADF820", Offset = "0x2ADE620", VA = "0x182ADF820")]
public PkiMessage(PkiHeader header, PkiBody body)
{
this.header = header;
this.body = body;
this.protection = (ulong)0L;
}
// Token: 0x17002043 RID: 8259
// (get) Token: 0x0600CB45 RID: 52037 RVA: 0x002E9120 File Offset: 0x002E7320
[Token(Token = "0x17002043")]
public virtual PkiHeader Header
{
[Token(Token = "0x600CB45")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
get
{
return this.header;
}
}
// Token: 0x17002044 RID: 8260
// (get) Token: 0x0600CB46 RID: 52038 RVA: 0x002E9134 File Offset: 0x002E7334
[Token(Token = "0x17002044")]
public virtual PkiBody Body
{
[Token(Token = "0x600CB46")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
get
{
return this.body;
}
}
// Token: 0x17002045 RID: 8261
// (get) Token: 0x0600CB47 RID: 52039 RVA: 0x002E9148 File Offset: 0x002E7348
[Token(Token = "0x17002045")]
public virtual DerBitString Protection
{
[Token(Token = "0x600CB47")]
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400", Slot = "8")]
get
{
return this.protection;
}
}
// Token: 0x0600CB48 RID: 52040 RVA: 0x002E915C File Offset: 0x002E735C
[Token(Token = "0x600CB48")]
[Address(RVA = "0x2ADF390", Offset = "0x2ADE190", VA = "0x182ADF390", Slot = "9")]
public virtual CmpCertificate[] GetExtraCerts()
{
if (this.extraCerts != 0)
{
Asn1Encodable asn1Encodable;
CmpCertificate[] array = new CmpCertificate[asn1Encodable];
int num = 0;
if (num < array.Length)
{
Asn1SequenceParser parser = this.extraCerts.Parser;
CmpCertificate cmpCertificate;
if (cmpCertificate != 0)
{
}
num++;
array[0] = cmpCertificate;
}
return array;
}
throw new ArrayTypeMismatchException();
}
// Token: 0x0600CB49 RID: 52041 RVA: 0x002E91AC File Offset: 0x002E73AC
[Token(Token = "0x600CB49")]
[Address(RVA = "0x2ADF5B0", Offset = "0x2ADE3B0", VA = "0x182ADF5B0", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1Encodable[] array = new Asn1Encodable[2];
PkiHeader pkiHeader = this.header;
if (pkiHeader != 0)
{
}
array[0] = pkiHeader;
PkiBody pkiBody = this.body;
if (pkiBody != 0)
{
}
array[1] = pkiBody;
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
DerBitString derBitString = this.protection;
int num = 0;
PkiMessage.AddOptional(asn1EncodableVector, num, derBitString);
Asn1Sequence asn1Sequence = this.extraCerts;
PkiMessage.AddOptional(asn1EncodableVector, 1, asn1Sequence);
DerSequence derSequence = new DerSequence(asn1EncodableVector);
throw new NullReferenceException();
}
// Token: 0x0600CB4A RID: 52042 RVA: 0x002E9220 File Offset: 0x002E7420
[Token(Token = "0x600CB4A")]
[Address(RVA = "0x2ADF290", Offset = "0x2ADE090", VA = "0x182ADF290")]
private static void AddOptional(Asn1EncodableVector v, int tagNo, Asn1Encodable obj)
{
if (obj != 0)
{
Asn1Encodable[] array = new Asn1Encodable[1];
DerTaggedObject derTaggedObject = new DerTaggedObject(true, tagNo, obj);
if (derTaggedObject != 0)
{
}
array[0] = derTaggedObject;
v.Add(array);
}
}
// Token: 0x04008187 RID: 33159
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4008187")]
private readonly PkiHeader header;
// Token: 0x04008188 RID: 33160
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4008188")]
private readonly PkiBody body;
// Token: 0x04008189 RID: 33161
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4008189")]
private readonly DerBitString protection;
// Token: 0x0400818A RID: 33162
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x400818A")]
private readonly Asn1Sequence extraCerts;
}
}
@@ -0,0 +1,127 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
{
// Token: 0x02001F60 RID: 8032
[Token(Token = "0x2001F60")]
public class PkiMessages : Asn1Encodable
{
// Token: 0x0600CB4B RID: 52043 RVA: 0x002E925C File Offset: 0x002E745C
[Token(Token = "0x600CB4B")]
[Address(RVA = "0x462000", Offset = "0x460E00", VA = "0x180462000")]
private PkiMessages(Asn1Sequence seq)
{
this.content = seq;
}
// Token: 0x0600CB4C RID: 52044 RVA: 0x002E9278 File Offset: 0x002E7478
[Token(Token = "0x600CB4C")]
[Address(RVA = "0x2ADFA50", Offset = "0x2ADE850", VA = "0x182ADFA50")]
public static PkiMessages GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600CB4C)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiMessages BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiMessages::GetInstance(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_29:
stloc:string(var_6_2F, call:string(Platform::GetTypeName, ldloc:object(obj)))
stloc:ArgumentException(var_7_47, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_6_2F)), 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: 0x0600CB4D RID: 52045 RVA: 0x002E92D0 File Offset: 0x002E74D0
[Token(Token = "0x600CB4D")]
[Address(RVA = "0x2ADFE30", Offset = "0x2ADEC30", VA = "0x182ADFE30")]
public PkiMessages(params PkiMessage[] msgs)
{
DerSequence derSequence = new DerSequence(msgs);
this.content = derSequence;
}
// Token: 0x0600CB4E RID: 52046 RVA: 0x002E92F4 File Offset: 0x002E74F4
[Token(Token = "0x600CB4E")]
[Address(RVA = "0x2ADFC40", Offset = "0x2ADEA40", VA = "0x182ADFC40", Slot = "6")]
public virtual PkiMessage[] ToPkiMessageArray()
{
PkiMessage[] array;
int num;
Asn1Sequence asn1Sequence2;
do
{
Asn1Sequence asn1Sequence = this.content;
Asn1Encodable asn1Encodable;
array = new PkiMessage[asn1Encodable];
num = 0;
int num2 = 0;
if (num2 == array.Length)
{
return array;
}
Asn1SequenceParser parser = this.content.Parser;
if (parser == 0)
{
goto IL_50;
}
if (parser == 0)
{
PkiMessage pkiMessage = new PkiMessage(asn1Sequence2);
}
}
while (asn1Sequence2 == 0);
if (asn1Sequence2 == 0)
{
goto IL_53;
}
IL_50:
int num3 = 0;
IL_53:
num++;
array[0] = num3;
return array;
}
// Token: 0x0600CB4F RID: 52047 RVA: 0x002E9370 File Offset: 0x002E7570
[Token(Token = "0x600CB4F")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
/*
An exception occurred when decompiling this method (0600CB4F)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiMessages::ToAsn1Object()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:Asn1Sequence(var_0_06, ldfld:Asn1Sequence(PkiMessages::content, ldloc:PkiMessages(this)))
}
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: 0x0400818B RID: 33163
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x400818B")]
private Asn1Sequence content;
}
}
@@ -0,0 +1,32 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
{
// Token: 0x02001F61 RID: 8033
[Token(Token = "0x2001F61")]
public enum PkiStatus
{
// Token: 0x0400818D RID: 33165
[Token(Token = "0x400818D")]
Granted,
// Token: 0x0400818E RID: 33166
[Token(Token = "0x400818E")]
GrantedWithMods,
// Token: 0x0400818F RID: 33167
[Token(Token = "0x400818F")]
Rejection,
// Token: 0x04008190 RID: 33168
[Token(Token = "0x4008190")]
Waiting,
// Token: 0x04008191 RID: 33169
[Token(Token = "0x4008191")]
RevocationWarning,
// Token: 0x04008192 RID: 33170
[Token(Token = "0x4008192")]
RevocationNotification,
// Token: 0x04008193 RID: 33171
[Token(Token = "0x4008193")]
KeyUpdateWarning
}
}
@@ -0,0 +1,166 @@
using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
{
// Token: 0x02001F62 RID: 8034
[Token(Token = "0x2001F62")]
public class PkiStatusEncodable : Asn1Encodable
{
// Token: 0x0600CB50 RID: 52048 RVA: 0x002E9384 File Offset: 0x002E7584
[Token(Token = "0x600CB50")]
[Address(RVA = "0x2AE03A0", Offset = "0x2ADF1A0", VA = "0x182AE03A0")]
private PkiStatusEncodable(PkiStatus status)
{
DerInteger derInteger = new DerInteger((int)status);
base..ctor();
this.status = derInteger;
}
// Token: 0x0600CB51 RID: 52049 RVA: 0x002E93A8 File Offset: 0x002E75A8
[Token(Token = "0x600CB51")]
[Address(RVA = "0x462000", Offset = "0x460E00", VA = "0x180462000")]
private PkiStatusEncodable(DerInteger status)
{
this.status = status;
}
// Token: 0x0600CB52 RID: 52050 RVA: 0x002E93C4 File Offset: 0x002E75C4
[Token(Token = "0x600CB52")]
[Address(RVA = "0x2ADFEA0", Offset = "0x2ADECA0", VA = "0x182ADFEA0")]
public static PkiStatusEncodable GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600CB52)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiStatusEncodable BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiStatusEncodable::GetInstance(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_29:
stloc:string(var_6_2F, call:string(Platform::GetTypeName, ldloc:object(obj)))
stloc:ArgumentException(var_7_47, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_6_2F)), 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: 0x17002046 RID: 8262
// (get) Token: 0x0600CB53 RID: 52051 RVA: 0x002E941C File Offset: 0x002E761C
[Token(Token = "0x17002046")]
public virtual BigInteger Value
{
[Token(Token = "0x600CB53")]
[Address(RVA = "0x283C9E0", Offset = "0x283B7E0", VA = "0x18283C9E0", Slot = "6")]
get
{
return this.status.Value;
}
}
// Token: 0x0600CB54 RID: 52052 RVA: 0x002E943C File Offset: 0x002E763C
[Token(Token = "0x600CB54")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
/*
An exception occurred when decompiling this method (0600CB54)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiStatusEncodable::ToAsn1Object()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:DerInteger(var_0_06, ldfld:DerInteger(PkiStatusEncodable::status, ldloc:PkiStatusEncodable(this)))
}
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: 0x0600CB55 RID: 52053 RVA: 0x002E9450 File Offset: 0x002E7650
// Note: this type is marked as 'beforefieldinit'.
[Token(Token = "0x600CB55")]
[Address(RVA = "0x2AE0090", Offset = "0x2ADEE90", VA = "0x182AE0090")]
static PkiStatusEncodable()
{
int num;
PkiStatusEncodable pkiStatusEncodable = new PkiStatusEncodable((PkiStatus)num);
DerInteger derInteger = new DerInteger(num);
num = 0;
pkiStatusEncodable.status = derInteger;
PkiStatusEncodable.granted = pkiStatusEncodable;
PkiStatusEncodable pkiStatusEncodable2 = new PkiStatusEncodable(PkiStatus.GrantedWithMods);
DerInteger derInteger2 = new DerInteger(1);
pkiStatusEncodable2.status = derInteger2;
PkiStatusEncodable.grantedWithMods = pkiStatusEncodable2;
PkiStatusEncodable pkiStatusEncodable3 = new PkiStatusEncodable(PkiStatus.Rejection);
DerInteger derInteger3 = new DerInteger(2);
pkiStatusEncodable3.status = derInteger3;
PkiStatusEncodable.rejection = pkiStatusEncodable3;
PkiStatusEncodable pkiStatusEncodable4 = new PkiStatusEncodable(PkiStatus.Waiting);
DerInteger derInteger4 = new DerInteger(3);
pkiStatusEncodable4.status = derInteger4;
PkiStatusEncodable.waiting = pkiStatusEncodable4;
PkiStatusEncodable pkiStatusEncodable5 = new PkiStatusEncodable(PkiStatus.RevocationWarning);
DerInteger derInteger5 = new DerInteger(4);
pkiStatusEncodable5.status = derInteger5;
PkiStatusEncodable.revocationWarning = pkiStatusEncodable5;
PkiStatusEncodable pkiStatusEncodable6 = new PkiStatusEncodable(PkiStatus.RevocationNotification);
DerInteger derInteger6 = new DerInteger(5);
pkiStatusEncodable6.status = derInteger6;
PkiStatusEncodable.revocationNotification = pkiStatusEncodable6;
PkiStatusEncodable pkiStatusEncodable7 = new PkiStatusEncodable(PkiStatus.KeyUpdateWarning);
DerInteger derInteger7 = new DerInteger(6);
pkiStatusEncodable7.status = derInteger7;
PkiStatusEncodable.keyUpdateWaiting = pkiStatusEncodable7;
}
// Token: 0x04008194 RID: 33172
[Token(Token = "0x4008194")]
public static readonly PkiStatusEncodable granted;
// Token: 0x04008195 RID: 33173
[Token(Token = "0x4008195")]
public static readonly PkiStatusEncodable grantedWithMods;
// Token: 0x04008196 RID: 33174
[Token(Token = "0x4008196")]
public static readonly PkiStatusEncodable rejection;
// Token: 0x04008197 RID: 33175
[Token(Token = "0x4008197")]
public static readonly PkiStatusEncodable waiting;
// Token: 0x04008198 RID: 33176
[Token(Token = "0x4008198")]
public static readonly PkiStatusEncodable revocationWarning;
// Token: 0x04008199 RID: 33177
[Token(Token = "0x4008199")]
public static readonly PkiStatusEncodable revocationNotification;
// Token: 0x0400819A RID: 33178
[Token(Token = "0x400819A")]
public static readonly PkiStatusEncodable keyUpdateWaiting;
// Token: 0x0400819B RID: 33179
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x400819B")]
private readonly DerInteger status;
}
}
@@ -0,0 +1,192 @@
using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
{
// Token: 0x02001F63 RID: 8035
[Token(Token = "0x2001F63")]
public class PkiStatusInfo : Asn1Encodable
{
// Token: 0x0600CB56 RID: 52054 RVA: 0x002E9538 File Offset: 0x002E7738
[Token(Token = "0x600CB56")]
[Address(RVA = "0x2AE0410", Offset = "0x2ADF210", VA = "0x182AE0410")]
public static PkiStatusInfo GetInstance(Asn1TaggedObject obj, bool isExplicit)
{
return PkiStatusInfo.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
}
// Token: 0x0600CB57 RID: 52055 RVA: 0x002E9554 File Offset: 0x002E7754
[Token(Token = "0x600CB57")]
[Address(RVA = "0x2AE0430", Offset = "0x2ADF230", VA = "0x182AE0430")]
public static PkiStatusInfo GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600CB57)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiStatusInfo BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiStatusInfo::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("Unknown object in factory: "), 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: 0x0600CB58 RID: 52056 RVA: 0x002E95A4 File Offset: 0x002E77A4
[Token(Token = "0x600CB58")]
[Address(RVA = "0x2AE0940", Offset = "0x2ADF740", VA = "0x182AE0940")]
public PkiStatusInfo(Asn1Sequence seq)
{
Asn1SequenceParser parser = seq.Parser;
DerInteger derInteger;
this.status = derInteger;
int num = 0;
this.statusString = num;
this.failInfo = num;
Asn1Encodable asn1Encodable;
if (asn1Encodable > (ulong)1L)
{
Asn1SequenceParser parser2 = seq.Parser;
if (parser2 == 0 || parser2 == 0)
{
PkiFreeText pkiFreeText;
this.statusString = pkiFreeText;
return;
}
DerBitString derBitString;
this.failInfo = derBitString;
}
}
// Token: 0x0600CB59 RID: 52057 RVA: 0x002E9610 File Offset: 0x002E7810
[Token(Token = "0x600CB59")]
[Address(RVA = "0x2AE0B10", Offset = "0x2ADF910", VA = "0x182AE0B10")]
public PkiStatusInfo(int status)
{
DerInteger derInteger = new DerInteger(status);
this.status = derInteger;
}
// Token: 0x0600CB5A RID: 52058 RVA: 0x002E9634 File Offset: 0x002E7834
[Token(Token = "0x600CB5A")]
[Address(RVA = "0x2AE0830", Offset = "0x2ADF630", VA = "0x182AE0830")]
public PkiStatusInfo(int status, PkiFreeText statusString)
{
DerInteger derInteger = new DerInteger(status);
this.status = derInteger;
this.statusString = statusString;
}
// Token: 0x0600CB5B RID: 52059 RVA: 0x002E965C File Offset: 0x002E785C
[Token(Token = "0x600CB5B")]
[Address(RVA = "0x2AE08B0", Offset = "0x2ADF6B0", VA = "0x182AE08B0")]
public PkiStatusInfo(int status, PkiFreeText statusString, PkiFailureInfo failInfo)
{
DerInteger derInteger = new DerInteger(status);
this.status = derInteger;
this.statusString = statusString;
this.failInfo = failInfo;
}
// Token: 0x17002047 RID: 8263
// (get) Token: 0x0600CB5C RID: 52060 RVA: 0x002E968C File Offset: 0x002E788C
[Token(Token = "0x17002047")]
public BigInteger Status
{
[Token(Token = "0x600CB5C")]
[Address(RVA = "0x283C9E0", Offset = "0x283B7E0", VA = "0x18283C9E0")]
get
{
return this.status.Value;
}
}
// Token: 0x17002048 RID: 8264
// (get) Token: 0x0600CB5D RID: 52061 RVA: 0x002E96AC File Offset: 0x002E78AC
[Token(Token = "0x17002048")]
public PkiFreeText StatusString
{
[Token(Token = "0x600CB5D")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
get
{
return this.statusString;
}
}
// Token: 0x17002049 RID: 8265
// (get) Token: 0x0600CB5E RID: 52062 RVA: 0x002E96C0 File Offset: 0x002E78C0
[Token(Token = "0x17002049")]
public DerBitString FailInfo
{
[Token(Token = "0x600CB5E")]
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
get
{
return this.failInfo;
}
}
// Token: 0x0600CB5F RID: 52063 RVA: 0x002E96D4 File Offset: 0x002E78D4
[Token(Token = "0x600CB5F")]
[Address(RVA = "0x2AE0620", Offset = "0x2ADF420", VA = "0x182AE0620", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1Encodable[] array = new Asn1Encodable[1];
DerInteger derInteger = this.status;
if (derInteger != 0)
{
}
array[0] = derInteger;
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
if (this.statusString != (ulong)0L)
{
Asn1Encodable[] array2 = new Asn1Encodable[1];
PkiFreeText pkiFreeText = this.statusString;
if (pkiFreeText != 0)
{
}
array2[0] = pkiFreeText;
asn1EncodableVector.Add(array2);
}
if (this.failInfo != (ulong)0L)
{
Asn1Encodable[] array3 = new Asn1Encodable[1];
DerBitString derBitString = this.failInfo;
if (derBitString != 0)
{
}
array3[0] = derBitString;
asn1EncodableVector.Add(array3);
}
DerSequence derSequence = new DerSequence(asn1EncodableVector);
throw new NullReferenceException();
}
// Token: 0x0400819C RID: 33180
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x400819C")]
private DerInteger status;
// Token: 0x0400819D RID: 33181
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400819D")]
private PkiFreeText statusString;
// Token: 0x0400819E RID: 33182
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x400819E")]
private DerBitString failInfo;
}
}
@@ -0,0 +1,159 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
{
// Token: 0x02001F65 RID: 8037
[Token(Token = "0x2001F65")]
public class PollRepContent : Asn1Encodable
{
// Token: 0x0600CB69 RID: 52073 RVA: 0x002E996C File Offset: 0x002E7B6C
[Token(Token = "0x600CB69")]
[Address(RVA = "0x2AE1000", Offset = "0x2ADFE00", VA = "0x182AE1000")]
private PollRepContent(Asn1Sequence seq)
{
Asn1SequenceParser parser = seq.Parser;
DerInteger derInteger;
this.certReqId = derInteger;
Asn1SequenceParser parser2 = seq.Parser;
DerInteger derInteger2;
this.checkAfter = derInteger2;
Asn1Encodable asn1Encodable;
if (asn1Encodable > (ulong)2L)
{
Asn1SequenceParser parser3 = seq.Parser;
PkiFreeText pkiFreeText;
this.reason = pkiFreeText;
}
}
// Token: 0x0600CB6A RID: 52074 RVA: 0x002E99B8 File Offset: 0x002E7BB8
[Token(Token = "0x600CB6A")]
[Address(RVA = "0x2AE0B80", Offset = "0x2ADF980", VA = "0x182AE0B80")]
public static PollRepContent GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600CB6A)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PollRepContent BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PollRepContent::GetInstance(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_3A:
stloc:string(var_9_40, call:string(Platform::GetTypeName, ldloc:object(obj)))
stloc:ArgumentException(var_10_58, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_9_40)), 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: 0x0600CB6B RID: 52075 RVA: 0x002E9A20 File Offset: 0x002E7C20
[Token(Token = "0x600CB6B")]
[Address(RVA = "0x2AE0FC0", Offset = "0x2ADFDC0", VA = "0x182AE0FC0")]
public PollRepContent(DerInteger certReqId, DerInteger checkAfter)
{
this.certReqId = certReqId;
this.checkAfter = checkAfter;
this.reason = (ulong)0L;
}
// Token: 0x0600CB6C RID: 52076 RVA: 0x002E9A4C File Offset: 0x002E7C4C
[Token(Token = "0x600CB6C")]
[Address(RVA = "0xECF220", Offset = "0xECE020", VA = "0x180ECF220")]
public PollRepContent(DerInteger certReqId, DerInteger checkAfter, PkiFreeText reason)
{
this.certReqId = certReqId;
this.checkAfter = checkAfter;
this.reason = reason;
}
// Token: 0x1700204E RID: 8270
// (get) Token: 0x0600CB6D RID: 52077 RVA: 0x002E9A74 File Offset: 0x002E7C74
[Token(Token = "0x1700204E")]
public virtual DerInteger CertReqID
{
[Token(Token = "0x600CB6D")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
get
{
return this.certReqId;
}
}
// Token: 0x1700204F RID: 8271
// (get) Token: 0x0600CB6E RID: 52078 RVA: 0x002E9A88 File Offset: 0x002E7C88
[Token(Token = "0x1700204F")]
public virtual DerInteger CheckAfter
{
[Token(Token = "0x600CB6E")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
get
{
return this.checkAfter;
}
}
// Token: 0x17002050 RID: 8272
// (get) Token: 0x0600CB6F RID: 52079 RVA: 0x002E9A9C File Offset: 0x002E7C9C
[Token(Token = "0x17002050")]
public virtual PkiFreeText Reason
{
[Token(Token = "0x600CB6F")]
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400", Slot = "8")]
get
{
return this.reason;
}
}
// Token: 0x0600CB70 RID: 52080 RVA: 0x002E9AB0 File Offset: 0x002E7CB0
[Token(Token = "0x600CB70")]
[Address(RVA = "0x2AE0E00", Offset = "0x2ADFC00", VA = "0x182AE0E00", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1Encodable[] array = new Asn1Encodable[2];
DerInteger derInteger = this.certReqId;
if (derInteger != 0)
{
}
array[0] = derInteger;
DerInteger derInteger2 = this.checkAfter;
if (derInteger2 != 0)
{
}
array[1] = derInteger2;
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
Asn1Encodable[] array2 = new Asn1Encodable[1];
PkiFreeText pkiFreeText = this.reason;
if (pkiFreeText != 0)
{
}
array2[0] = pkiFreeText;
asn1EncodableVector.AddOptional(array2);
DerSequence derSequence = new DerSequence(asn1EncodableVector);
throw new NullReferenceException();
}
// Token: 0x040081A3 RID: 33187
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40081A3")]
private readonly DerInteger certReqId;
// Token: 0x040081A4 RID: 33188
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40081A4")]
private readonly DerInteger checkAfter;
// Token: 0x040081A5 RID: 33189
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x40081A5")]
private readonly PkiFreeText reason;
}
}
@@ -0,0 +1,138 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
{
// Token: 0x02001F66 RID: 8038
[Token(Token = "0x2001F66")]
public class PollReqContent : Asn1Encodable
{
// Token: 0x0600CB71 RID: 52081 RVA: 0x002E9B28 File Offset: 0x002E7D28
[Token(Token = "0x600CB71")]
[Address(RVA = "0x462000", Offset = "0x460E00", VA = "0x180462000")]
private PollReqContent(Asn1Sequence seq)
{
this.content = seq;
}
// Token: 0x0600CB72 RID: 52082 RVA: 0x002E9B44 File Offset: 0x002E7D44
[Token(Token = "0x600CB72")]
[Address(RVA = "0x2AE1300", Offset = "0x2AE0100", VA = "0x182AE1300")]
public static PollReqContent GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600CB72)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PollReqContent BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PollReqContent::GetInstance(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_29:
stloc:string(var_6_2F, call:string(Platform::GetTypeName, ldloc:object(obj)))
stloc:ArgumentException(var_7_47, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_6_2F)), 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: 0x0600CB73 RID: 52083 RVA: 0x002E9B9C File Offset: 0x002E7D9C
[Token(Token = "0x600CB73")]
[Address(RVA = "0x2AE10C0", Offset = "0x2ADFEC0", VA = "0x182AE10C0", Slot = "6")]
public virtual DerInteger[][] GetCertReqIDs()
{
DerInteger[][] array;
int num2;
Asn1SequenceParser parser;
do
{
Asn1Sequence asn1Sequence = this.content;
Asn1Encodable asn1Encodable;
array = new DerInteger[asn1Encodable][];
int num = 0;
num2 = 0;
if (num == array.Length)
{
return array;
}
parser = this.content.Parser;
if (parser == 0)
{
}
}
while (parser == 0);
DerInteger[] array2 = new DerInteger[0];
int num3 = 0;
if (num3 != array2.Length)
{
DerInteger derInteger;
if (derInteger != 0)
{
}
num3++;
array2[0] = derInteger;
}
num2++;
array[0] = array2;
return array;
}
// Token: 0x0600CB74 RID: 52084 RVA: 0x002E9C24 File Offset: 0x002E7E24
[Token(Token = "0x600CB74")]
[Address(RVA = "0x2AE14F0", Offset = "0x2AE02F0", VA = "0x182AE14F0")]
private static DerInteger[] SequenceToDerIntegerArray(Asn1Sequence seq)
{
Asn1Encodable asn1Encodable;
DerInteger[] array = new DerInteger[asn1Encodable];
int num = 0;
if (num != array.Length)
{
Asn1SequenceParser parser = seq.Parser;
DerInteger derInteger;
if (derInteger != 0)
{
}
num++;
array[0] = derInteger;
}
return array;
}
// Token: 0x0600CB75 RID: 52085 RVA: 0x002E9C64 File Offset: 0x002E7E64
[Token(Token = "0x600CB75")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
/*
An exception occurred when decompiling this method (0600CB75)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PollReqContent::ToAsn1Object()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:Asn1Sequence(var_0_06, ldfld:Asn1Sequence(PollReqContent::content, ldloc:PollReqContent(this)))
}
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: 0x040081A6 RID: 33190
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40081A6")]
private readonly Asn1Sequence content;
}
}
@@ -0,0 +1,98 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
{
// Token: 0x02001F67 RID: 8039
[Token(Token = "0x2001F67")]
public class PopoDecKeyChallContent : Asn1Encodable
{
// Token: 0x0600CB76 RID: 52086 RVA: 0x002E9C78 File Offset: 0x002E7E78
[Token(Token = "0x600CB76")]
[Address(RVA = "0x462000", Offset = "0x460E00", VA = "0x180462000")]
private PopoDecKeyChallContent(Asn1Sequence seq)
{
this.content = seq;
}
// Token: 0x0600CB77 RID: 52087 RVA: 0x002E9C94 File Offset: 0x002E7E94
[Token(Token = "0x600CB77")]
[Address(RVA = "0x2AE1600", Offset = "0x2AE0400", VA = "0x182AE1600")]
public static PopoDecKeyChallContent GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600CB77)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PopoDecKeyChallContent BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PopoDecKeyChallContent::GetInstance(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_29:
stloc:string(var_6_2F, call:string(Platform::GetTypeName, ldloc:object(obj)))
stloc:ArgumentException(var_7_47, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_6_2F)), 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: 0x0600CB78 RID: 52088 RVA: 0x002E9CEC File Offset: 0x002E7EEC
[Token(Token = "0x600CB78")]
[Address(RVA = "0x2AE17F0", Offset = "0x2AE05F0", VA = "0x182AE17F0", Slot = "6")]
public virtual Challenge[] ToChallengeArray()
{
Asn1Sequence asn1Sequence = this.content;
Asn1Encodable asn1Encodable;
Challenge[] array = new Challenge[asn1Encodable];
int num = 0;
if (num != array.Length)
{
Asn1SequenceParser parser = this.content.Parser;
Challenge challenge;
if (challenge != 0)
{
}
num++;
array[0] = challenge;
}
return array;
}
// Token: 0x0600CB79 RID: 52089 RVA: 0x002E9D38 File Offset: 0x002E7F38
[Token(Token = "0x600CB79")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
/*
An exception occurred when decompiling this method (0600CB79)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PopoDecKeyChallContent::ToAsn1Object()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:Asn1Sequence(var_0_06, ldfld:Asn1Sequence(PopoDecKeyChallContent::content, ldloc:PopoDecKeyChallContent(this)))
}
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: 0x040081A7 RID: 33191
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40081A7")]
private readonly Asn1Sequence content;
}
}
@@ -0,0 +1,98 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
{
// Token: 0x02001F68 RID: 8040
[Token(Token = "0x2001F68")]
public class PopoDecKeyRespContent : Asn1Encodable
{
// Token: 0x0600CB7A RID: 52090 RVA: 0x002E9D4C File Offset: 0x002E7F4C
[Token(Token = "0x600CB7A")]
[Address(RVA = "0x462000", Offset = "0x460E00", VA = "0x180462000")]
private PopoDecKeyRespContent(Asn1Sequence seq)
{
this.content = seq;
}
// Token: 0x0600CB7B RID: 52091 RVA: 0x002E9D68 File Offset: 0x002E7F68
[Token(Token = "0x600CB7B")]
[Address(RVA = "0x2AE1900", Offset = "0x2AE0700", VA = "0x182AE1900")]
public static PopoDecKeyRespContent GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600CB7B)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PopoDecKeyRespContent BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PopoDecKeyRespContent::GetInstance(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_29:
stloc:string(var_6_2F, call:string(Platform::GetTypeName, ldloc:object(obj)))
stloc:ArgumentException(var_7_47, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_6_2F)), 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: 0x0600CB7C RID: 52092 RVA: 0x002E9DC0 File Offset: 0x002E7FC0
[Token(Token = "0x600CB7C")]
[Address(RVA = "0x2AE1AF0", Offset = "0x2AE08F0", VA = "0x182AE1AF0", Slot = "6")]
public virtual DerInteger[] ToDerIntegerArray()
{
Asn1Sequence asn1Sequence = this.content;
Asn1Encodable asn1Encodable;
DerInteger[] array = new DerInteger[asn1Encodable];
int num = 0;
if (num != array.Length)
{
Asn1SequenceParser parser = this.content.Parser;
DerInteger derInteger;
if (derInteger != 0)
{
}
num++;
array[0] = derInteger;
}
return array;
}
// Token: 0x0600CB7D RID: 52093 RVA: 0x002E9E0C File Offset: 0x002E800C
[Token(Token = "0x600CB7D")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
/*
An exception occurred when decompiling this method (0600CB7D)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PopoDecKeyRespContent::ToAsn1Object()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:Asn1Sequence(var_0_06, ldfld:Asn1Sequence(PopoDecKeyRespContent::content, ldloc:PopoDecKeyRespContent(this)))
}
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: 0x040081A8 RID: 33192
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40081A8")]
private readonly Asn1Sequence content;
}
}
@@ -0,0 +1,115 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
{
// Token: 0x02001F69 RID: 8041
[Token(Token = "0x2001F69")]
public class ProtectedPart : Asn1Encodable
{
// Token: 0x0600CB7E RID: 52094 RVA: 0x002E9E20 File Offset: 0x002E8020
[Token(Token = "0x600CB7E")]
[Address(RVA = "0x2AE1F80", Offset = "0x2AE0D80", VA = "0x182AE1F80")]
private ProtectedPart(Asn1Sequence seq)
{
Asn1SequenceParser parser = seq.Parser;
PkiHeader pkiHeader;
this.header = pkiHeader;
Asn1SequenceParser parser2 = seq.Parser;
PkiBody pkiBody;
this.body = pkiBody;
}
// Token: 0x0600CB7F RID: 52095 RVA: 0x002E9E58 File Offset: 0x002E8058
[Token(Token = "0x600CB7F")]
[Address(RVA = "0x2AE1C00", Offset = "0x2AE0A00", VA = "0x182AE1C00")]
public static ProtectedPart GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600CB7F)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.ProtectedPart BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.ProtectedPart::GetInstance(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_2E:
stloc:string(var_8_34, call:string(Platform::GetTypeName, ldloc:object(obj)))
stloc:ArgumentException(var_9_4C, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_8_34)), 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: 0x0600CB80 RID: 52096 RVA: 0x002E9EB4 File Offset: 0x002E80B4
[Token(Token = "0x600CB80")]
[Address(RVA = "0x497CA0", Offset = "0x496AA0", VA = "0x180497CA0")]
public ProtectedPart(PkiHeader header, PkiBody body)
{
this.header = header;
this.body = body;
}
// Token: 0x17002051 RID: 8273
// (get) Token: 0x0600CB81 RID: 52097 RVA: 0x002E9ED8 File Offset: 0x002E80D8
[Token(Token = "0x17002051")]
public virtual PkiHeader Header
{
[Token(Token = "0x600CB81")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
get
{
return this.header;
}
}
// Token: 0x17002052 RID: 8274
// (get) Token: 0x0600CB82 RID: 52098 RVA: 0x002E9EEC File Offset: 0x002E80EC
[Token(Token = "0x17002052")]
public virtual PkiBody Body
{
[Token(Token = "0x600CB82")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
get
{
return this.body;
}
}
// Token: 0x0600CB83 RID: 52099 RVA: 0x002E9F00 File Offset: 0x002E8100
[Token(Token = "0x600CB83")]
[Address(RVA = "0x2AE1E70", Offset = "0x2AE0C70", VA = "0x182AE1E70", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1Encodable[] array = new Asn1Encodable[2];
PkiHeader pkiHeader = this.header;
if (pkiHeader != 0)
{
}
array[0] = pkiHeader;
PkiBody pkiBody = this.body;
if (pkiBody != 0)
{
}
array[1] = pkiBody;
DerSequence derSequence = new DerSequence(array);
throw new NullReferenceException();
}
// Token: 0x040081A9 RID: 33193
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40081A9")]
private readonly PkiHeader header;
// Token: 0x040081AA RID: 33194
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40081AA")]
private readonly PkiBody body;
}
}
@@ -0,0 +1,193 @@
using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
{
// Token: 0x02001F6A RID: 8042
[Token(Token = "0x2001F6A")]
public class RevAnnContent : Asn1Encodable
{
// Token: 0x0600CB84 RID: 52100 RVA: 0x002E9F48 File Offset: 0x002E8148
[Token(Token = "0x600CB84")]
[Address(RVA = "0x2AE3FA0", Offset = "0x2AE2DA0", VA = "0x182AE3FA0")]
private RevAnnContent(Asn1Sequence seq)
{
Asn1SequenceParser parser = seq.Parser;
PkiStatusEncodable pkiStatusEncodable;
this.status = pkiStatusEncodable;
Asn1SequenceParser parser2 = seq.Parser;
CertId certId;
this.certId = certId;
Asn1SequenceParser parser3 = seq.Parser;
DerGeneralizedTime derGeneralizedTime;
this.willBeRevokedAt = derGeneralizedTime;
Asn1SequenceParser parser4 = seq.Parser;
DerGeneralizedTime derGeneralizedTime2;
this.badSinceDate = derGeneralizedTime2;
Asn1Encodable asn1Encodable;
if (asn1Encodable > (ulong)4L)
{
Asn1SequenceParser parser5 = seq.Parser;
X509Extensions x509Extensions;
this.crlDetails = x509Extensions;
}
}
// Token: 0x0600CB85 RID: 52101 RVA: 0x002E9FB4 File Offset: 0x002E81B4
[Token(Token = "0x600CB85")]
[Address(RVA = "0x2AE3A20", Offset = "0x2AE2820", VA = "0x182AE3A20")]
public static RevAnnContent GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600CB85)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.RevAnnContent BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.RevAnnContent::GetInstance(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_46:
stloc:string(var_11_4C, call:string(Platform::GetTypeName, ldloc:object(obj)))
stloc:ArgumentException(var_12_64, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_11_4C)), 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: 0x17002053 RID: 8275
// (get) Token: 0x0600CB86 RID: 52102 RVA: 0x002EA028 File Offset: 0x002E8228
[Token(Token = "0x17002053")]
public virtual PkiStatusEncodable Status
{
[Token(Token = "0x600CB86")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
get
{
return this.status;
}
}
// Token: 0x17002054 RID: 8276
// (get) Token: 0x0600CB87 RID: 52103 RVA: 0x002EA03C File Offset: 0x002E823C
[Token(Token = "0x17002054")]
public virtual CertId CertID
{
[Token(Token = "0x600CB87")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
get
{
return this.certId;
}
}
// Token: 0x17002055 RID: 8277
// (get) Token: 0x0600CB88 RID: 52104 RVA: 0x002EA050 File Offset: 0x002E8250
[Token(Token = "0x17002055")]
public virtual DerGeneralizedTime WillBeRevokedAt
{
[Token(Token = "0x600CB88")]
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400", Slot = "8")]
get
{
return this.willBeRevokedAt;
}
}
// Token: 0x17002056 RID: 8278
// (get) Token: 0x0600CB89 RID: 52105 RVA: 0x002EA064 File Offset: 0x002E8264
[Token(Token = "0x17002056")]
public virtual DerGeneralizedTime BadSinceDate
{
[Token(Token = "0x600CB89")]
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0", Slot = "9")]
get
{
return this.badSinceDate;
}
}
// Token: 0x17002057 RID: 8279
// (get) Token: 0x0600CB8A RID: 52106 RVA: 0x002EA078 File Offset: 0x002E8278
[Token(Token = "0x17002057")]
public virtual X509Extensions CrlDetails
{
[Token(Token = "0x600CB8A")]
[Address(RVA = "0x3FA180", Offset = "0x3F8F80", VA = "0x1803FA180", Slot = "10")]
get
{
return this.crlDetails;
}
}
// Token: 0x0600CB8B RID: 52107 RVA: 0x002EA08C File Offset: 0x002E828C
[Token(Token = "0x600CB8B")]
[Address(RVA = "0x2AE3D40", Offset = "0x2AE2B40", VA = "0x182AE3D40", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1Encodable[] array = new Asn1Encodable[4];
PkiStatusEncodable pkiStatusEncodable = this.status;
if (pkiStatusEncodable != 0)
{
}
array[0] = pkiStatusEncodable;
CertId certId = this.certId;
if (certId != 0)
{
}
array[1] = certId;
DerGeneralizedTime derGeneralizedTime = this.willBeRevokedAt;
if (derGeneralizedTime != 0)
{
}
array[2] = derGeneralizedTime;
DerGeneralizedTime derGeneralizedTime2 = this.badSinceDate;
if (derGeneralizedTime2 != 0)
{
}
array[3] = derGeneralizedTime2;
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
Asn1Encodable[] array2 = new Asn1Encodable[1];
X509Extensions x509Extensions = this.crlDetails;
if (x509Extensions != 0)
{
}
array2[0] = x509Extensions;
asn1EncodableVector.AddOptional(array2);
DerSequence derSequence = new DerSequence(asn1EncodableVector);
throw new NullReferenceException();
}
// Token: 0x040081AB RID: 33195
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40081AB")]
private readonly PkiStatusEncodable status;
// Token: 0x040081AC RID: 33196
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40081AC")]
private readonly CertId certId;
// Token: 0x040081AD RID: 33197
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x40081AD")]
private readonly DerGeneralizedTime willBeRevokedAt;
// Token: 0x040081AE RID: 33198
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x40081AE")]
private readonly DerGeneralizedTime badSinceDate;
// Token: 0x040081AF RID: 33199
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x40081AF")]
private readonly X509Extensions crlDetails;
}
}
@@ -0,0 +1,128 @@
using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
{
// Token: 0x02001F6B RID: 8043
[Token(Token = "0x2001F6B")]
public class RevDetails : Asn1Encodable
{
// Token: 0x0600CB8C RID: 52108 RVA: 0x002EA130 File Offset: 0x002E8330
[Token(Token = "0x600CB8C")]
[Address(RVA = "0x2AE4520", Offset = "0x2AE3320", VA = "0x182AE4520")]
private RevDetails(Asn1Sequence seq)
{
Asn1SequenceParser parser = seq.Parser;
CertTemplate certTemplate;
this.certDetails = certTemplate;
int num = 0;
this.crlEntryDetails = num;
}
// Token: 0x0600CB8D RID: 52109 RVA: 0x002EA174 File Offset: 0x002E8374
[Token(Token = "0x600CB8D")]
[Address(RVA = "0x2AE4110", Offset = "0x2AE2F10", VA = "0x182AE4110")]
public static RevDetails GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600CB8D)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.RevDetails BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.RevDetails::GetInstance(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_31:
stloc:string(var_9_37, call:string(Platform::GetTypeName, ldloc:object(obj)))
stloc:ArgumentException(var_10_4F, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_9_37)), 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: 0x0600CB8E RID: 52110 RVA: 0x002EA1D4 File Offset: 0x002E83D4
[Token(Token = "0x600CB8E")]
[Address(RVA = "0x497CE0", Offset = "0x496AE0", VA = "0x180497CE0")]
public RevDetails(CertTemplate certDetails)
{
this.certDetails = certDetails;
this.crlEntryDetails = (ulong)0L;
}
// Token: 0x0600CB8F RID: 52111 RVA: 0x002EA1F8 File Offset: 0x002E83F8
[Token(Token = "0x600CB8F")]
[Address(RVA = "0x497CA0", Offset = "0x496AA0", VA = "0x180497CA0")]
public RevDetails(CertTemplate certDetails, X509Extensions crlEntryDetails)
{
this.certDetails = certDetails;
this.crlEntryDetails = crlEntryDetails;
}
// Token: 0x17002058 RID: 8280
// (get) Token: 0x0600CB90 RID: 52112 RVA: 0x002EA21C File Offset: 0x002E841C
[Token(Token = "0x17002058")]
public virtual CertTemplate CertDetails
{
[Token(Token = "0x600CB90")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
get
{
return this.certDetails;
}
}
// Token: 0x17002059 RID: 8281
// (get) Token: 0x0600CB91 RID: 52113 RVA: 0x002EA230 File Offset: 0x002E8430
[Token(Token = "0x17002059")]
public virtual X509Extensions CrlEntryDetails
{
[Token(Token = "0x600CB91")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
get
{
return this.crlEntryDetails;
}
}
// Token: 0x0600CB92 RID: 52114 RVA: 0x002EA244 File Offset: 0x002E8444
[Token(Token = "0x600CB92")]
[Address(RVA = "0x2AE43B0", Offset = "0x2AE31B0", VA = "0x182AE43B0", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1Encodable[] array = new Asn1Encodable[1];
CertTemplate certTemplate = this.certDetails;
if (certTemplate != 0)
{
}
array[0] = certTemplate;
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
Asn1Encodable[] array2 = new Asn1Encodable[1];
X509Extensions x509Extensions = this.crlEntryDetails;
if (x509Extensions != 0)
{
}
array2[0] = x509Extensions;
asn1EncodableVector.AddOptional(array2);
DerSequence derSequence = new DerSequence(asn1EncodableVector);
throw new NullReferenceException();
}
// Token: 0x040081B0 RID: 33200
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40081B0")]
private readonly CertTemplate certDetails;
// Token: 0x040081B1 RID: 33201
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40081B1")]
private readonly X509Extensions crlEntryDetails;
}
}
@@ -0,0 +1,187 @@
using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
{
// Token: 0x02001F6C RID: 8044
[Token(Token = "0x2001F6C")]
public class RevRepContent : Asn1Encodable
{
// Token: 0x0600CB93 RID: 52115 RVA: 0x002EA2A4 File Offset: 0x002E84A4
[Token(Token = "0x600CB93")]
[Address(RVA = "0x2AE5560", Offset = "0x2AE4360", VA = "0x182AE5560")]
private RevRepContent(Asn1Sequence seq)
{
Asn1SequenceParser parser = seq.Parser;
Asn1Sequence asn1Sequence;
this.status = asn1Sequence;
Asn1Encodable asn1Encodable;
if ((uint)1 < asn1Encodable)
{
Asn1SequenceParser parser2 = seq.Parser;
Asn1TaggedObject asn1TaggedObject;
int tagNo = asn1TaggedObject.tagNo;
Asn1Sequence instance = Asn1Sequence.GetInstance(asn1TaggedObject, true);
if (tagNo != 0)
{
this.crls = instance;
}
this.revCerts = instance;
}
}
// Token: 0x0600CB94 RID: 52116 RVA: 0x002EA300 File Offset: 0x002E8500
[Token(Token = "0x600CB94")]
[Address(RVA = "0x2AE4F80", Offset = "0x2AE3D80", VA = "0x182AE4F80")]
public static RevRepContent GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600CB94)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.RevRepContent BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.RevRepContent::GetInstance(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_53:
stloc:string(var_10_59, call:string(Platform::GetTypeName, ldloc:object(obj)))
stloc:ArgumentException(var_11_71, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_10_59)), 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: 0x0600CB95 RID: 52117 RVA: 0x002EA380 File Offset: 0x002E8580
[Token(Token = "0x600CB95")]
[Address(RVA = "0x2AE5330", Offset = "0x2AE4130", VA = "0x182AE5330", Slot = "6")]
public virtual PkiStatusInfo[] GetStatus()
{
Asn1Sequence asn1Sequence = this.status;
Asn1Encodable asn1Encodable;
PkiStatusInfo[] array = new PkiStatusInfo[asn1Encodable];
int num = 0;
if (num != array.Length)
{
Asn1SequenceParser parser = this.status.Parser;
PkiStatusInfo pkiStatusInfo;
if (pkiStatusInfo != 0)
{
}
num++;
array[0] = pkiStatusInfo;
}
return array;
}
// Token: 0x0600CB96 RID: 52118 RVA: 0x002EA3CC File Offset: 0x002E85CC
[Token(Token = "0x600CB96")]
[Address(RVA = "0x2AE5210", Offset = "0x2AE4010", VA = "0x182AE5210", Slot = "7")]
public virtual CertId[] GetRevCerts()
{
if (this.revCerts != 0)
{
Asn1Encodable asn1Encodable;
CertId[] array = new CertId[asn1Encodable];
int num = 0;
if (num != array.Length)
{
Asn1SequenceParser parser = this.revCerts.Parser;
CertId certId;
if (certId != 0)
{
}
num++;
array[0] = certId;
}
return array;
}
throw new ArrayTypeMismatchException();
}
// Token: 0x0600CB97 RID: 52119 RVA: 0x002EA41C File Offset: 0x002E861C
[Token(Token = "0x600CB97")]
[Address(RVA = "0x2AE4E60", Offset = "0x2AE3C60", VA = "0x182AE4E60", Slot = "8")]
public virtual CertificateList[] GetCrls()
{
if (this.crls != 0)
{
Asn1Encodable asn1Encodable;
CertificateList[] array = new CertificateList[asn1Encodable];
int num = 0;
if (num != array.Length)
{
Asn1SequenceParser parser = this.crls.Parser;
CertificateList certificateList;
if (certificateList != 0)
{
}
num++;
array[0] = certificateList;
}
return array;
}
throw new ArrayTypeMismatchException();
}
// Token: 0x0600CB98 RID: 52120 RVA: 0x002EA46C File Offset: 0x002E866C
[Token(Token = "0x600CB98")]
[Address(RVA = "0x2AE5440", Offset = "0x2AE4240", VA = "0x182AE5440", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1Encodable[] array = new Asn1Encodable[1];
Asn1Sequence asn1Sequence = this.status;
if (asn1Sequence != 0)
{
}
array[0] = asn1Sequence;
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
Asn1Sequence asn1Sequence2 = this.revCerts;
int num = 0;
this.AddOptional(asn1EncodableVector, num, asn1Sequence2);
Asn1Sequence asn1Sequence3 = this.crls;
this.AddOptional(asn1EncodableVector, 1, asn1Sequence3);
DerSequence derSequence = new DerSequence(asn1EncodableVector);
throw new NullReferenceException();
}
// Token: 0x0600CB99 RID: 52121 RVA: 0x002EA4D0 File Offset: 0x002E86D0
[Token(Token = "0x600CB99")]
[Address(RVA = "0x2AE4D60", Offset = "0x2AE3B60", VA = "0x182AE4D60")]
private void AddOptional(Asn1EncodableVector v, int tagNo, Asn1Encodable obj)
{
if (obj != 0)
{
Asn1Encodable[] array = new Asn1Encodable[1];
DerTaggedObject derTaggedObject = new DerTaggedObject(true, tagNo, obj);
if (derTaggedObject != 0)
{
}
array[0] = derTaggedObject;
v.Add(array);
}
}
// Token: 0x040081B2 RID: 33202
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40081B2")]
private readonly Asn1Sequence status;
// Token: 0x040081B3 RID: 33203
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40081B3")]
private readonly Asn1Sequence revCerts;
// Token: 0x040081B4 RID: 33204
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x40081B4")]
private readonly Asn1Sequence crls;
}
}
@@ -0,0 +1,141 @@
using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
{
// Token: 0x02001F6D RID: 8045
[Token(Token = "0x2001F6D")]
public class RevRepContentBuilder
{
// Token: 0x0600CB9A RID: 52122 RVA: 0x002EA50C File Offset: 0x002E870C
[Token(Token = "0x600CB9A")]
[Address(RVA = "0x2AE46E0", Offset = "0x2AE34E0", VA = "0x182AE46E0", Slot = "4")]
public virtual RevRepContentBuilder Add(PkiStatusInfo status)
{
Asn1EncodableVector asn1EncodableVector = this.status;
Asn1Encodable[] array = new Asn1Encodable[1];
if (status != 0)
{
}
array[0] = status;
asn1EncodableVector.Add(array);
return this;
}
// Token: 0x0600CB9B RID: 52123 RVA: 0x002EA544 File Offset: 0x002E8744
[Token(Token = "0x600CB9B")]
[Address(RVA = "0x2AE47B0", Offset = "0x2AE35B0", VA = "0x182AE47B0", Slot = "5")]
public virtual RevRepContentBuilder Add(PkiStatusInfo status, CertId certId)
{
int count;
int count2;
do
{
count = this.status.Count;
count2 = this.revCerts.Count;
}
while (count != count2);
Asn1EncodableVector asn1EncodableVector = this.status;
Asn1Encodable[] array = new Asn1Encodable[1];
if (status != 0)
{
}
array[0] = status;
asn1EncodableVector.Add(array);
Asn1EncodableVector asn1EncodableVector2 = this.revCerts;
Asn1Encodable[] array2 = new Asn1Encodable[1];
if (certId != 0)
{
}
array2[0] = certId;
asn1EncodableVector2.Add(array2);
return this;
}
// Token: 0x0600CB9C RID: 52124 RVA: 0x002EA5BC File Offset: 0x002E87BC
[Token(Token = "0x600CB9C")]
[Address(RVA = "0x2AE4610", Offset = "0x2AE3410", VA = "0x182AE4610", Slot = "6")]
public virtual RevRepContentBuilder AddCrl(CertificateList crl)
{
Asn1EncodableVector asn1EncodableVector = this.crls;
Asn1Encodable[] array = new Asn1Encodable[1];
if (crl != 0)
{
}
array[0] = crl;
asn1EncodableVector.Add(array);
return this;
}
// Token: 0x0600CB9D RID: 52125 RVA: 0x002EA5F4 File Offset: 0x002E87F4
[Token(Token = "0x600CB9D")]
[Address(RVA = "0x2AE4970", Offset = "0x2AE3770", VA = "0x182AE4970", Slot = "7")]
public virtual RevRepContent Build()
{
Asn1Encodable[] array = new Asn1Encodable[1];
DerSequence derSequence = new DerSequence(this.status);
if (derSequence != 0)
{
}
array[0] = derSequence;
Asn1EncodableVector asn1EncodableVector;
asn1EncodableVector.Add(array);
if (this.revCerts.Count != 0)
{
Asn1Encodable[] array2 = new Asn1Encodable[1];
DerSequence derSequence2 = new DerSequence(this.revCerts);
int num;
DerTaggedObject derTaggedObject = new DerTaggedObject(true, num, derSequence2);
num = 0;
if (derTaggedObject != 0)
{
}
array2[0] = derTaggedObject;
asn1EncodableVector.Add(array2);
}
if (this.crls.Count != 0)
{
Asn1Encodable[] array3 = new Asn1Encodable[1];
DerSequence derSequence3 = new DerSequence(this.crls);
DerTaggedObject derTaggedObject2 = new DerTaggedObject(16777216 != 0, 16777216, derSequence3);
if (derTaggedObject2 != 0)
{
}
array3[0] = derTaggedObject2;
asn1EncodableVector.Add(array3);
}
return RevRepContent.GetInstance(new DerSequence(asn1EncodableVector));
}
// Token: 0x0600CB9E RID: 52126 RVA: 0x002EA6CC File Offset: 0x002E88CC
[Token(Token = "0x600CB9E")]
[Address(RVA = "0x2AE4C80", Offset = "0x2AE3A80", VA = "0x182AE4C80")]
public RevRepContentBuilder()
{
Asn1EncodableVector asn1EncodableVector;
this.status = asn1EncodableVector;
Asn1EncodableVector asn1EncodableVector2;
this.revCerts = asn1EncodableVector2;
Asn1EncodableVector asn1EncodableVector3;
this.crls = asn1EncodableVector3;
base..ctor();
}
// Token: 0x040081B5 RID: 33205
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40081B5")]
private readonly Asn1EncodableVector status;
// Token: 0x040081B6 RID: 33206
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40081B6")]
private readonly Asn1EncodableVector revCerts;
// Token: 0x040081B7 RID: 33207
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x40081B7")]
private readonly Asn1EncodableVector crls;
}
}
@@ -0,0 +1,107 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
{
// Token: 0x02001F6E RID: 8046
[Token(Token = "0x2001F6E")]
public class RevReqContent : Asn1Encodable
{
// Token: 0x0600CB9F RID: 52127 RVA: 0x002EA6F4 File Offset: 0x002E88F4
[Token(Token = "0x600CB9F")]
[Address(RVA = "0x462000", Offset = "0x460E00", VA = "0x180462000")]
private RevReqContent(Asn1Sequence seq)
{
this.content = seq;
}
// Token: 0x0600CBA0 RID: 52128 RVA: 0x002EA710 File Offset: 0x002E8910
[Token(Token = "0x600CBA0")]
[Address(RVA = "0x2AE5640", Offset = "0x2AE4440", VA = "0x182AE5640")]
public static RevReqContent GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600CBA0)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.RevReqContent BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.RevReqContent::GetInstance(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_29:
stloc:string(var_6_2F, call:string(Platform::GetTypeName, ldloc:object(obj)))
stloc:ArgumentException(var_7_47, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_6_2F)), 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: 0x0600CBA1 RID: 52129 RVA: 0x002EA768 File Offset: 0x002E8968
[Token(Token = "0x600CBA1")]
[Address(RVA = "0x2AE5940", Offset = "0x2AE4740", VA = "0x182AE5940")]
public RevReqContent(params RevDetails[] revDetails)
{
DerSequence derSequence = new DerSequence(revDetails);
this.content = derSequence;
}
// Token: 0x0600CBA2 RID: 52130 RVA: 0x002EA78C File Offset: 0x002E898C
[Token(Token = "0x600CBA2")]
[Address(RVA = "0x2AE5830", Offset = "0x2AE4630", VA = "0x182AE5830", Slot = "6")]
public virtual RevDetails[] ToRevDetailsArray()
{
Asn1Sequence asn1Sequence = this.content;
Asn1Encodable asn1Encodable;
RevDetails[] array = new RevDetails[asn1Encodable];
int num = 0;
if (num != array.Length)
{
Asn1SequenceParser parser = this.content.Parser;
RevDetails revDetails;
if (revDetails != 0)
{
}
num++;
array[0] = revDetails;
}
return array;
}
// Token: 0x0600CBA3 RID: 52131 RVA: 0x002EA7D8 File Offset: 0x002E89D8
[Token(Token = "0x600CBA3")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
/*
An exception occurred when decompiling this method (0600CBA3)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.RevReqContent::ToAsn1Object()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:Asn1Sequence(var_0_06, ldfld:Asn1Sequence(RevReqContent::content, ldloc:RevReqContent(this)))
}
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: 0x040081B8 RID: 33208
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40081B8")]
private readonly Asn1Sequence content;
}
}