This commit is contained in:
niko
2026-04-08 23:40:05 +02:00
parent d6894bcbc7
commit 18dc73f922
7750 changed files with 1795369 additions and 0 deletions
@@ -0,0 +1,142 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess
{
// Token: 0x020018FA RID: 6394
[Token(Token = "0x20018FA")]
[StructLayout(3)]
public class ContentHints : Asn1Encodable
{
// Token: 0x0600AB91 RID: 43921 RVA: 0x00281AA0 File Offset: 0x0027FCA0
[Token(Token = "0x600AB91")]
[Address(RVA = "0x1DE60D0", Offset = "0x1DE4AD0", VA = "0x181DE60D0")]
public static ContentHints GetInstance(object o)
{
/*
An exception occurred when decompiling this method (0600AB91)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess.ContentHints BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess.ContentHints::GetInstance(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_26:
stloc:string(var_6_2C, call:string(Platform::GetTypeName, ldloc:object(o)))
stloc:ArgumentException(var_7_44, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in 'ContentHints' factory : "), ldloc:string(var_6_2C), ldstr:string("."))))
}
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: 0x0600AB92 RID: 43922 RVA: 0x00281AF4 File Offset: 0x0027FCF4
[Token(Token = "0x600AB92")]
[Address(RVA = "0x1DE64B0", Offset = "0x1DE4EB0", VA = "0x181DE64B0")]
private ContentHints(Asn1Sequence seq)
{
Asn1SequenceParser parser = seq.Parser;
int num = 0;
if (num < 0)
{
num += num;
num++;
}
if (parser != 0 && parser != 0)
{
DerUtf8String derUtf8String;
this.contentDescription = derUtf8String;
}
Asn1SequenceParser parser2 = seq.Parser;
DerObjectIdentifier derObjectIdentifier;
this.contentType = derObjectIdentifier;
}
// Token: 0x0600AB93 RID: 43923 RVA: 0x00281B44 File Offset: 0x0027FD44
[Token(Token = "0x600AB93")]
[Address(RVA = "0x1DE6640", Offset = "0x1DE5040", VA = "0x181DE6640")]
public ContentHints(DerObjectIdentifier contentType)
{
this.contentType = contentType;
this.contentDescription = (ulong)0L;
}
// Token: 0x0600AB94 RID: 43924 RVA: 0x00281B68 File Offset: 0x0027FD68
[Token(Token = "0x600AB94")]
[Address(RVA = "0x1DE6470", Offset = "0x1DE4E70", VA = "0x181DE6470")]
public ContentHints(DerObjectIdentifier contentType, DerUtf8String contentDescription)
{
this.contentType = contentType;
this.contentDescription = contentDescription;
}
// Token: 0x17001B2C RID: 6956
// (get) Token: 0x0600AB95 RID: 43925 RVA: 0x00281B8C File Offset: 0x0027FD8C
[Token(Token = "0x17001B2C")]
public DerObjectIdentifier ContentType
{
[Token(Token = "0x600AB95")]
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
get
{
return this.contentType;
}
}
// Token: 0x17001B2D RID: 6957
// (get) Token: 0x0600AB96 RID: 43926 RVA: 0x00281BA0 File Offset: 0x0027FDA0
[Token(Token = "0x17001B2D")]
public DerUtf8String ContentDescription
{
[Token(Token = "0x600AB96")]
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
get
{
return this.contentDescription;
}
}
// Token: 0x0600AB97 RID: 43927 RVA: 0x00281BB4 File Offset: 0x0027FDB4
[Token(Token = "0x600AB97")]
[Address(RVA = "0x1DE62D0", Offset = "0x1DE4CD0", VA = "0x181DE62D0", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1EncodableVector asn1EncodableVector;
if (this.contentDescription != (ulong)0L)
{
Asn1Encodable[] array = new Asn1Encodable[1];
DerUtf8String derUtf8String = this.contentDescription;
if (derUtf8String != 0)
{
}
array[0] = derUtf8String;
asn1EncodableVector.Add(array);
}
Asn1Encodable[] array2 = new Asn1Encodable[1];
DerObjectIdentifier derObjectIdentifier = this.contentType;
if (derObjectIdentifier != 0)
{
}
array2[0] = derObjectIdentifier;
asn1EncodableVector.Add(array2);
DerSequence derSequence = new DerSequence(asn1EncodableVector);
throw new NullReferenceException();
}
// Token: 0x0400711A RID: 28954
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x400711A")]
private readonly DerUtf8String contentDescription;
// Token: 0x0400711B RID: 28955
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x400711B")]
private readonly DerObjectIdentifier contentType;
}
}
@@ -0,0 +1,101 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess
{
// Token: 0x020018FB RID: 6395
[Token(Token = "0x20018FB")]
[StructLayout(3)]
public class ContentIdentifier : Asn1Encodable
{
// Token: 0x0600AB98 RID: 43928 RVA: 0x00281C20 File Offset: 0x0027FE20
[Token(Token = "0x600AB98")]
[Address(RVA = "0x1DE6670", Offset = "0x1DE5070", VA = "0x181DE6670")]
public static ContentIdentifier GetInstance(object o)
{
/*
An exception occurred when decompiling this method (0600AB98)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess.ContentIdentifier BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess.ContentIdentifier::GetInstance(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_30:
stloc:string(var_7_36, call:string(Platform::GetTypeName, ldloc:object(o)))
stloc:ArgumentException(var_8_4E, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in 'ContentIdentifier' factory : "), ldloc:string(var_7_36), ldstr:string("."))))
}
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: 0x0600AB99 RID: 43929 RVA: 0x00281C7C File Offset: 0x0027FE7C
[Token(Token = "0x600AB99")]
[Address(RVA = "0x579A20", Offset = "0x578420", VA = "0x180579A20")]
public ContentIdentifier(Asn1OctetString value)
{
this.value = value;
}
// Token: 0x0600AB9A RID: 43930 RVA: 0x00281C98 File Offset: 0x0027FE98
[Token(Token = "0x600AB9A")]
[Address(RVA = "0x1DE6870", Offset = "0x1DE5270", VA = "0x181DE6870")]
public ContentIdentifier(byte[] value)
{
DerOctetString derOctetString = new DerOctetString(value);
base..ctor();
this.value = derOctetString;
}
// Token: 0x17001B2E RID: 6958
// (get) Token: 0x0600AB9B RID: 43931 RVA: 0x00281CBC File Offset: 0x0027FEBC
[Token(Token = "0x17001B2E")]
public Asn1OctetString Value
{
[Token(Token = "0x600AB9B")]
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
get
{
return this.value;
}
}
// Token: 0x0600AB9C RID: 43932 RVA: 0x00281CD0 File Offset: 0x0027FED0
[Token(Token = "0x600AB9C")]
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
/*
An exception occurred when decompiling this method (0600AB9C)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess.ContentIdentifier::ToAsn1Object()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:Asn1OctetString(var_0_06, ldfld:Asn1OctetString(ContentIdentifier::value, ldloc:ContentIdentifier(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: 0x0400711C RID: 28956
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x400711C")]
private Asn1OctetString value;
}
}
@@ -0,0 +1,135 @@
using System;
using System.IO;
using System.Runtime.InteropServices;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess
{
// Token: 0x020018FC RID: 6396
[Token(Token = "0x20018FC")]
[StructLayout(3)]
public class EssCertID : Asn1Encodable
{
// Token: 0x0600AB9D RID: 43933 RVA: 0x00281CE4 File Offset: 0x0027FEE4
[Token(Token = "0x600AB9D")]
[Address(RVA = "0x1DED480", Offset = "0x1DEBE80", VA = "0x181DED480")]
public static EssCertID GetInstance(object o)
{
/*
An exception occurred when decompiling this method (0600AB9D)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess.EssCertID BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess.EssCertID::GetInstance(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_39:
stloc:string(var_9_3F, call:string(Platform::GetTypeName, ldloc:object(o)))
stloc:ArgumentException(var_10_57, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in 'EssCertID' factory : "), ldloc:string(var_9_3F), ldstr:string("."))))
}
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: 0x0600AB9E RID: 43934 RVA: 0x00281D4C File Offset: 0x0027FF4C
[Token(Token = "0x600AB9E")]
[Address(RVA = "0x1DED9F0", Offset = "0x1DEC3F0", VA = "0x181DED9F0")]
public EssCertID(Asn1Sequence seq)
{
Asn1SequenceParser parser = seq.Parser;
Asn1OctetString asn1OctetString;
this.certHash = asn1OctetString;
Asn1Encodable asn1Encodable;
if (asn1Encodable > (ulong)1L)
{
Asn1SequenceParser parser2 = seq.Parser;
IssuerSerial issuerSerial;
this.issuerSerial = issuerSerial;
}
}
// Token: 0x0600AB9F RID: 43935 RVA: 0x00281D8C File Offset: 0x0027FF8C
[Token(Token = "0x600AB9F")]
[Address(RVA = "0x1DED980", Offset = "0x1DEC380", VA = "0x181DED980")]
public EssCertID(byte[] hash)
{
DerOctetString derOctetString = new DerOctetString(hash);
this.certHash = derOctetString;
}
// Token: 0x0600ABA0 RID: 43936 RVA: 0x00281DB0 File Offset: 0x0027FFB0
[Token(Token = "0x600ABA0")]
[Address(RVA = "0x1DED900", Offset = "0x1DEC300", VA = "0x181DED900")]
public EssCertID(byte[] hash, IssuerSerial issuerSerial)
{
DerOctetString derOctetString = new DerOctetString(hash);
this.certHash = derOctetString;
this.issuerSerial = issuerSerial;
}
// Token: 0x0600ABA1 RID: 43937 RVA: 0x00281DD8 File Offset: 0x0027FFD8
[Token(Token = "0x600ABA1")]
[Address(RVA = "0x78FE10", Offset = "0x78E810", VA = "0x18078FE10")]
public byte[] GetCertHash()
{
Stream octetStream = ((Asn1OctetStringParser)this.certHash).GetOctetStream();
throw new NullReferenceException();
}
// Token: 0x17001B2F RID: 6959
// (get) Token: 0x0600ABA2 RID: 43938 RVA: 0x00281DF8 File Offset: 0x0027FFF8
[Token(Token = "0x17001B2F")]
public IssuerSerial IssuerSerial
{
[Token(Token = "0x600ABA2")]
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
get
{
return this.issuerSerial;
}
}
// Token: 0x0600ABA3 RID: 43939 RVA: 0x00281E0C File Offset: 0x0028000C
[Token(Token = "0x600ABA3")]
[Address(RVA = "0x1DED790", Offset = "0x1DEC190", VA = "0x181DED790", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1Encodable[] array = new Asn1Encodable[1];
Asn1OctetString asn1OctetString = this.certHash;
if (asn1OctetString != 0)
{
}
array[0] = asn1OctetString;
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
if (this.issuerSerial != (ulong)0L)
{
Asn1Encodable[] array2 = new Asn1Encodable[1];
IssuerSerial issuerSerial = this.issuerSerial;
if (issuerSerial != 0)
{
}
array2[0] = issuerSerial;
asn1EncodableVector.Add(array2);
}
DerSequence derSequence = new DerSequence(asn1EncodableVector);
throw new NullReferenceException();
}
// Token: 0x0400711D RID: 28957
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x400711D")]
private Asn1OctetString certHash;
// Token: 0x0400711E RID: 28958
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x400711E")]
private IssuerSerial issuerSerial;
}
}
@@ -0,0 +1,186 @@
using System;
using System.IO;
using System.Runtime.InteropServices;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Nist;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess
{
// Token: 0x020018FD RID: 6397
[Token(Token = "0x20018FD")]
[StructLayout(3)]
public class EssCertIDv2 : Asn1Encodable
{
// Token: 0x0600ABA4 RID: 43940 RVA: 0x00281E78 File Offset: 0x00280078
[Token(Token = "0x600ABA4")]
[Address(RVA = "0x1DEDBA0", Offset = "0x1DEC5A0", VA = "0x181DEDBA0")]
public static EssCertIDv2 GetInstance(object obj)
{
while (obj != 0)
{
if (obj == 0)
{
return new EssCertIDv2(Asn1Sequence.GetInstance(obj));
}
}
}
// Token: 0x0600ABA5 RID: 43941 RVA: 0x00281E9C File Offset: 0x0028009C
[Token(Token = "0x600ABA5")]
[Address(RVA = "0x1DEE170", Offset = "0x1DECB70", VA = "0x181DEE170")]
private EssCertIDv2(Asn1Sequence seq)
{
Asn1SequenceParser parser = seq.Parser;
if (parser == 0 || parser != 0)
{
}
Asn1SequenceParser parser2 = seq.Parser;
AlgorithmIdentifier algorithmIdentifier;
this.hashAlgorithm = algorithmIdentifier;
Asn1SequenceParser parser3 = seq.Parser;
Asn1OctetString asn1OctetString;
Stream octetStream = asn1OctetString.GetOctetStream();
this.certHash = octetStream;
Asn1Encodable asn1Encodable;
if (asn1Encodable > (uint)1)
{
Asn1SequenceParser parser4 = seq.Parser;
Asn1Sequence asn1Sequence;
IssuerSerial instance = IssuerSerial.GetInstance(asn1Sequence);
this.issuerSerial = instance;
}
}
// Token: 0x0600ABA6 RID: 43942 RVA: 0x00281F14 File Offset: 0x00280114
[Token(Token = "0x600ABA6")]
[Address(RVA = "0x1DEE0E0", Offset = "0x1DECAE0", VA = "0x181DEE0E0")]
public EssCertIDv2(byte[] certHash)
{
AlgorithmIdentifier defaultAlgID = EssCertIDv2.DefaultAlgID;
this.hashAlgorithm = defaultAlgID;
this.certHash = certHash;
this.issuerSerial = (ulong)0L;
}
// Token: 0x0600ABA7 RID: 43943 RVA: 0x00281F44 File Offset: 0x00280144
[Token(Token = "0x600ABA7")]
[Address(RVA = "0x1DEE3F0", Offset = "0x1DECDF0", VA = "0x181DEE3F0")]
public EssCertIDv2(AlgorithmIdentifier algId, byte[] certHash)
{
}
// Token: 0x0600ABA8 RID: 43944 RVA: 0x00281F54 File Offset: 0x00280154
[Token(Token = "0x600ABA8")]
[Address(RVA = "0x1DEE050", Offset = "0x1DECA50", VA = "0x181DEE050")]
public EssCertIDv2(byte[] certHash, IssuerSerial issuerSerial)
{
AlgorithmIdentifier defaultAlgID = EssCertIDv2.DefaultAlgID;
this.hashAlgorithm = defaultAlgID;
this.certHash = certHash;
this.issuerSerial = issuerSerial;
}
// Token: 0x0600ABA9 RID: 43945 RVA: 0x00281F84 File Offset: 0x00280184
[Token(Token = "0x600ABA9")]
[Address(RVA = "0x1DEDFB0", Offset = "0x1DEC9B0", VA = "0x181DEDFB0")]
public EssCertIDv2(AlgorithmIdentifier algId, byte[] certHash, IssuerSerial issuerSerial)
{
if (algId == 0)
{
}
this.hashAlgorithm = algId;
this.certHash = certHash;
this.issuerSerial = issuerSerial;
}
// Token: 0x17001B30 RID: 6960
// (get) Token: 0x0600ABAA RID: 43946 RVA: 0x00281FB0 File Offset: 0x002801B0
[Token(Token = "0x17001B30")]
public AlgorithmIdentifier HashAlgorithm
{
[Token(Token = "0x600ABAA")]
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
get
{
return this.hashAlgorithm;
}
}
// Token: 0x0600ABAB RID: 43947 RVA: 0x00281FC4 File Offset: 0x002801C4
[Token(Token = "0x600ABAB")]
[Address(RVA = "0x1DEDB40", Offset = "0x1DEC540", VA = "0x181DEDB40")]
public byte[] GetCertHash()
{
return Arrays.Clone(this.certHash);
}
// Token: 0x17001B31 RID: 6961
// (get) Token: 0x0600ABAC RID: 43948 RVA: 0x00281FDC File Offset: 0x002801DC
[Token(Token = "0x17001B31")]
public IssuerSerial IssuerSerial
{
[Token(Token = "0x600ABAC")]
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
get
{
return this.issuerSerial;
}
}
// Token: 0x0600ABAD RID: 43949 RVA: 0x00281FF0 File Offset: 0x002801F0
[Token(Token = "0x600ABAD")]
[Address(RVA = "0x1DEDC50", Offset = "0x1DEC650", VA = "0x181DEDC50", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
AlgorithmIdentifier algorithmIdentifier = this.hashAlgorithm;
Asn1Encodable[] array = new Asn1Encodable[1];
AlgorithmIdentifier algorithmIdentifier2 = this.hashAlgorithm;
if (algorithmIdentifier2 != 0)
{
}
array[0] = algorithmIdentifier2;
Asn1EncodableVector asn1EncodableVector;
asn1EncodableVector.Add(array);
Asn1Encodable[] array2 = new Asn1Encodable[1];
Asn1Object asn1Object = new DerOctetString(this.certHash).ToAsn1Object();
if (asn1Object != 0)
{
}
array2[0] = asn1Object;
asn1EncodableVector.Add(array2);
if (this.issuerSerial != (ulong)0L)
{
Asn1Encodable[] array3 = new Asn1Encodable[1];
IssuerSerial issuerSerial = this.issuerSerial;
if (issuerSerial != 0)
{
}
array3[0] = issuerSerial;
asn1EncodableVector.Add(array3);
}
DerSequence derSequence = new DerSequence(asn1EncodableVector);
throw new NullReferenceException();
}
// Token: 0x0400711F RID: 28959
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x400711F")]
private readonly AlgorithmIdentifier hashAlgorithm;
// Token: 0x04007120 RID: 28960
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4007120")]
private readonly byte[] certHash;
// Token: 0x04007121 RID: 28961
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x4007121")]
private readonly IssuerSerial issuerSerial;
// Token: 0x04007122 RID: 28962
[Token(Token = "0x4007122")]
private static readonly AlgorithmIdentifier DefaultAlgID = new AlgorithmIdentifier(NistObjectIdentifiers.IdSha256);
}
}
@@ -0,0 +1,159 @@
using System;
using System.Runtime.InteropServices;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Oiw;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess
{
// Token: 0x020018FE RID: 6398
[Token(Token = "0x20018FE")]
[Obsolete]
[StructLayout(3)]
public class OtherCertID : Asn1Encodable
{
// Token: 0x0600ABAF RID: 43951 RVA: 0x002820B4 File Offset: 0x002802B4
[Token(Token = "0x600ABAF")]
[Address(RVA = "0x1DF3830", Offset = "0x1DF2230", VA = "0x181DF3830")]
public static OtherCertID GetInstance(object o)
{
/*
An exception occurred when decompiling this method (0600ABAF)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess.OtherCertID BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess.OtherCertID::GetInstance(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_26:
stloc:string(var_6_2C, call:string(Platform::GetTypeName, ldloc:object(o)))
stloc:ArgumentException(var_7_44, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in 'OtherCertID' factory : "), ldloc:string(var_6_2C), ldstr:string("."))))
}
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: 0x0600ABB0 RID: 43952 RVA: 0x00282108 File Offset: 0x00280308
[Token(Token = "0x600ABB0")]
[Address(RVA = "0x1DF40B0", Offset = "0x1DF2AB0", VA = "0x181DF40B0")]
public OtherCertID(Asn1Sequence seq)
{
Asn1SequenceParser parser = seq.Parser;
if (parser != 0 && parser != 0)
{
Asn1SequenceParser parser2 = seq.Parser;
}
Asn1SequenceParser parser3 = seq.Parser;
DigestInfo digestInfo;
this.otherCertHash = digestInfo;
Asn1Encodable asn1Encodable;
if (asn1Encodable > (ulong)1L)
{
Asn1SequenceParser parser4 = seq.Parser;
Asn1Sequence asn1Sequence;
IssuerSerial instance = IssuerSerial.GetInstance(asn1Sequence);
this.issuerSerial = instance;
}
}
// Token: 0x0600ABB1 RID: 43953 RVA: 0x00282170 File Offset: 0x00280370
[Token(Token = "0x600ABB1")]
[Address(RVA = "0x1DF4030", Offset = "0x1DF2A30", VA = "0x181DF4030")]
public OtherCertID(AlgorithmIdentifier algId, byte[] digest)
{
DigestInfo digestInfo = new DigestInfo(algId, digest);
this.otherCertHash = digestInfo;
}
// Token: 0x0600ABB2 RID: 43954 RVA: 0x00282194 File Offset: 0x00280394
[Token(Token = "0x600ABB2")]
[Address(RVA = "0x1DF3D40", Offset = "0x1DF2740", VA = "0x181DF3D40")]
public OtherCertID(AlgorithmIdentifier algId, byte[] digest, IssuerSerial issuerSerial)
{
DigestInfo digestInfo = new DigestInfo(algId, digest);
this.otherCertHash = digestInfo;
this.issuerSerial = issuerSerial;
}
// Token: 0x17001B32 RID: 6962
// (get) Token: 0x0600ABB3 RID: 43955 RVA: 0x002821C0 File Offset: 0x002803C0
[Token(Token = "0x17001B32")]
public AlgorithmIdentifier AlgorithmHash
{
[Token(Token = "0x600ABB3")]
[Address(RVA = "0x1DF4340", Offset = "0x1DF2D40", VA = "0x181DF4340")]
get
{
Asn1Object asn1Object = this.otherCertHash.ToAsn1Object();
if (asn1Object != 0 && asn1Object != 0)
{
return new AlgorithmIdentifier(OiwObjectIdentifiers.IdSha1);
}
return DigestInfo.GetInstance(this.otherCertHash).algID;
}
}
// Token: 0x0600ABB4 RID: 43956 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x600ABB4")]
[Address(RVA = "0x1DF34B0", Offset = "0x1DF1EB0", VA = "0x181DF34B0")]
public byte[] GetCertHash()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x17001B33 RID: 6963
// (get) Token: 0x0600ABB5 RID: 43957 RVA: 0x00282204 File Offset: 0x00280404
[Token(Token = "0x17001B33")]
public IssuerSerial IssuerSerial
{
[Token(Token = "0x600ABB5")]
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
get
{
return this.issuerSerial;
}
}
// Token: 0x0600ABB6 RID: 43958 RVA: 0x00282218 File Offset: 0x00280418
[Token(Token = "0x600ABB6")]
[Address(RVA = "0x1DF3BD0", Offset = "0x1DF25D0", VA = "0x181DF3BD0", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1Encodable[] array = new Asn1Encodable[1];
Asn1Encodable asn1Encodable = this.otherCertHash;
if (asn1Encodable != 0)
{
}
array[0] = asn1Encodable;
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
if (this.issuerSerial != (ulong)0L)
{
Asn1Encodable[] array2 = new Asn1Encodable[1];
IssuerSerial issuerSerial = this.issuerSerial;
if (issuerSerial != 0)
{
}
array2[0] = issuerSerial;
asn1EncodableVector.Add(array2);
}
DerSequence derSequence = new DerSequence(asn1EncodableVector);
throw new NullReferenceException();
}
// Token: 0x04007123 RID: 28963
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4007123")]
private Asn1Encodable otherCertHash;
// Token: 0x04007124 RID: 28964
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4007124")]
private IssuerSerial issuerSerial;
}
}
@@ -0,0 +1,156 @@
using System;
using System.Runtime.InteropServices;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess
{
// Token: 0x020018FF RID: 6399
[Token(Token = "0x20018FF")]
[Obsolete]
[StructLayout(3)]
public class OtherSigningCertificate : Asn1Encodable
{
// Token: 0x0600ABB7 RID: 43959 RVA: 0x00282284 File Offset: 0x00280484
[Token(Token = "0x600ABB7")]
[Address(RVA = "0x1DF5FF0", Offset = "0x1DF49F0", VA = "0x181DF5FF0")]
public static OtherSigningCertificate GetInstance(object o)
{
/*
An exception occurred when decompiling this method (0600ABB7)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess.OtherSigningCertificate BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess.OtherSigningCertificate::GetInstance(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_39:
stloc:string(var_9_3F, call:string(Platform::GetTypeName, ldloc:object(o)))
stloc:ArgumentException(var_10_57, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in 'OtherSigningCertificate' factory : "), ldloc:string(var_9_3F), ldstr:string("."))))
}
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: 0x0600ABB8 RID: 43960 RVA: 0x002822EC File Offset: 0x002804EC
[Token(Token = "0x600ABB8")]
[Address(RVA = "0x1DF69D0", Offset = "0x1DF53D0", VA = "0x181DF69D0")]
public OtherSigningCertificate(Asn1Sequence seq)
{
Asn1SequenceParser parser = seq.Parser;
Asn1Sequence asn1Sequence;
this.certs = asn1Sequence;
Asn1Encodable asn1Encodable;
if (asn1Encodable > (ulong)1L)
{
Asn1SequenceParser parser2 = seq.Parser;
Asn1Sequence asn1Sequence2;
this.policies = asn1Sequence2;
}
}
// Token: 0x0600ABB9 RID: 43961 RVA: 0x0028232C File Offset: 0x0028052C
[Token(Token = "0x600ABB9")]
[Address(RVA = "0x1DF6880", Offset = "0x1DF5280", VA = "0x181DF6880")]
public OtherSigningCertificate(OtherCertID otherCertID)
{
DerSequence derSequence = new DerSequence(otherCertID);
this.certs = derSequence;
}
// Token: 0x0600ABBA RID: 43962 RVA: 0x00282350 File Offset: 0x00280550
[Token(Token = "0x600ABBA")]
[Address(RVA = "0x1DF5B70", Offset = "0x1DF4570", VA = "0x181DF5B70")]
public OtherCertID[] GetCerts()
{
Asn1Sequence asn1Sequence = this.certs;
Asn1Encodable asn1Encodable;
OtherCertID[] array = new OtherCertID[asn1Encodable];
int num = 0;
Asn1Sequence asn1Sequence2 = this.certs;
Asn1Encodable asn1Encodable2;
if (num != asn1Encodable2)
{
Asn1SequenceParser parser = this.certs.Parser;
OtherCertID otherCertID;
if (otherCertID != 0)
{
}
num++;
array[0] = otherCertID;
Asn1Sequence asn1Sequence3 = this.certs;
}
return array;
}
// Token: 0x0600ABBB RID: 43963 RVA: 0x002823A8 File Offset: 0x002805A8
[Token(Token = "0x600ABBB")]
[Address(RVA = "0x1DF6300", Offset = "0x1DF4D00", VA = "0x181DF6300")]
public PolicyInformation[] GetPolicies()
{
if (this.policies != 0)
{
Asn1Encodable asn1Encodable;
PolicyInformation[] array = new PolicyInformation[asn1Encodable];
int num = 0;
Asn1Sequence asn1Sequence = this.policies;
Asn1Encodable asn1Encodable2;
if (num != asn1Encodable2)
{
Asn1SequenceParser parser = this.policies.Parser;
PolicyInformation policyInformation;
if (policyInformation != 0)
{
}
num++;
array[0] = policyInformation;
Asn1Sequence asn1Sequence2 = this.policies;
}
return array;
}
throw new NullReferenceException();
}
// Token: 0x0600ABBC RID: 43964 RVA: 0x00282404 File Offset: 0x00280604
[Token(Token = "0x600ABBC")]
[Address(RVA = "0x1DF65A0", Offset = "0x1DF4FA0", VA = "0x181DF65A0", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1Encodable[] array = new Asn1Encodable[1];
Asn1Sequence asn1Sequence = this.certs;
if (asn1Sequence != 0)
{
}
array[0] = asn1Sequence;
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
if (this.policies != (ulong)0L)
{
Asn1Encodable[] array2 = new Asn1Encodable[1];
Asn1Sequence asn1Sequence2 = this.policies;
if (asn1Sequence2 != 0)
{
}
array2[0] = asn1Sequence2;
asn1EncodableVector.Add(array2);
}
DerSequence derSequence = new DerSequence(asn1EncodableVector);
throw new NullReferenceException();
}
// Token: 0x04007125 RID: 28965
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4007125")]
private Asn1Sequence certs;
// Token: 0x04007126 RID: 28966
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4007126")]
private Asn1Sequence policies;
}
}
@@ -0,0 +1,155 @@
using System;
using System.Runtime.InteropServices;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess
{
// Token: 0x02001900 RID: 6400
[Token(Token = "0x2001900")]
[StructLayout(3)]
public class SigningCertificate : Asn1Encodable
{
// Token: 0x0600ABBD RID: 43965 RVA: 0x00282470 File Offset: 0x00280670
[Token(Token = "0x600ABBD")]
[Address(RVA = "0x1DFB360", Offset = "0x1DF9D60", VA = "0x181DFB360")]
public static SigningCertificate GetInstance(object o)
{
/*
An exception occurred when decompiling this method (0600ABBD)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess.SigningCertificate BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess.SigningCertificate::GetInstance(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_39:
stloc:string(var_9_3F, call:string(Platform::GetTypeName, ldloc:object(o)))
stloc:ArgumentException(var_10_57, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in 'SigningCertificate' factory : "), ldloc:string(var_9_3F), ldstr:string("."))))
}
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: 0x0600ABBE RID: 43966 RVA: 0x002824D8 File Offset: 0x002806D8
[Token(Token = "0x600ABBE")]
[Address(RVA = "0x1DFB920", Offset = "0x1DFA320", VA = "0x181DFB920")]
public SigningCertificate(Asn1Sequence seq)
{
Asn1SequenceParser parser = seq.Parser;
Asn1Sequence asn1Sequence;
this.certs = asn1Sequence;
Asn1Encodable asn1Encodable;
if (asn1Encodable > (ulong)1L)
{
Asn1SequenceParser parser2 = seq.Parser;
Asn1Sequence asn1Sequence2;
this.policies = asn1Sequence2;
}
}
// Token: 0x0600ABBF RID: 43967 RVA: 0x00282518 File Offset: 0x00280718
[Token(Token = "0x600ABBF")]
[Address(RVA = "0x1DFBA70", Offset = "0x1DFA470", VA = "0x181DFBA70")]
public SigningCertificate(EssCertID essCertID)
{
DerSequence derSequence = new DerSequence(essCertID);
this.certs = derSequence;
}
// Token: 0x0600ABC0 RID: 43968 RVA: 0x0028253C File Offset: 0x0028073C
[Token(Token = "0x600ABC0")]
[Address(RVA = "0x1DFB230", Offset = "0x1DF9C30", VA = "0x181DFB230")]
public EssCertID[] GetCerts()
{
Asn1Sequence asn1Sequence = this.certs;
Asn1Encodable asn1Encodable;
EssCertID[] array = new EssCertID[asn1Encodable];
int num = 0;
Asn1Sequence asn1Sequence2 = this.certs;
Asn1Encodable asn1Encodable2;
if (num != asn1Encodable2)
{
Asn1SequenceParser parser = this.certs.Parser;
EssCertID essCertID;
if (essCertID != 0)
{
}
num++;
array[0] = essCertID;
Asn1Sequence asn1Sequence3 = this.certs;
}
return array;
}
// Token: 0x0600ABC1 RID: 43969 RVA: 0x00282594 File Offset: 0x00280794
[Token(Token = "0x600ABC1")]
[Address(RVA = "0x1DFB670", Offset = "0x1DFA070", VA = "0x181DFB670")]
public PolicyInformation[] GetPolicies()
{
if (this.policies != 0)
{
Asn1Encodable asn1Encodable;
PolicyInformation[] array = new PolicyInformation[asn1Encodable];
int num = 0;
Asn1Sequence asn1Sequence = this.policies;
Asn1Encodable asn1Encodable2;
if (num != asn1Encodable2)
{
Asn1SequenceParser parser = this.policies.Parser;
PolicyInformation policyInformation;
if (policyInformation != 0)
{
}
num++;
array[0] = policyInformation;
Asn1Sequence asn1Sequence2 = this.policies;
}
return array;
}
throw new NullReferenceException();
}
// Token: 0x0600ABC2 RID: 43970 RVA: 0x002825F0 File Offset: 0x002807F0
[Token(Token = "0x600ABC2")]
[Address(RVA = "0x1DFB7B0", Offset = "0x1DFA1B0", VA = "0x181DFB7B0", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1Encodable[] array = new Asn1Encodable[1];
Asn1Sequence asn1Sequence = this.certs;
if (asn1Sequence != 0)
{
}
array[0] = asn1Sequence;
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
if (this.policies != (ulong)0L)
{
Asn1Encodable[] array2 = new Asn1Encodable[1];
Asn1Sequence asn1Sequence2 = this.policies;
if (asn1Sequence2 != 0)
{
}
array2[0] = asn1Sequence2;
asn1EncodableVector.Add(array2);
}
DerSequence derSequence = new DerSequence(asn1EncodableVector);
throw new NullReferenceException();
}
// Token: 0x04007127 RID: 28967
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4007127")]
private Asn1Sequence certs;
// Token: 0x04007128 RID: 28968
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4007128")]
private Asn1Sequence policies;
}
}
@@ -0,0 +1,172 @@
using System;
using System.Runtime.InteropServices;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess
{
// Token: 0x02001901 RID: 6401
[Token(Token = "0x2001901")]
[StructLayout(3)]
public class SigningCertificateV2 : Asn1Encodable
{
// Token: 0x0600ABC3 RID: 43971 RVA: 0x0028265C File Offset: 0x0028085C
[Token(Token = "0x600ABC3")]
[Address(RVA = "0x1DFAA60", Offset = "0x1DF9460", VA = "0x181DFAA60")]
public static SigningCertificateV2 GetInstance(object o)
{
/*
An exception occurred when decompiling this method (0600ABC3)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess.SigningCertificateV2 BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess.SigningCertificateV2::GetInstance(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_26:
stloc:string(var_6_2C, call:string(Platform::GetTypeName, ldloc:object(o)))
stloc:ArgumentException(var_7_44, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in 'SigningCertificateV2' factory : "), ldloc:string(var_6_2C), ldstr:string("."))))
}
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: 0x0600ABC4 RID: 43972 RVA: 0x002826B0 File Offset: 0x002808B0
[Token(Token = "0x600ABC4")]
[Address(RVA = "0x1DFB020", Offset = "0x1DF9A20", VA = "0x181DFB020")]
private SigningCertificateV2(Asn1Sequence seq)
{
Asn1SequenceParser parser = seq.Parser;
Asn1Sequence asn1Sequence;
this.certs = asn1Sequence;
Asn1Encodable asn1Encodable;
if (asn1Encodable > (ulong)1L)
{
Asn1SequenceParser parser2 = seq.Parser;
Asn1Sequence asn1Sequence2;
this.policies = asn1Sequence2;
}
}
// Token: 0x0600ABC5 RID: 43973 RVA: 0x002826F0 File Offset: 0x002808F0
[Token(Token = "0x600ABC5")]
[Address(RVA = "0x1DFAFB0", Offset = "0x1DF99B0", VA = "0x181DFAFB0")]
public SigningCertificateV2(EssCertIDv2 cert)
{
DerSequence derSequence = new DerSequence(cert);
this.certs = derSequence;
}
// Token: 0x0600ABC6 RID: 43974 RVA: 0x00282714 File Offset: 0x00280914
[Token(Token = "0x600ABC6")]
[Address(RVA = "0x1DFB1C0", Offset = "0x1DF9BC0", VA = "0x181DFB1C0")]
public SigningCertificateV2(EssCertIDv2[] certs)
{
DerSequence derSequence = new DerSequence(certs);
this.certs = derSequence;
}
// Token: 0x0600ABC7 RID: 43975 RVA: 0x00282738 File Offset: 0x00280938
[Token(Token = "0x600ABC7")]
[Address(RVA = "0x1DFAF10", Offset = "0x1DF9910", VA = "0x181DFAF10")]
public SigningCertificateV2(EssCertIDv2[] certs, PolicyInformation[] policies)
{
DerSequence derSequence = new DerSequence(certs);
this.certs = derSequence;
if (policies != 0)
{
DerSequence derSequence2 = new DerSequence(policies);
this.policies = derSequence2;
}
}
// Token: 0x0600ABC8 RID: 43976 RVA: 0x0028276C File Offset: 0x0028096C
[Token(Token = "0x600ABC8")]
[Address(RVA = "0x1DFA920", Offset = "0x1DF9320", VA = "0x181DFA920")]
public EssCertIDv2[] GetCerts()
{
Asn1Sequence asn1Sequence = this.certs;
Asn1Encodable asn1Encodable;
EssCertIDv2[] array = new EssCertIDv2[asn1Encodable];
int num = 0;
Asn1Sequence asn1Sequence2 = this.certs;
Asn1Encodable asn1Encodable2;
if (num != asn1Encodable2)
{
Asn1SequenceParser parser = this.certs.Parser;
throw new ArrayTypeMismatchException();
}
return array;
}
// Token: 0x0600ABC9 RID: 43977 RVA: 0x002827C8 File Offset: 0x002809C8
[Token(Token = "0x600ABC9")]
[Address(RVA = "0x1DFAC60", Offset = "0x1DF9660", VA = "0x181DFAC60")]
public PolicyInformation[] GetPolicies()
{
if (this.policies != 0)
{
Asn1Encodable asn1Encodable;
PolicyInformation[] array = new PolicyInformation[asn1Encodable];
int num = 0;
Asn1Sequence asn1Sequence = this.policies;
Asn1Encodable asn1Encodable2;
if (num != asn1Encodable2)
{
Asn1SequenceParser parser = this.policies.Parser;
PolicyInformation policyInformation;
if (policyInformation != 0)
{
}
num++;
array[0] = policyInformation;
Asn1Sequence asn1Sequence2 = this.policies;
}
return array;
}
throw new NullReferenceException();
}
// Token: 0x0600ABCA RID: 43978 RVA: 0x00282824 File Offset: 0x00280A24
[Token(Token = "0x600ABCA")]
[Address(RVA = "0x1DFADA0", Offset = "0x1DF97A0", VA = "0x181DFADA0", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1Encodable[] array = new Asn1Encodable[1];
Asn1Sequence asn1Sequence = this.certs;
if (asn1Sequence != 0)
{
}
array[0] = asn1Sequence;
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
if (this.policies != (ulong)0L)
{
Asn1Encodable[] array2 = new Asn1Encodable[1];
Asn1Sequence asn1Sequence2 = this.policies;
if (asn1Sequence2 != 0)
{
}
array2[0] = asn1Sequence2;
asn1EncodableVector.Add(array2);
}
DerSequence derSequence = new DerSequence(asn1EncodableVector);
throw new NullReferenceException();
}
// Token: 0x04007129 RID: 28969
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4007129")]
private readonly Asn1Sequence certs;
// Token: 0x0400712A RID: 28970
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x400712A")]
private readonly Asn1Sequence policies;
}
}