Files
Jan2021-Cpp2Il-Dump/Assembly-CSharp/BestHTTP/SecureProtocol/Org/BouncyCastle/Asn1/Pkcs/CertificationRequestInfo.cs
T
2026-04-08 23:40:05 +02:00

251 lines
12 KiB
C#

using System;
using System.Collections;
using System.Runtime.InteropServices;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
{
// Token: 0x020018AB RID: 6315
[Token(Token = "0x20018AB")]
[StructLayout(3)]
public class CertificationRequestInfo : Asn1Encodable
{
// Token: 0x0600A9A4 RID: 43428 RVA: 0x00278FEC File Offset: 0x002771EC
[Token(Token = "0x600A9A4")]
[Address(RVA = "0x27CB000", Offset = "0x27C9A00", VA = "0x1827CB000")]
public static CertificationRequestInfo GetInstance(object obj)
{
while (obj != 0)
{
Asn1Sequence instance;
if (obj == 0)
{
instance = Asn1Sequence.GetInstance(obj);
return new CertificationRequestInfo(instance);
}
if (instance != 0)
{
return;
}
}
}
// Token: 0x0600A9A5 RID: 43429 RVA: 0x00279020 File Offset: 0x00277220
[Token(Token = "0x600A9A5")]
[Address(RVA = "0x27CB850", Offset = "0x27CA250", VA = "0x1827CB850")]
public CertificationRequestInfo(X509Name subject, SubjectPublicKeyInfo pkInfo, Asn1Set attributes)
{
/*
An exception occurred when decompiling this method (0600A9A5)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.CertificationRequestInfo::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.X509Name,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.SubjectPublicKeyInfo,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Set)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_4C:
stloc:ArgumentException(var_2_56, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Not all mandatory fields set in CertificationRequestInfo generator.")))
}
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: 0x0600A9A6 RID: 43430 RVA: 0x00279084 File Offset: 0x00277284
[Token(Token = "0x600A9A6")]
[Address(RVA = "0x27CB600", Offset = "0x27CA000", VA = "0x1827CB600")]
private CertificationRequestInfo(Asn1Sequence seq)
{
/*
An exception occurred when decompiling this method (0600A9A6)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.CertificationRequestInfo::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_9F:
stloc:ArgumentException(var_12_A9, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Not all mandatory fields set in CertificationRequestInfo generator.")))
}
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: 0x17001A9B RID: 6811
// (get) Token: 0x0600A9A7 RID: 43431 RVA: 0x0027913C File Offset: 0x0027733C
[Token(Token = "0x17001A9B")]
public DerInteger Version
{
[Token(Token = "0x600A9A7")]
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
get
{
return this.version;
}
}
// Token: 0x17001A9C RID: 6812
// (get) Token: 0x0600A9A8 RID: 43432 RVA: 0x00279150 File Offset: 0x00277350
[Token(Token = "0x17001A9C")]
public X509Name Subject
{
[Token(Token = "0x600A9A8")]
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
get
{
return this.subject;
}
}
// Token: 0x17001A9D RID: 6813
// (get) Token: 0x0600A9A9 RID: 43433 RVA: 0x00279164 File Offset: 0x00277364
[Token(Token = "0x17001A9D")]
public SubjectPublicKeyInfo SubjectPublicKeyInfo
{
[Token(Token = "0x600A9A9")]
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
get
{
return this.subjectPKInfo;
}
}
// Token: 0x17001A9E RID: 6814
// (get) Token: 0x0600A9AA RID: 43434 RVA: 0x00279178 File Offset: 0x00277378
[Token(Token = "0x17001A9E")]
public Asn1Set Attributes
{
[Token(Token = "0x600A9AA")]
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230")]
get
{
return this.attributes;
}
}
// Token: 0x0600A9AB RID: 43435 RVA: 0x0027918C File Offset: 0x0027738C
[Token(Token = "0x600A9AB")]
[Address(RVA = "0x27CB100", Offset = "0x27C9B00", VA = "0x1827CB100", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1Encodable[] array = new Asn1Encodable[3];
DerInteger derInteger = this.version;
if (derInteger != 0)
{
}
array[0] = derInteger;
X509Name x509Name = this.subject;
if (x509Name != 0)
{
}
array[1] = x509Name;
SubjectPublicKeyInfo subjectPublicKeyInfo = this.subjectPKInfo;
if (subjectPublicKeyInfo != 0)
{
}
array[2] = subjectPublicKeyInfo;
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
if (this.attributes != (ulong)0L)
{
Asn1Encodable[] array2 = new Asn1Encodable[1];
Asn1Set asn1Set = this.attributes;
int num;
int num2;
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, num2, asn1Set);
num2 = 0;
num = 0;
if (derTaggedObject != 0)
{
}
array2[0] = derTaggedObject;
asn1EncodableVector.Add(array2);
}
DerSequence derSequence = new DerSequence(asn1EncodableVector);
throw new NullReferenceException();
}
// Token: 0x0600A9AC RID: 43436 RVA: 0x00279238 File Offset: 0x00277438
[Token(Token = "0x600A9AC")]
[Address(RVA = "0x27CB350", Offset = "0x27C9D50", VA = "0x1827CB350")]
private static void ValidateAttributes(Asn1Set attributes)
{
int num;
do
{
num = 0;
if (attributes == 0)
{
break;
}
IEnumerator enumerator = attributes.GetEnumerator();
Asn1Encodable asn1Encodable;
if (enumerator != 0)
{
if (enumerator == 0 || enumerator == 0)
{
goto IL_62;
}
AttributePkcs attributePkcs;
DerObjectIdentifier attrType = attributePkcs.attrType;
Asn1Set attrValues = attributePkcs.attrValues;
if (asn1Encodable != (ulong)1L)
{
goto IL_44;
}
}
if (asn1Encodable != 0)
{
}
if (num != -1)
{
}
}
while (num != 0);
return;
IL_44:
ArgumentException ex = new ArgumentException("challengePassword attribute must have one value");
throw new NullReferenceException();
IL_62:
throw new NullReferenceException();
}
// Token: 0x04006EBD RID: 28349
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4006EBD")]
internal DerInteger version;
// Token: 0x04006EBE RID: 28350
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4006EBE")]
internal X509Name subject;
// Token: 0x04006EBF RID: 28351
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x4006EBF")]
internal SubjectPublicKeyInfo subjectPKInfo;
// Token: 0x04006EC0 RID: 28352
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x4006EC0")]
internal Asn1Set attributes;
}
}