diff --git a/src/Tasks/ManifestUtil/CngLightup.cs b/src/Tasks/ManifestUtil/CngLightup.cs index 54c02703f4f..e2d10bf4c34 100644 --- a/src/Tasks/ManifestUtil/CngLightup.cs +++ b/src/Tasks/ManifestUtil/CngLightup.cs @@ -29,7 +29,6 @@ namespace System.Security.Cryptography { internal static partial class CngLightup { - private const string DsaOid = "1.2.840.10040.4.1"; private const string RsaOid = "1.2.840.113549.1.1.1"; private const string HashAlgorithmNameTypeName = "System.Security.Cryptography.HashAlgorithmName"; @@ -60,9 +59,6 @@ internal static partial class CngLightup private static readonly Lazy s_preferRsaCng = new Lazy(DetectRsaCngSupport); - private static volatile Func s_getDsaPublicKey; - private static volatile Func s_getDsaPrivateKey; - private static volatile Func s_getRsaPublicKey; private static volatile Func s_getRsaPrivateKey; private static volatile Func s_rsaPkcs1SignMethod; @@ -115,30 +111,6 @@ internal static RSA GetRSAPrivateKey(X509Certificate2 cert) return s_getRsaPrivateKey(cert); } - internal static DSA GetDSAPublicKey(X509Certificate2 cert) - { - if (s_getDsaPublicKey == null) - { - s_getDsaPublicKey = - BindCoreDelegate("DSA", isPublic: true) ?? - BindGetCapiPublicKey(DsaOid); - } - - return s_getDsaPublicKey(cert); - } - - internal static DSA GetDSAPrivateKey(X509Certificate2 cert) - { - if (s_getDsaPrivateKey == null) - { - s_getDsaPrivateKey = - BindCoreDelegate("DSA", isPublic: false) ?? - BindGetCapiPrivateKey(DsaOid, csp => new DSACryptoServiceProvider(csp)); - } - - return s_getDsaPrivateKey(cert); - } - #if !CNG_LIGHTUP_NO_SYSTEM_CORE internal static ECDsa GetECDsaPublicKey(X509Certificate2 cert) {