using System; 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 Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.X509 { // Token: 0x020019EA RID: 6634 [Token(Token = "0x20019EA")] internal class X509SignatureUtilities { // Token: 0x06009AE4 RID: 39652 RVA: 0x001FB00C File Offset: 0x001F920C [Token(Token = "0x6009AE4")] [Address(RVA = "0x41FFF0", Offset = "0x41EFF0", VA = "0x18041FFF0")] internal static void SetSignatureParameters(ISigner signature, Asn1Encodable parameters) { if (parameters != 0) { return; } } // Token: 0x06009AE5 RID: 39653 RVA: 0x001FB024 File Offset: 0x001F9224 [Token(Token = "0x6009AE5")] [Address(RVA = "0x41FD30", Offset = "0x41ED30", VA = "0x18041FD30")] internal static string GetSignatureName(AlgorithmIdentifier sigAlgId) { DerObjectIdentifier objectID = sigAlgId.ObjectID; if (objectID != 0) { 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: 0x06009AE6 RID: 39654 RVA: 0x001FB084 File Offset: 0x001F9284 [Token(Token = "0x6009AE6")] [Address(RVA = "0x41F910", Offset = "0x41E910", VA = "0x18041F910")] 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: 0x06009AE7 RID: 39655 RVA: 0x001FB11C File Offset: 0x001F931C [Token(Token = "0x6009AE7")] [Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")] public X509SignatureUtilities() { } // Token: 0x06009AE8 RID: 39656 RVA: 0x001FB130 File Offset: 0x001F9330 // Note: this type is marked as 'beforefieldinit'. [Token(Token = "0x6009AE8")] [Address(RVA = "0x420080", Offset = "0x41F080", VA = "0x180420080")] static X509SignatureUtilities() { DerNull instance = DerNull.Instance; } // Token: 0x0400685D RID: 26717 [Token(Token = "0x400685D")] private static readonly Asn1Null derNull; } }