using System; using System.Collections; using System.IO; using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1; using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.CryptoPro; using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Nist; using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Oiw; using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs; using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.TeleTrust; using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509; using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto; using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Operators; using BestHTTP.SecureProtocol.Org.BouncyCastle.Security; using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections; using BestHTTP.SecureProtocol.Org.BouncyCastle.X509; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkcs { // Token: 0x0200198C RID: 6540 [Token(Token = "0x200198C")] public class Pkcs10CertificationRequest : CertificationRequest { // Token: 0x06009C20 RID: 39968 RVA: 0x00207F40 File Offset: 0x00206140 [Token(Token = "0x6009C20")] [Address(RVA = "0x1CBEE70", Offset = "0x1CBDC70", VA = "0x181CBEE70")] static Pkcs10CertificationRequest() { /* An exception occurred when decompiling this method (06009C20) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Pkcs.Pkcs10CertificationRequest::.cctor() ---> System.Exception: Basic block has to end with unconditional control flow. { Block_0: stloc:IDictionary(var_1_07, call:IDictionary(Platform::CreateHashtable)) stsfld:IDictionary(Pkcs10CertificationRequest::algorithms, ldloc:IDictionary(var_1_07)) stloc:IDictionary(var_3_15, call:IDictionary(Platform::CreateHashtable)) stsfld:IDictionary(Pkcs10CertificationRequest::exParams, ldloc:IDictionary(var_3_15)) stloc:IDictionary(var_5_24, call:IDictionary(Platform::CreateHashtable)) stsfld:IDictionary(Pkcs10CertificationRequest::keyAlgorithms, ldloc:IDictionary(var_5_24)) stsfld:IDictionary(Pkcs10CertificationRequest::oids, call:IDictionary(Platform::CreateHashtable)) stsfld:ISet(Pkcs10CertificationRequest::noParams, newobj:HashSet[exp:ISet](HashSet::.ctor)) stloc:IDictionary(var_7_49, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms)) stloc:DerObjectIdentifier(var_8_50, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::MD2WithRsaEncryption)) stloc:IDictionary(var_9_57, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms)) stloc:DerObjectIdentifier(var_10_5E, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::MD2WithRsaEncryption)) stloc:IDictionary(var_11_65, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms)) stloc:DerObjectIdentifier(var_12_6C, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::MD5WithRsaEncryption)) stloc:IDictionary(var_13_73, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms)) stloc:DerObjectIdentifier(var_14_7A, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::MD5WithRsaEncryption)) stloc:IDictionary(var_15_81, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms)) stloc:DerObjectIdentifier(var_16_88, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::MD5WithRsaEncryption)) stloc:IDictionary(var_17_8F, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms)) stloc:DerObjectIdentifier(var_18_96, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha1WithRsaEncryption)) stloc:IDictionary(var_19_9D, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms)) stloc:DerObjectIdentifier(var_20_A4, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha1WithRsaEncryption)) stloc:IDictionary(var_21_AB, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms)) stloc:DerObjectIdentifier(var_22_B2, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha224WithRsaEncryption)) stloc:IDictionary(var_23_B9, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms)) stloc:DerObjectIdentifier(var_24_C0, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha224WithRsaEncryption)) stloc:IDictionary(var_25_C7, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms)) stloc:DerObjectIdentifier(var_26_CE, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha256WithRsaEncryption)) stloc:IDictionary(var_27_D5, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms)) stloc:DerObjectIdentifier(var_28_DC, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha256WithRsaEncryption)) stloc:IDictionary(var_29_E3, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms)) stloc:DerObjectIdentifier(var_30_EA, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha384WithRsaEncryption)) stloc:IDictionary(var_31_F1, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms)) stloc:DerObjectIdentifier(var_32_F8, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha384WithRsaEncryption)) stloc:IDictionary(var_33_FF, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms)) stloc:DerObjectIdentifier(var_34_106, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha512WithRsaEncryption)) stloc:IDictionary(var_35_10D, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms)) stloc:DerObjectIdentifier(var_36_114, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha512WithRsaEncryption)) stloc:IDictionary(var_37_11B, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms)) stloc:DerObjectIdentifier(var_38_122, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdRsassaPss)) stloc:IDictionary(var_39_129, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms)) stloc:DerObjectIdentifier(var_40_130, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdRsassaPss)) stloc:IDictionary(var_41_137, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms)) stloc:DerObjectIdentifier(var_42_13E, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdRsassaPss)) stloc:IDictionary(var_43_145, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms)) stloc:DerObjectIdentifier(var_44_14C, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdRsassaPss)) stloc:IDictionary(var_45_153, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms)) stloc:DerObjectIdentifier(var_46_15A, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdRsassaPss)) stloc:IDictionary(var_47_161, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms)) stloc:DerObjectIdentifier(var_48_168, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha1WithRsaEncryption)) stloc:IDictionary(var_49_16F, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms)) stloc:DerObjectIdentifier(var_50_176, ldsfld:DerObjectIdentifier(TeleTrusTObjectIdentifiers::RsaSignatureWithRipeMD128)) stloc:IDictionary(var_51_17D, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms)) stloc:DerObjectIdentifier(var_52_184, ldsfld:DerObjectIdentifier(TeleTrusTObjectIdentifiers::RsaSignatureWithRipeMD128)) stloc:IDictionary(var_53_18B, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms)) stloc:DerObjectIdentifier(var_54_192, ldsfld:DerObjectIdentifier(TeleTrusTObjectIdentifiers::RsaSignatureWithRipeMD160)) stloc:IDictionary(var_55_199, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms)) stloc:DerObjectIdentifier(var_56_1A0, ldsfld:DerObjectIdentifier(TeleTrusTObjectIdentifiers::RsaSignatureWithRipeMD160)) stloc:IDictionary(var_57_1A7, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms)) stloc:DerObjectIdentifier(var_58_1AE, ldsfld:DerObjectIdentifier(TeleTrusTObjectIdentifiers::RsaSignatureWithRipeMD256)) stloc:IDictionary(var_59_1B5, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms)) stloc:DerObjectIdentifier(var_60_1BC, ldsfld:DerObjectIdentifier(TeleTrusTObjectIdentifiers::RsaSignatureWithRipeMD256)) stloc:IDictionary(var_61_1C3, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms)) stloc:DerObjectIdentifier(var_62_1CA, ldsfld:DerObjectIdentifier(X9ObjectIdentifiers::IdDsaWithSha1)) stloc:IDictionary(var_63_1D1, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms)) stloc:DerObjectIdentifier(var_64_1D8, ldsfld:DerObjectIdentifier(X9ObjectIdentifiers::IdDsaWithSha1)) stloc:IDictionary(var_65_1DF, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms)) stloc:DerObjectIdentifier(var_66_1E6, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::DsaWithSha224)) stloc:IDictionary(var_67_1ED, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms)) stloc:DerObjectIdentifier(var_68_1F4, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::DsaWithSha256)) stloc:IDictionary(var_69_1FB, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms)) stloc:DerObjectIdentifier(var_70_202, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::DsaWithSha384)) stloc:IDictionary(var_71_209, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms)) stloc:DerObjectIdentifier(var_72_210, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::DsaWithSha512)) stloc:IDictionary(var_73_217, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms)) stloc:DerObjectIdentifier(var_74_21E, ldsfld:DerObjectIdentifier(X9ObjectIdentifiers::ECDsaWithSha1)) stloc:IDictionary(var_75_225, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms)) stloc:DerObjectIdentifier(var_76_22C, ldsfld:DerObjectIdentifier(X9ObjectIdentifiers::ECDsaWithSha224)) stloc:IDictionary(var_77_233, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms)) stloc:DerObjectIdentifier(var_78_23A, ldsfld:DerObjectIdentifier(X9ObjectIdentifiers::ECDsaWithSha256)) stloc:IDictionary(var_79_241, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms)) stloc:DerObjectIdentifier(var_80_248, ldsfld:DerObjectIdentifier(X9ObjectIdentifiers::ECDsaWithSha384)) stloc:IDictionary(var_81_24F, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms)) stloc:DerObjectIdentifier(var_82_256, ldsfld:DerObjectIdentifier(X9ObjectIdentifiers::ECDsaWithSha512)) stloc:IDictionary(var_83_25D, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms)) stloc:DerObjectIdentifier(var_84_264, ldsfld:DerObjectIdentifier(X9ObjectIdentifiers::ECDsaWithSha1)) stloc:IDictionary(var_85_26B, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms)) stloc:DerObjectIdentifier(var_86_272, ldsfld:DerObjectIdentifier(CryptoProObjectIdentifiers::GostR3411x94WithGostR3410x94)) stloc:IDictionary(var_87_279, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms)) stloc:DerObjectIdentifier(var_88_280, ldsfld:DerObjectIdentifier(CryptoProObjectIdentifiers::GostR3411x94WithGostR3410x94)) stloc:IDictionary(var_89_287, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms)) stloc:DerObjectIdentifier(var_90_28E, ldsfld:DerObjectIdentifier(CryptoProObjectIdentifiers::GostR3411x94WithGostR3410x2001)) stloc:IDictionary(var_91_295, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms)) stloc:DerObjectIdentifier(var_92_29C, ldsfld:DerObjectIdentifier(CryptoProObjectIdentifiers::GostR3411x94WithGostR3410x2001)) stloc:IDictionary(var_93_2A3, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms)) stloc:DerObjectIdentifier(var_94_2AA, ldsfld:DerObjectIdentifier(CryptoProObjectIdentifiers::GostR3411x94WithGostR3410x2001)) stloc:IDictionary(var_95_2B1, ldsfld:IDictionary(Pkcs10CertificationRequest::oids)) stloc:IDictionary(var_97_2B8, ldsfld:IDictionary(Pkcs10CertificationRequest::oids)) stloc:IDictionary(var_99_2BF, ldsfld:IDictionary(Pkcs10CertificationRequest::oids)) stloc:IDictionary(var_101_2C6, ldsfld:IDictionary(Pkcs10CertificationRequest::oids)) stloc:IDictionary(var_103_2CD, ldsfld:IDictionary(Pkcs10CertificationRequest::oids)) stloc:IDictionary(var_105_2D4, ldsfld:IDictionary(Pkcs10CertificationRequest::oids)) stloc:IDictionary(var_107_2DB, ldsfld:IDictionary(Pkcs10CertificationRequest::oids)) stloc:IDictionary(var_109_2E2, ldsfld:IDictionary(Pkcs10CertificationRequest::oids)) stloc:IDictionary(var_111_2E9, ldsfld:IDictionary(Pkcs10CertificationRequest::oids)) stloc:IDictionary(var_113_2F0, ldsfld:IDictionary(Pkcs10CertificationRequest::oids)) stloc:IDictionary(var_115_2F7, ldsfld:IDictionary(Pkcs10CertificationRequest::oids)) stloc:IDictionary(var_117_2FE, ldsfld:IDictionary(Pkcs10CertificationRequest::oids)) stloc:IDictionary(var_119_305, ldsfld:IDictionary(Pkcs10CertificationRequest::oids)) stloc:IDictionary(var_121_30C, ldsfld:IDictionary(Pkcs10CertificationRequest::oids)) stloc:IDictionary(var_123_313, ldsfld:IDictionary(Pkcs10CertificationRequest::oids)) stloc:IDictionary(var_125_31A, ldsfld:IDictionary(Pkcs10CertificationRequest::oids)) stloc:IDictionary(var_127_321, ldsfld:IDictionary(Pkcs10CertificationRequest::oids)) stloc:IDictionary(var_129_328, ldsfld:IDictionary(Pkcs10CertificationRequest::oids)) } 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 1660 */; } // Token: 0x06009C21 RID: 39969 RVA: 0x00208278 File Offset: 0x00206478 [Token(Token = "0x6009C21")] [Address(RVA = "0x1CBDE90", Offset = "0x1CBCC90", VA = "0x181CBDE90")] private static RsassaPssParameters CreatePssParams(AlgorithmIdentifier hashAlgId, int saltSize) { AlgorithmIdentifier algorithmIdentifier = new AlgorithmIdentifier(PkcsObjectIdentifiers.IdMgf1, hashAlgId); DerInteger derInteger = new DerInteger(saltSize); DerInteger derInteger2 = new DerInteger(1); return new RsassaPssParameters(hashAlgId, algorithmIdentifier, derInteger, derInteger2); } // Token: 0x06009C22 RID: 39970 RVA: 0x002082A8 File Offset: 0x002064A8 [Token(Token = "0x6009C22")] [Address(RVA = "0x716AB0", Offset = "0x7158B0", VA = "0x180716AB0")] protected Pkcs10CertificationRequest() { } // Token: 0x06009C23 RID: 39971 RVA: 0x002082BC File Offset: 0x002064BC [Token(Token = "0x6009C23")] [Address(RVA = "0x1CC0A90", Offset = "0x1CBF890", VA = "0x181CC0A90")] public Pkcs10CertificationRequest(byte[] encoded) { Asn1Object asn1Object; do { asn1Object = Asn1Object.FromByteArray(encoded); if (asn1Object == 0) { } } while (asn1Object == 0); } // Token: 0x06009C24 RID: 39972 RVA: 0x002082DC File Offset: 0x002064DC [Token(Token = "0x6009C24")] [Address(RVA = "0x1CC0880", Offset = "0x1CBF680", VA = "0x181CC0880")] public Pkcs10CertificationRequest(Asn1Sequence seq) : base(seq) { } // Token: 0x06009C25 RID: 39973 RVA: 0x002082F0 File Offset: 0x002064F0 [Token(Token = "0x6009C25")] [Address(RVA = "0x1CC0B30", Offset = "0x1CBF930", VA = "0x181CC0B30")] public Pkcs10CertificationRequest(Stream input) { Asn1Object asn1Object; do { asn1Object = Asn1Object.FromStream(input); if (asn1Object == 0) { } } while (asn1Object == 0); } // Token: 0x06009C26 RID: 39974 RVA: 0x00208310 File Offset: 0x00206510 [Token(Token = "0x6009C26")] [Address(RVA = "0x1CC0890", Offset = "0x1CBF690", VA = "0x181CC0890")] public Pkcs10CertificationRequest(string signatureAlgorithm, X509Name subject, AsymmetricKeyParameter publicKey, Asn1Set attributes, AsymmetricKeyParameter signingKey) { } // Token: 0x06009C27 RID: 39975 RVA: 0x00208320 File Offset: 0x00206520 [Token(Token = "0x6009C27")] [Address(RVA = "0x1CC0BD0", Offset = "0x1CBF9D0", VA = "0x181CC0BD0")] [Obsolete] public Pkcs10CertificationRequest(ISignatureFactory signatureFactory, X509Name subject, AsymmetricKeyParameter publicKey, Asn1Set attributes, AsymmetricKeyParameter signingKey) { } // Token: 0x06009C28 RID: 39976 RVA: 0x00208330 File Offset: 0x00206530 [Token(Token = "0x6009C28")] [Address(RVA = "0x1CC0930", Offset = "0x1CBF730", VA = "0x181CC0930")] public Pkcs10CertificationRequest(ISignatureFactory signatureFactory, X509Name subject, AsymmetricKeyParameter publicKey, Asn1Set attributes) { /* An exception occurred when decompiling this method (06009C28) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Pkcs.Pkcs10CertificationRequest::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.ISignatureFactory,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.X509Name,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.AsymmetricKeyParameter,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Set) ---> System.Exception: Basic block has to end with unconditional control flow. { IL_27: stloc:ArgumentException(var_2_36, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("expected public key"), ldstr:string("publicKey"))) } 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 1660 */; } // Token: 0x06009C29 RID: 39977 RVA: 0x00208374 File Offset: 0x00206574 [Token(Token = "0x6009C29")] [Address(RVA = "0x1CBE5D0", Offset = "0x1CBD3D0", VA = "0x181CBE5D0")] private void Init(ISignatureFactory signatureFactory, X509Name subject, AsymmetricKeyParameter publicKey, Asn1Set attributes) { int num; for (;;) { num = 0; if (signatureFactory != 0) { this.sigAlgId = signatureFactory; SubjectPublicKeyInfo subjectPublicKeyInfo = SubjectPublicKeyInfoFactory.CreateSubjectPublicKeyInfo(publicKey); CertificationRequestInfo certificationRequestInfo; this.reqInfo = certificationRequestInfo; byte[] derEncoded = this.reqInfo.GetDerEncoded(); if (derEncoded != 0 && derEncoded != 0) { break; } } } if (num < typeof(IBlockResult).TypeHandle) { num += num; num++; } DerBitString derBitString; this.sigBits = derBitString; } // Token: 0x06009C2A RID: 39978 RVA: 0x002083E0 File Offset: 0x002065E0 [Token(Token = "0x6009C2A")] [Address(RVA = "0x1CBE3D0", Offset = "0x1CBD1D0", VA = "0x181CBE3D0")] public AsymmetricKeyParameter GetPublicKey() { return PublicKeyFactory.CreateKey(this.reqInfo.subjectPKInfo); } // Token: 0x06009C2B RID: 39979 RVA: 0x00208404 File Offset: 0x00206604 [Token(Token = "0x6009C2B")] [Address(RVA = "0x1CBEC90", Offset = "0x1CBDA90", VA = "0x181CBEC90")] public bool Verify() { Asn1VerifierFactoryProvider asn1VerifierFactoryProvider = new Asn1VerifierFactoryProvider(PublicKeyFactory.CreateKey(this.reqInfo.subjectPKInfo)); bool flag; return flag; } // Token: 0x06009C2C RID: 39980 RVA: 0x00208430 File Offset: 0x00206630 [Token(Token = "0x6009C2C")] [Address(RVA = "0x1CBED50", Offset = "0x1CBDB50", VA = "0x181CBED50")] public bool Verify(AsymmetricKeyParameter publicKey) { Asn1VerifierFactoryProvider asn1VerifierFactoryProvider = new Asn1VerifierFactoryProvider(publicKey); bool flag; return flag; } // Token: 0x06009C2D RID: 39981 RVA: 0x0020844C File Offset: 0x0020664C [Token(Token = "0x6009C2D")] [Address(RVA = "0x1CBEE00", Offset = "0x1CBDC00", VA = "0x181CBEE00")] public bool Verify(IVerifierFactoryProvider verifierProvider) { bool flag; return flag; } // Token: 0x06009C2E RID: 39982 RVA: 0x00208460 File Offset: 0x00206660 [Token(Token = "0x6009C2E")] [Address(RVA = "0x1CBEA10", Offset = "0x1CBD810", VA = "0x181CBEA10")] public bool Verify(IVerifierFactory verifier) { byte[] derEncoded = this.reqInfo.GetDerEncoded(); string text = this.sigBits.GetString(); if (text != 0 && text != 0) { int num = 0; if (num < derEncoded) { num += num; num++; } int num2 = 0; text += text; SignatureException ex = new SignatureException("exception encoding TBS cert request", num2); } throw new NullReferenceException(); } // Token: 0x06009C2F RID: 39983 RVA: 0x002084D8 File Offset: 0x002066D8 [Token(Token = "0x6009C2F")] [Address(RVA = "0x1CBE8A0", Offset = "0x1CBD6A0", VA = "0x181CBE8A0")] private void SetSignatureParameters(ISigner signature, Asn1Encodable asn1Params) { /* An exception occurred when decompiling this method (06009C2F) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Pkcs.Pkcs10CertificationRequest::SetSignatureParameters(BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.ISigner,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Encodable) ---> System.Exception: Basic block has to end with unconditional control flow. { IL_1D: stloc:Exception(var_3_27, call:Exception(Platform::CreateNotImplementedException, ldstr:string("signature algorithm with MGF1"))) } 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 1660 */; } // Token: 0x06009C30 RID: 39984 RVA: 0x0020850C File Offset: 0x0020670C [Token(Token = "0x6009C30")] [Address(RVA = "0x1CBE400", Offset = "0x1CBD200", VA = "0x181CBE400")] internal static string GetSignatureName(AlgorithmIdentifier sigAlgId) { DerObjectIdentifier objectID = sigAlgId.ObjectID; if (objectID != 0 && objectID == 0) { Asn1Object asn1Object = sigAlgId.ToAsn1Object(); Asn1Object asn1Object2 = RsassaPssParameters.GetInstance(objectID).hashAlgorithm.ToAsn1Object(); string text; return text + "withRSAandMGF1"; } Asn1Object asn1Object3 = sigAlgId.ToAsn1Object(); throw new NullReferenceException(); } // Token: 0x06009C31 RID: 39985 RVA: 0x0020855C File Offset: 0x0020675C [Token(Token = "0x6009C31")] [Address(RVA = "0x1CBDFB0", Offset = "0x1CBCDB0", VA = "0x181CBDFB0")] private static string GetDigestAlgName(DerObjectIdentifier digestAlgOID) { DerObjectIdentifier md = PkcsObjectIdentifiers.MD5; DerObjectIdentifier idSha = OiwObjectIdentifiers.IdSha1; DerObjectIdentifier idSha2 = NistObjectIdentifiers.IdSha224; DerObjectIdentifier idSha3 = NistObjectIdentifiers.IdSha256; DerObjectIdentifier idSha4 = NistObjectIdentifiers.IdSha384; DerObjectIdentifier idSha5 = NistObjectIdentifiers.IdSha512; DerObjectIdentifier ripeMD = TeleTrusTObjectIdentifiers.RipeMD128; DerObjectIdentifier ripeMD2 = TeleTrusTObjectIdentifiers.RipeMD160; DerObjectIdentifier ripeMD3 = TeleTrusTObjectIdentifiers.RipeMD256; DerObjectIdentifier gostR = CryptoProObjectIdentifiers.GostR3411; return digestAlgOID.identifier; } // Token: 0x04006922 RID: 26914 [Token(Token = "0x4006922")] protected static readonly IDictionary algorithms; // Token: 0x04006923 RID: 26915 [Token(Token = "0x4006923")] protected static readonly IDictionary exParams; // Token: 0x04006924 RID: 26916 [Token(Token = "0x4006924")] protected static readonly IDictionary keyAlgorithms; // Token: 0x04006925 RID: 26917 [Token(Token = "0x4006925")] protected static readonly IDictionary oids; // Token: 0x04006926 RID: 26918 [Token(Token = "0x4006926")] protected static readonly ISet noParams; } }