Files
Aug2021-Cpp2IL-Dump/Assembly-CSharp/BestHTTP/SecureProtocol/Org/BouncyCastle/Asn1/X509/X509CertificateStructure.cs
T
2026-04-10 22:50:51 +02:00

289 lines
16 KiB
C#

using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
{
// Token: 0x02001E2C RID: 7724
[Token(Token = "0x2001E2C")]
public class X509CertificateStructure : Asn1Encodable
{
// Token: 0x0600C3AA RID: 50090 RVA: 0x002C9164 File Offset: 0x002C7364
[Token(Token = "0x600C3AA")]
[Address(RVA = "0x2B46690", Offset = "0x2B45490", VA = "0x182B46690")]
public static X509CertificateStructure GetInstance(Asn1TaggedObject obj, bool explicitly)
{
return X509CertificateStructure.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
}
// Token: 0x0600C3AB RID: 50091 RVA: 0x002C9180 File Offset: 0x002C7380
[Token(Token = "0x600C3AB")]
[Address(RVA = "0x2B466B0", Offset = "0x2B454B0", VA = "0x182B466B0")]
public static X509CertificateStructure GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600C3AB)
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: 0x0600C3AC RID: 50092 RVA: 0x002C91F4 File Offset: 0x002C73F4
[Token(Token = "0x600C3AC")]
[Address(RVA = "0x2B46A30", Offset = "0x2B45830", VA = "0x182B46A30")]
public X509CertificateStructure(TbsCertificateStructure tbsCert, AlgorithmIdentifier sigAlgID, DerBitString sig)
{
/*
An exception occurred when decompiling this method (0600C3AC)
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: 0x0600C3AD RID: 50093 RVA: 0x002C9240 File Offset: 0x002C7440
[Token(Token = "0x600C3AD")]
[Address(RVA = "0x2B46B40", Offset = "0x2B45940", VA = "0x182B46B40")]
private X509CertificateStructure(Asn1Sequence seq)
{
/*
An exception occurred when decompiling this method (0600C3AD)
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: 0x17001E50 RID: 7760
// (get) Token: 0x0600C3AE RID: 50094 RVA: 0x002C92A0 File Offset: 0x002C74A0
[Token(Token = "0x17001E50")]
public TbsCertificateStructure TbsCertificate
{
[Token(Token = "0x600C3AE")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
get
{
return this.tbsCert;
}
}
// Token: 0x17001E51 RID: 7761
// (get) Token: 0x0600C3AF RID: 50095 RVA: 0x002C92B4 File Offset: 0x002C74B4
[Token(Token = "0x17001E51")]
public int Version
{
[Token(Token = "0x600C3AF")]
[Address(RVA = "0x28CA640", Offset = "0x28C9440", VA = "0x1828CA640")]
get
{
int intValue = this.tbsCert.version.Value.IntValue;
return intValue + 1;
}
}
// Token: 0x17001E52 RID: 7762
// (get) Token: 0x0600C3B0 RID: 50096 RVA: 0x002C92E4 File Offset: 0x002C74E4
[Token(Token = "0x17001E52")]
public DerInteger SerialNumber
{
[Token(Token = "0x600C3B0")]
[Address(RVA = "0x434F10", Offset = "0x433D10", VA = "0x180434F10")]
get
{
return this.tbsCert.serialNumber;
}
}
// Token: 0x17001E53 RID: 7763
// (get) Token: 0x0600C3B1 RID: 50097 RVA: 0x002C9304 File Offset: 0x002C7504
[Token(Token = "0x17001E53")]
public X509Name Issuer
{
[Token(Token = "0x600C3B1")]
[Address(RVA = "0x42FC20", Offset = "0x42EA20", VA = "0x18042FC20")]
get
{
return this.tbsCert.issuer;
}
}
// Token: 0x17001E54 RID: 7764
// (get) Token: 0x0600C3B2 RID: 50098 RVA: 0x002C9324 File Offset: 0x002C7524
[Token(Token = "0x17001E54")]
public Time StartDate
{
[Token(Token = "0x600C3B2")]
[Address(RVA = "0x532820", Offset = "0x531620", VA = "0x180532820")]
get
{
return this.tbsCert.startDate;
}
}
// Token: 0x17001E55 RID: 7765
// (get) Token: 0x0600C3B3 RID: 50099 RVA: 0x002C9344 File Offset: 0x002C7544
[Token(Token = "0x17001E55")]
public Time EndDate
{
[Token(Token = "0x600C3B3")]
[Address(RVA = "0x2955E80", Offset = "0x2954C80", VA = "0x182955E80")]
get
{
return this.tbsCert.endDate;
}
}
// Token: 0x17001E56 RID: 7766
// (get) Token: 0x0600C3B4 RID: 50100 RVA: 0x002C9364 File Offset: 0x002C7564
[Token(Token = "0x17001E56")]
public X509Name Subject
{
[Token(Token = "0x600C3B4")]
[Address(RVA = "0x5327C0", Offset = "0x5315C0", VA = "0x1805327C0")]
get
{
return this.tbsCert.subject;
}
}
// Token: 0x17001E57 RID: 7767
// (get) Token: 0x0600C3B5 RID: 50101 RVA: 0x002C9384 File Offset: 0x002C7584
[Token(Token = "0x17001E57")]
public SubjectPublicKeyInfo SubjectPublicKeyInfo
{
[Token(Token = "0x600C3B5")]
[Address(RVA = "0x47B100", Offset = "0x479F00", VA = "0x18047B100")]
get
{
return this.tbsCert.subjectPublicKeyInfo;
}
}
// Token: 0x17001E58 RID: 7768
// (get) Token: 0x0600C3B6 RID: 50102 RVA: 0x002C93A4 File Offset: 0x002C75A4
[Token(Token = "0x17001E58")]
public AlgorithmIdentifier SignatureAlgorithm
{
[Token(Token = "0x600C3B6")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
get
{
return this.sigAlgID;
}
}
// Token: 0x17001E59 RID: 7769
// (get) Token: 0x0600C3B7 RID: 50103 RVA: 0x002C93B8 File Offset: 0x002C75B8
[Token(Token = "0x17001E59")]
public DerBitString Signature
{
[Token(Token = "0x600C3B7")]
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
get
{
return this.sig;
}
}
// Token: 0x0600C3B8 RID: 50104 RVA: 0x002C93CC File Offset: 0x002C75CC
[Token(Token = "0x600C3B8")]
[Address(RVA = "0x271F280", Offset = "0x271E080", VA = "0x18271F280")]
public byte[] GetSignatureOctets()
{
Asn1Object asn1Object = this.sig.ToAsn1Object();
throw new NullReferenceException();
}
// Token: 0x0600C3B9 RID: 50105 RVA: 0x002C93EC File Offset: 0x002C75EC
[Token(Token = "0x600C3B9")]
[Address(RVA = "0x2B468C0", Offset = "0x2B456C0", VA = "0x182B468C0", 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: 0x04007B43 RID: 31555
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4007B43")]
private readonly TbsCertificateStructure tbsCert;
// Token: 0x04007B44 RID: 31556
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4007B44")]
private readonly AlgorithmIdentifier sigAlgID;
// Token: 0x04007B45 RID: 31557
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4007B45")]
private readonly DerBitString sig;
}
}