using System; using System.Collections; using System.Runtime.InteropServices; 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.Utilities; using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Operators { // Token: 0x0200164D RID: 5709 [Token(Token = "0x200164D")] [StructLayout(3)] internal class X509Utilities { // Token: 0x06009823 RID: 38947 RVA: 0x0021B178 File Offset: 0x00219378 [Token(Token = "0x6009823")] [Address(RVA = "0x1DE1EA0", Offset = "0x1DE08A0", VA = "0x181DE1EA0")] static X509Utilities() { /* An exception occurred when decompiling this method (06009823) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Operators.X509Utilities::.cctor() ---> System.Exception: Basic block has to end with unconditional control flow. { Block_0: stsfld:Asn1Null(X509Utilities::derNull, ldsfld:DerNull[exp:Asn1Null](DerNull::Instance)) stloc:IDictionary(var_1_11, call:IDictionary(Platform::CreateHashtable)) stsfld:IDictionary(X509Utilities::algorithms, ldloc:IDictionary(var_1_11)) stsfld:IDictionary(X509Utilities::exParams, call:IDictionary(Platform::CreateHashtable)) stsfld:ISet(X509Utilities::noParams, newobj:HashSet[exp:ISet](HashSet::.ctor)) stloc:IDictionary(var_3_33, ldsfld:IDictionary(X509Utilities::algorithms)) stloc:DerObjectIdentifier(var_4_39, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::MD2WithRsaEncryption)) stloc:IDictionary(var_5_40, ldsfld:IDictionary(X509Utilities::algorithms)) stloc:DerObjectIdentifier(var_6_47, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::MD2WithRsaEncryption)) stloc:IDictionary(var_7_4E, ldsfld:IDictionary(X509Utilities::algorithms)) stloc:DerObjectIdentifier(var_8_55, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::MD5WithRsaEncryption)) stloc:IDictionary(var_9_5C, ldsfld:IDictionary(X509Utilities::algorithms)) stloc:DerObjectIdentifier(var_10_63, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::MD5WithRsaEncryption)) stloc:IDictionary(var_11_6A, ldsfld:IDictionary(X509Utilities::algorithms)) stloc:DerObjectIdentifier(var_12_71, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha1WithRsaEncryption)) stloc:IDictionary(var_13_78, ldsfld:IDictionary(X509Utilities::algorithms)) stloc:DerObjectIdentifier(var_14_7F, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha1WithRsaEncryption)) stloc:IDictionary(var_15_86, ldsfld:IDictionary(X509Utilities::algorithms)) stloc:DerObjectIdentifier(var_16_8D, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha224WithRsaEncryption)) stloc:IDictionary(var_17_94, ldsfld:IDictionary(X509Utilities::algorithms)) stloc:DerObjectIdentifier(var_18_9B, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha224WithRsaEncryption)) stloc:IDictionary(var_19_A2, ldsfld:IDictionary(X509Utilities::algorithms)) stloc:DerObjectIdentifier(var_20_A9, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha256WithRsaEncryption)) stloc:IDictionary(var_21_B0, ldsfld:IDictionary(X509Utilities::algorithms)) stloc:DerObjectIdentifier(var_22_B7, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha256WithRsaEncryption)) stloc:IDictionary(var_23_BE, ldsfld:IDictionary(X509Utilities::algorithms)) stloc:DerObjectIdentifier(var_24_C5, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha384WithRsaEncryption)) stloc:IDictionary(var_25_CC, ldsfld:IDictionary(X509Utilities::algorithms)) stloc:DerObjectIdentifier(var_26_D3, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha384WithRsaEncryption)) stloc:IDictionary(var_27_DA, ldsfld:IDictionary(X509Utilities::algorithms)) stloc:DerObjectIdentifier(var_28_E1, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha512WithRsaEncryption)) stloc:IDictionary(var_29_E8, ldsfld:IDictionary(X509Utilities::algorithms)) stloc:DerObjectIdentifier(var_30_EF, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha512WithRsaEncryption)) stloc:IDictionary(var_31_F6, ldsfld:IDictionary(X509Utilities::algorithms)) stloc:DerObjectIdentifier(var_32_FD, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdRsassaPss)) stloc:IDictionary(var_33_104, ldsfld:IDictionary(X509Utilities::algorithms)) stloc:DerObjectIdentifier(var_34_10B, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdRsassaPss)) stloc:IDictionary(var_35_112, ldsfld:IDictionary(X509Utilities::algorithms)) stloc:DerObjectIdentifier(var_36_119, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdRsassaPss)) stloc:IDictionary(var_37_120, ldsfld:IDictionary(X509Utilities::algorithms)) stloc:DerObjectIdentifier(var_38_127, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdRsassaPss)) stloc:IDictionary(var_39_12E, ldsfld:IDictionary(X509Utilities::algorithms)) stloc:DerObjectIdentifier(var_40_135, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdRsassaPss)) stloc:IDictionary(var_41_13C, ldsfld:IDictionary(X509Utilities::algorithms)) stloc:DerObjectIdentifier(var_42_143, ldsfld:DerObjectIdentifier(TeleTrusTObjectIdentifiers::RsaSignatureWithRipeMD160)) stloc:IDictionary(var_43_14A, ldsfld:IDictionary(X509Utilities::algorithms)) stloc:DerObjectIdentifier(var_44_151, ldsfld:DerObjectIdentifier(TeleTrusTObjectIdentifiers::RsaSignatureWithRipeMD160)) stloc:IDictionary(var_45_158, ldsfld:IDictionary(X509Utilities::algorithms)) stloc:DerObjectIdentifier(var_46_15F, ldsfld:DerObjectIdentifier(TeleTrusTObjectIdentifiers::RsaSignatureWithRipeMD128)) stloc:IDictionary(var_47_166, ldsfld:IDictionary(X509Utilities::algorithms)) stloc:DerObjectIdentifier(var_48_16D, ldsfld:DerObjectIdentifier(TeleTrusTObjectIdentifiers::RsaSignatureWithRipeMD128)) stloc:IDictionary(var_49_174, ldsfld:IDictionary(X509Utilities::algorithms)) stloc:DerObjectIdentifier(var_50_17B, ldsfld:DerObjectIdentifier(TeleTrusTObjectIdentifiers::RsaSignatureWithRipeMD256)) stloc:IDictionary(var_51_182, ldsfld:IDictionary(X509Utilities::algorithms)) stloc:DerObjectIdentifier(var_52_189, ldsfld:DerObjectIdentifier(TeleTrusTObjectIdentifiers::RsaSignatureWithRipeMD256)) stloc:IDictionary(var_53_190, ldsfld:IDictionary(X509Utilities::algorithms)) stloc:DerObjectIdentifier(var_54_197, ldsfld:DerObjectIdentifier(X9ObjectIdentifiers::IdDsaWithSha1)) stloc:IDictionary(var_55_19E, ldsfld:IDictionary(X509Utilities::algorithms)) stloc:DerObjectIdentifier(var_56_1A5, ldsfld:DerObjectIdentifier(X9ObjectIdentifiers::IdDsaWithSha1)) stloc:IDictionary(var_57_1AC, ldsfld:IDictionary(X509Utilities::algorithms)) stloc:DerObjectIdentifier(var_58_1B3, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::DsaWithSha224)) stloc:IDictionary(var_59_1BA, ldsfld:IDictionary(X509Utilities::algorithms)) stloc:DerObjectIdentifier(var_60_1C1, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::DsaWithSha256)) stloc:IDictionary(var_61_1C8, ldsfld:IDictionary(X509Utilities::algorithms)) stloc:DerObjectIdentifier(var_62_1CF, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::DsaWithSha384)) stloc:IDictionary(var_63_1D6, ldsfld:IDictionary(X509Utilities::algorithms)) stloc:DerObjectIdentifier(var_64_1DD, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::DsaWithSha512)) stloc:IDictionary(var_65_1E4, ldsfld:IDictionary(X509Utilities::algorithms)) stloc:DerObjectIdentifier(var_66_1EB, ldsfld:DerObjectIdentifier(X9ObjectIdentifiers::ECDsaWithSha1)) stloc:IDictionary(var_67_1F2, ldsfld:IDictionary(X509Utilities::algorithms)) stloc:DerObjectIdentifier(var_68_1F9, ldsfld:DerObjectIdentifier(X9ObjectIdentifiers::ECDsaWithSha1)) stloc:IDictionary(var_69_200, ldsfld:IDictionary(X509Utilities::algorithms)) stloc:DerObjectIdentifier(var_70_207, ldsfld:DerObjectIdentifier(X9ObjectIdentifiers::ECDsaWithSha224)) stloc:IDictionary(var_71_20E, ldsfld:IDictionary(X509Utilities::algorithms)) stloc:DerObjectIdentifier(var_72_215, ldsfld:DerObjectIdentifier(X9ObjectIdentifiers::ECDsaWithSha256)) stloc:IDictionary(var_73_21C, ldsfld:IDictionary(X509Utilities::algorithms)) stloc:DerObjectIdentifier(var_74_223, ldsfld:DerObjectIdentifier(X9ObjectIdentifiers::ECDsaWithSha384)) stloc:IDictionary(var_75_22A, ldsfld:IDictionary(X509Utilities::algorithms)) stloc:DerObjectIdentifier(var_76_231, ldsfld:DerObjectIdentifier(X9ObjectIdentifiers::ECDsaWithSha512)) stloc:IDictionary(var_77_238, ldsfld:IDictionary(X509Utilities::algorithms)) stloc:DerObjectIdentifier(var_78_23F, ldsfld:DerObjectIdentifier(CryptoProObjectIdentifiers::GostR3411x94WithGostR3410x94)) stloc:IDictionary(var_79_246, ldsfld:IDictionary(X509Utilities::algorithms)) stloc:DerObjectIdentifier(var_80_24D, ldsfld:DerObjectIdentifier(CryptoProObjectIdentifiers::GostR3411x94WithGostR3410x94)) stloc:IDictionary(var_81_254, ldsfld:IDictionary(X509Utilities::algorithms)) stloc:DerObjectIdentifier(var_82_25B, ldsfld:DerObjectIdentifier(CryptoProObjectIdentifiers::GostR3411x94WithGostR3410x2001)) stloc:IDictionary(var_83_262, ldsfld:IDictionary(X509Utilities::algorithms)) stloc:DerObjectIdentifier(var_84_269, ldsfld:DerObjectIdentifier(CryptoProObjectIdentifiers::GostR3411x94WithGostR3410x2001)) stloc:IDictionary(var_85_270, ldsfld:IDictionary(X509Utilities::algorithms)) stloc:DerObjectIdentifier(var_86_277, ldsfld:DerObjectIdentifier(CryptoProObjectIdentifiers::GostR3411x94WithGostR3410x2001)) stloc:ISet(var_87_27E, ldsfld:ISet(X509Utilities::noParams)) stloc:ISet(var_88_285, ldsfld:ISet(X509Utilities::noParams)) stloc:ISet(var_89_28C, ldsfld:ISet(X509Utilities::noParams)) stloc:ISet(var_90_293, ldsfld:ISet(X509Utilities::noParams)) stloc:ISet(var_91_29A, ldsfld:ISet(X509Utilities::noParams)) stloc:ISet(var_92_2A1, ldsfld:ISet(X509Utilities::noParams)) stloc:ISet(var_93_2A8, ldsfld:ISet(X509Utilities::noParams)) stloc:ISet(var_94_2AF, ldsfld:ISet(X509Utilities::noParams)) stloc:ISet(var_95_2B6, ldsfld:ISet(X509Utilities::noParams)) stloc:ISet(var_96_2BD, ldsfld:ISet(X509Utilities::noParams)) stloc:ISet(var_97_2C4, ldsfld:ISet(X509Utilities::noParams)) stloc:ISet(var_98_2CB, ldsfld:ISet(X509Utilities::noParams)) stloc:DerObjectIdentifier(var_99_2D2, ldsfld:DerObjectIdentifier(OiwObjectIdentifiers::IdSha1)) stloc:DerNull(var_100_2D9, ldsfld:DerNull(DerNull::Instance)) stloc:AlgorithmIdentifier(var_101_2E4, newobj:AlgorithmIdentifier(AlgorithmIdentifier::.ctor, ldloc:DerObjectIdentifier(var_99_2D2), ldloc:DerNull[exp:Asn1Encodable](var_100_2D9))) stloc:IDictionary(var_102_2EB, ldsfld:IDictionary(X509Utilities::exParams)) stloc:RsassaPssParameters(var_103_2F6, call:RsassaPssParameters(X509Utilities::CreatePssParams, ldloc:AlgorithmIdentifier(var_101_2E4), ldc.i4:int32(20))) stloc:DerObjectIdentifier(var_104_2FD, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::IdSha224)) stloc:DerNull(var_105_304, ldsfld:DerNull(DerNull::Instance)) stloc:AlgorithmIdentifier(var_106_30F, newobj:AlgorithmIdentifier(AlgorithmIdentifier::.ctor, ldloc:DerObjectIdentifier(var_104_2FD), ldloc:DerNull[exp:Asn1Encodable](var_105_304))) stloc:IDictionary(var_107_316, ldsfld:IDictionary(X509Utilities::exParams)) stloc:RsassaPssParameters(var_108_321, call:RsassaPssParameters(X509Utilities::CreatePssParams, ldloc:AlgorithmIdentifier(var_106_30F), ldc.i4:int32(28))) stloc:DerObjectIdentifier(var_109_328, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::IdSha256)) stloc:DerNull(var_110_32F, ldsfld:DerNull(DerNull::Instance)) stloc:AlgorithmIdentifier(var_111_33A, newobj:AlgorithmIdentifier(AlgorithmIdentifier::.ctor, ldloc:DerObjectIdentifier(var_109_328), ldloc:DerNull[exp:Asn1Encodable](var_110_32F))) stloc:IDictionary(var_112_341, ldsfld:IDictionary(X509Utilities::exParams)) stloc:RsassaPssParameters(var_113_34C, call:RsassaPssParameters(X509Utilities::CreatePssParams, ldloc:AlgorithmIdentifier(var_111_33A), ldc.i4:int32(32))) stloc:DerObjectIdentifier(var_114_353, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::IdSha384)) stloc:DerNull(var_115_35A, ldsfld:DerNull(DerNull::Instance)) stloc:AlgorithmIdentifier(var_116_365, newobj:AlgorithmIdentifier(AlgorithmIdentifier::.ctor, ldloc:DerObjectIdentifier(var_114_353), ldloc:DerNull[exp:Asn1Encodable](var_115_35A))) stloc:IDictionary(var_117_36C, ldsfld:IDictionary(X509Utilities::exParams)) stloc:RsassaPssParameters(var_118_377, call:RsassaPssParameters(X509Utilities::CreatePssParams, ldloc:AlgorithmIdentifier(var_116_365), ldc.i4:int32(48))) stloc:DerObjectIdentifier(var_119_37E, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::IdSha512)) stloc:DerNull(var_120_385, ldsfld:DerNull(DerNull::Instance)) stloc:AlgorithmIdentifier(var_121_390, newobj:AlgorithmIdentifier(AlgorithmIdentifier::.ctor, ldloc:DerObjectIdentifier(var_119_37E), ldloc:DerNull[exp:Asn1Encodable](var_120_385))) stloc:IDictionary(var_122_397, ldsfld:IDictionary(X509Utilities::exParams)) stloc:RsassaPssParameters(var_123_3A2, call:RsassaPssParameters(X509Utilities::CreatePssParams, ldloc:AlgorithmIdentifier(var_121_390), ldc.i4:int32(64))) } 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: 0x06009824 RID: 38948 RVA: 0x0021B528 File Offset: 0x00219728 [Token(Token = "0x6009824")] [Address(RVA = "0x1DE1550", Offset = "0x1DDFF50", VA = "0x181DE1550")] 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: 0x06009825 RID: 38949 RVA: 0x0021B5C0 File Offset: 0x002197C0 [Token(Token = "0x6009825")] [Address(RVA = "0x1DE1BE0", Offset = "0x1DE05E0", VA = "0x181DE1BE0")] internal static string GetSignatureName(AlgorithmIdentifier sigAlgId) { DerObjectIdentifier objectID = sigAlgId.ObjectID; if (objectID != 0) { Asn1Null asn1Null = X509Utilities.derNull; Asn1Object asn1Object = sigAlgId.ToAsn1Object(); Asn1Object asn1Object2 = sigAlgId.ToAsn1Object(); Asn1SequenceParser parser = Asn1Sequence.GetInstance(objectID).Parser; string text; return text + "withECDSA"; } Asn1Object asn1Object3 = sigAlgId.ToAsn1Object(); throw new NullReferenceException(); } // Token: 0x06009826 RID: 38950 RVA: 0x0021B628 File Offset: 0x00219828 [Token(Token = "0x6009826")] [Address(RVA = "0x1DE1200", Offset = "0x1DDFC00", VA = "0x181DE1200")] 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: 0x06009827 RID: 38951 RVA: 0x0021B658 File Offset: 0x00219858 [Token(Token = "0x6009827")] [Address(RVA = "0x1DE13D0", Offset = "0x1DDFDD0", VA = "0x181DE13D0")] internal static DerObjectIdentifier GetAlgorithmOid(string algorithmName) { string text = Platform.ToUpperInvariant(algorithmName); IDictionary dictionary = X509Utilities.algorithms; if (text == 0) { return new DerObjectIdentifier(text); } IDictionary dictionary2 = X509Utilities.algorithms; Asn1Null asn1Null = X509Utilities.derNull; throw new NullReferenceException(); } // Token: 0x06009828 RID: 38952 RVA: 0x0021B694 File Offset: 0x00219894 [Token(Token = "0x6009828")] [Address(RVA = "0x1DE1970", Offset = "0x1DE0370", VA = "0x181DE1970")] internal static AlgorithmIdentifier GetSigAlgID(DerObjectIdentifier sigOid, string algorithmName) { ISet set = X509Utilities.noParams; string text = Platform.ToUpperInvariant(algorithmName); IDictionary dictionary = X509Utilities.exParams; if (text == 0) { DerNull instance = DerNull.Instance; return new AlgorithmIdentifier(sigOid, instance); } IDictionary dictionary2 = X509Utilities.exParams; AlgorithmIdentifier algorithmIdentifier = new AlgorithmIdentifier(sigOid); Asn1Null asn1Null = X509Utilities.derNull; return new AlgorithmIdentifier(sigOid); } // Token: 0x06009829 RID: 38953 RVA: 0x0021B6EC File Offset: 0x002198EC [Token(Token = "0x6009829")] [Address(RVA = "0x1DE1320", Offset = "0x1DDFD20", VA = "0x181DE1320")] internal static IEnumerable GetAlgNames() { IDictionary dictionary = X509Utilities.algorithms; throw new NullReferenceException(); } // Token: 0x0600982A RID: 38954 RVA: 0x0021B704 File Offset: 0x00219904 [Token(Token = "0x600982A")] [Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")] public X509Utilities() { } // Token: 0x040063FC RID: 25596 [Token(Token = "0x40063FC")] private static readonly Asn1Null derNull; // Token: 0x040063FD RID: 25597 [Token(Token = "0x40063FD")] private static readonly IDictionary algorithms; // Token: 0x040063FE RID: 25598 [Token(Token = "0x40063FE")] private static readonly IDictionary exParams; // Token: 0x040063FF RID: 25599 [Token(Token = "0x40063FF")] private static readonly ISet noParams; } }