Files
27Aug2021-Cpp2IL-Dump/Assembly-CSharp/BestHTTP/SecureProtocol/Org/BouncyCastle/Asn1/X509/X509CertificateStructure.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

289 lines
16 KiB
C#

using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
{
// Token: 0x02001F0C RID: 7948
[Token(Token = "0x2001F0C")]
public class X509CertificateStructure : Asn1Encodable
{
// Token: 0x0600C778 RID: 51064 RVA: 0x002D19E8 File Offset: 0x002CFBE8
[Token(Token = "0x600C778")]
[Address(RVA = "0x2E8DD30", Offset = "0x2E8CD30", VA = "0x182E8DD30")]
public static X509CertificateStructure GetInstance(Asn1TaggedObject obj, bool explicitly)
{
return X509CertificateStructure.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
}
// Token: 0x0600C779 RID: 51065 RVA: 0x002D1A04 File Offset: 0x002CFC04
[Token(Token = "0x600C779")]
[Address(RVA = "0x2E8DD50", Offset = "0x2E8CD50", VA = "0x182E8DD50")]
public static X509CertificateStructure GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600C779)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.X509CertificateStructure BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.X509CertificateStructure::GetInstance(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_54:
stloc:ArgumentException(var_12_63, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("sequence wrong size for a certificate"), ldstr:string("seq")))
}
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.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: 0x0600C77A RID: 51066 RVA: 0x002D1A78 File Offset: 0x002CFC78
[Token(Token = "0x600C77A")]
[Address(RVA = "0x2E8E0D0", Offset = "0x2E8D0D0", VA = "0x182E8E0D0")]
public X509CertificateStructure(TbsCertificateStructure tbsCert, AlgorithmIdentifier sigAlgID, DerBitString sig)
{
/*
An exception occurred when decompiling this method (0600C77A)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.X509CertificateStructure::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.TbsCertificateStructure,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.AlgorithmIdentifier,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerBitString)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_33:
stloc:ArgumentNullException(var_1_3D, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("sigAlgID")))
}
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: 0x0600C77B RID: 51067 RVA: 0x002D1AC4 File Offset: 0x002CFCC4
[Token(Token = "0x600C77B")]
[Address(RVA = "0x2E8E1E0", Offset = "0x2E8D1E0", VA = "0x182E8E1E0")]
private X509CertificateStructure(Asn1Sequence seq)
{
/*
An exception occurred when decompiling this method (0600C77B)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.X509CertificateStructure::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_40:
stloc:ArgumentException(var_7_4F, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("sequence wrong size for a certificate"), ldstr:string("seq")))
}
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: 0x17001EED RID: 7917
// (get) Token: 0x0600C77C RID: 51068 RVA: 0x002D1B24 File Offset: 0x002CFD24
[Token(Token = "0x17001EED")]
public TbsCertificateStructure TbsCertificate
{
[Token(Token = "0x600C77C")]
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
get
{
return this.tbsCert;
}
}
// Token: 0x17001EEE RID: 7918
// (get) Token: 0x0600C77D RID: 51069 RVA: 0x002D1B38 File Offset: 0x002CFD38
[Token(Token = "0x17001EEE")]
public int Version
{
[Token(Token = "0x600C77D")]
[Address(RVA = "0xD05C70", Offset = "0xD04C70", VA = "0x180D05C70")]
get
{
int intValue = this.tbsCert.version.Value.IntValue;
return intValue + 1;
}
}
// Token: 0x17001EEF RID: 7919
// (get) Token: 0x0600C77E RID: 51070 RVA: 0x002D1B68 File Offset: 0x002CFD68
[Token(Token = "0x17001EEF")]
public DerInteger SerialNumber
{
[Token(Token = "0x600C77E")]
[Address(RVA = "0xC03A00", Offset = "0xC02A00", VA = "0x180C03A00")]
get
{
return this.tbsCert.serialNumber;
}
}
// Token: 0x17001EF0 RID: 7920
// (get) Token: 0x0600C77F RID: 51071 RVA: 0x002D1B88 File Offset: 0x002CFD88
[Token(Token = "0x17001EF0")]
public X509Name Issuer
{
[Token(Token = "0x600C77F")]
[Address(RVA = "0x94AD80", Offset = "0x949D80", VA = "0x18094AD80")]
get
{
return this.tbsCert.issuer;
}
}
// Token: 0x17001EF1 RID: 7921
// (get) Token: 0x0600C780 RID: 51072 RVA: 0x002D1BA8 File Offset: 0x002CFDA8
[Token(Token = "0x17001EF1")]
public Time StartDate
{
[Token(Token = "0x600C780")]
[Address(RVA = "0x5EF710", Offset = "0x5EE710", VA = "0x1805EF710")]
get
{
return this.tbsCert.startDate;
}
}
// Token: 0x17001EF2 RID: 7922
// (get) Token: 0x0600C781 RID: 51073 RVA: 0x002D1BC8 File Offset: 0x002CFDC8
[Token(Token = "0x17001EF2")]
public Time EndDate
{
[Token(Token = "0x600C781")]
[Address(RVA = "0x2CF4720", Offset = "0x2CF3720", VA = "0x182CF4720")]
get
{
return this.tbsCert.endDate;
}
}
// Token: 0x17001EF3 RID: 7923
// (get) Token: 0x0600C782 RID: 51074 RVA: 0x002D1BE8 File Offset: 0x002CFDE8
[Token(Token = "0x17001EF3")]
public X509Name Subject
{
[Token(Token = "0x600C782")]
[Address(RVA = "0x1918F20", Offset = "0x1917F20", VA = "0x181918F20")]
get
{
return this.tbsCert.subject;
}
}
// Token: 0x17001EF4 RID: 7924
// (get) Token: 0x0600C783 RID: 51075 RVA: 0x002D1C08 File Offset: 0x002CFE08
[Token(Token = "0x17001EF4")]
public SubjectPublicKeyInfo SubjectPublicKeyInfo
{
[Token(Token = "0x600C783")]
[Address(RVA = "0x5F1F30", Offset = "0x5F0F30", VA = "0x1805F1F30")]
get
{
return this.tbsCert.subjectPublicKeyInfo;
}
}
// Token: 0x17001EF5 RID: 7925
// (get) Token: 0x0600C784 RID: 51076 RVA: 0x002D1C28 File Offset: 0x002CFE28
[Token(Token = "0x17001EF5")]
public AlgorithmIdentifier SignatureAlgorithm
{
[Token(Token = "0x600C784")]
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
get
{
return this.sigAlgID;
}
}
// Token: 0x17001EF6 RID: 7926
// (get) Token: 0x0600C785 RID: 51077 RVA: 0x002D1C3C File Offset: 0x002CFE3C
[Token(Token = "0x17001EF6")]
public DerBitString Signature
{
[Token(Token = "0x600C785")]
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
get
{
return this.sig;
}
}
// Token: 0x0600C786 RID: 51078 RVA: 0x002D1C50 File Offset: 0x002CFE50
[Token(Token = "0x600C786")]
[Address(RVA = "0xBDDB90", Offset = "0xBDCB90", VA = "0x180BDDB90")]
public byte[] GetSignatureOctets()
{
Asn1Object asn1Object = this.sig.ToAsn1Object();
throw new NullReferenceException();
}
// Token: 0x0600C787 RID: 51079 RVA: 0x002D1C70 File Offset: 0x002CFE70
[Token(Token = "0x600C787")]
[Address(RVA = "0x2E8DF60", Offset = "0x2E8CF60", VA = "0x182E8DF60", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1Encodable[] array = new Asn1Encodable[3];
TbsCertificateStructure tbsCertificateStructure = this.tbsCert;
if (tbsCertificateStructure != 0)
{
}
array[0] = tbsCertificateStructure;
AlgorithmIdentifier algorithmIdentifier = this.sigAlgID;
if (algorithmIdentifier != 0)
{
}
array[1] = algorithmIdentifier;
DerBitString derBitString = this.sig;
if (derBitString != 0)
{
}
array[2] = derBitString;
DerSequence derSequence = new DerSequence(array);
throw new NullReferenceException();
}
// Token: 0x04007CFC RID: 31996
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4007CFC")]
private readonly TbsCertificateStructure tbsCert;
// Token: 0x04007CFD RID: 31997
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4007CFD")]
private readonly AlgorithmIdentifier sigAlgID;
// Token: 0x04007CFE RID: 31998
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4007CFE")]
private readonly DerBitString sig;
}
}