using System; using System.Collections; using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs { // Token: 0x02001E88 RID: 7816 [Token(Token = "0x2001E88")] public class CertificationRequestInfo : Asn1Encodable { // Token: 0x0600C57E RID: 50558 RVA: 0x002D14FC File Offset: 0x002CF6FC [Token(Token = "0x600C57E")] [Address(RVA = "0x2BBD4C0", Offset = "0x2BBC2C0", VA = "0x182BBD4C0")] 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: 0x0600C57F RID: 50559 RVA: 0x002D1530 File Offset: 0x002CF730 [Token(Token = "0x600C57F")] [Address(RVA = "0x2BBDCF0", Offset = "0x2BBCAF0", VA = "0x182BBDCF0")] public CertificationRequestInfo(X509Name subject, SubjectPublicKeyInfo pkInfo, Asn1Set attributes) { /* An exception occurred when decompiling this method (0600C57F) 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 1660 */; } // Token: 0x0600C580 RID: 50560 RVA: 0x002D1594 File Offset: 0x002CF794 [Token(Token = "0x600C580")] [Address(RVA = "0x2BBDAA0", Offset = "0x2BBC8A0", VA = "0x182BBDAA0")] private CertificationRequestInfo(Asn1Sequence seq) { /* An exception occurred when decompiling this method (0600C580) 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 1660 */; } // Token: 0x17001E9C RID: 7836 // (get) Token: 0x0600C581 RID: 50561 RVA: 0x002D164C File Offset: 0x002CF84C [Token(Token = "0x17001E9C")] public DerInteger Version { [Token(Token = "0x600C581")] [Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")] get { return this.version; } } // Token: 0x17001E9D RID: 7837 // (get) Token: 0x0600C582 RID: 50562 RVA: 0x002D1660 File Offset: 0x002CF860 [Token(Token = "0x17001E9D")] public X509Name Subject { [Token(Token = "0x600C582")] [Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")] get { return this.subject; } } // Token: 0x17001E9E RID: 7838 // (get) Token: 0x0600C583 RID: 50563 RVA: 0x002D1674 File Offset: 0x002CF874 [Token(Token = "0x17001E9E")] public SubjectPublicKeyInfo SubjectPublicKeyInfo { [Token(Token = "0x600C583")] [Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")] get { return this.subjectPKInfo; } } // Token: 0x17001E9F RID: 7839 // (get) Token: 0x0600C584 RID: 50564 RVA: 0x002D1688 File Offset: 0x002CF888 [Token(Token = "0x17001E9F")] public Asn1Set Attributes { [Token(Token = "0x600C584")] [Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")] get { return this.attributes; } } // Token: 0x0600C585 RID: 50565 RVA: 0x002D169C File Offset: 0x002CF89C [Token(Token = "0x600C585")] [Address(RVA = "0x2BBD5C0", Offset = "0x2BBC3C0", VA = "0x182BBD5C0", 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: 0x0600C586 RID: 50566 RVA: 0x002D1748 File Offset: 0x002CF948 [Token(Token = "0x600C586")] [Address(RVA = "0x2BBD810", Offset = "0x2BBC610", VA = "0x182BBD810")] 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_5E; } AttributePkcs attributePkcs; DerObjectIdentifier attrType = attributePkcs.attrType; Asn1Set attrValues = attributePkcs.attrValues; if (asn1Encodable != (ulong)1L) { goto IL_40; } } if (asn1Encodable != 0) { } } while (num != 0); return; IL_40: ArgumentException ex = new ArgumentException("challengePassword attribute must have one value"); throw new NullReferenceException(); IL_5E: throw new NullReferenceException(); } // Token: 0x04007D00 RID: 32000 [FieldOffset(Offset = "0x10")] [Token(Token = "0x4007D00")] internal DerInteger version; // Token: 0x04007D01 RID: 32001 [FieldOffset(Offset = "0x18")] [Token(Token = "0x4007D01")] internal X509Name subject; // Token: 0x04007D02 RID: 32002 [FieldOffset(Offset = "0x20")] [Token(Token = "0x4007D02")] internal SubjectPublicKeyInfo subjectPKInfo; // Token: 0x04007D03 RID: 32003 [FieldOffset(Offset = "0x28")] [Token(Token = "0x4007D03")] internal Asn1Set attributes; } }