5 types derived from DSA
System.Security.Cryptography (5)
src\libraries\Common\src\System\Security\Cryptography\DSAOpenSsl.cs (1)
13public sealed partial class DSAOpenSsl : DSA, IRuntimeAlgorithm
System\Security\Cryptography\Cng.NotSupported.cs (1)
197public sealed partial class DSACng : DSA
System\Security\Cryptography\DSACryptoServiceProvider.Unix.cs (1)
11public sealed class DSACryptoServiceProvider : DSA, ICspAsymmetricAlgorithm
System\Security\Cryptography\DSAOpenSsl.cs (1)
9public sealed partial class DSAOpenSsl : DSA
System\Security\Cryptography\DSAWrapper.cs (1)
10internal sealed class DSAWrapper : DSA
61 references to DSA
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\Certificates\CertificateConfigLoader.cs (2)
133using var dsa = DSA.Create();
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
875[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.DSA))]
netstandard (1)
netstandard.cs (1)
1866[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.DSA))]
PresentationUI (1)
MS\Internal\Documents\DocumentSignatureManager.cs (1)
491using (DSA dsa = x509Certificate2.GetDSAPrivateKey())
System.Security.Cryptography (43)
System\Security\Cryptography\AsymmetricAlgorithmHelpers.Der.cs (1)
215this DSA dsa,
System\Security\Cryptography\DSA.cs (6)
32public static new DSA? Create(string algName) 34return (DSA?)CryptoConfig.CreateFromName(algName); 40public static new DSA Create() 48public static DSA Create(int keySizeInBits) 50DSA dsa = CreateCore(); 67public static DSA Create(DSAParameters parameters)
System\Security\Cryptography\DSA.Xml.cs (2)
23SR.Format(SR.Cryptography_InvalidFromXmlString, nameof(DSA), name)); 70nameof(DSA),
System\Security\Cryptography\DSACryptoServiceProvider.Unix.cs (2)
16private readonly DSA _impl; 53_impl = DSA.Create();
System\Security\Cryptography\DSASignatureDeformatter.cs (3)
8private DSA? _dsaKey; 16_dsaKey = (DSA)key; 23_dsaKey = (DSA)key;
System\Security\Cryptography\DSASignatureFormatter.cs (3)
8private DSA? _dsaKey; 16_dsaKey = (DSA)key; 23_dsaKey = (DSA)key;
System\Security\Cryptography\DSAWrapper.cs (2)
12private readonly DSA _wrapped; 14internal DSAWrapper(DSA wrapped)
System\Security\Cryptography\X509Certificates\CertificateExtensionsCommon.cs (3)
27if (typeof(T) == typeof(RSA) || typeof(T) == typeof(DSA)) 66if (typeof(T) == typeof(DSA)) 83if (typeof(T) == typeof(DSA))
System\Security\Cryptography\X509Certificates\DSACertificateExtensions.cs (9)
10/// Provides extension methods for retrieving <see cref="DSA" /> implementations for the 18/// Gets the <see cref="DSA" /> public key from the certificate or null if the certificate does not have a DSA public key. 20public static DSA? GetDSAPublicKey(this X509Certificate2 certificate) 22return certificate.GetPublicKey<DSA>(); 26/// Gets the <see cref="DSA" /> private key from the certificate or null if the certificate does not have a DSA private key. 28public static DSA? GetDSAPrivateKey(this X509Certificate2 certificate) 30return certificate.GetPrivateKey<DSA>(); 33public static X509Certificate2 CopyWithPrivateKey(this X509Certificate2 certificate, DSA privateKey) 41using (DSA? publicKey = GetDSAPublicKey(certificate))
System\Security\Cryptography\X509Certificates\ICertificatePal.cs (2)
31DSA? GetDSAPrivateKey(); 36ICertificatePal CopyWithPrivateKey(DSA privateKey);
System\Security\Cryptography\X509Certificates\OpenSslX509CertificateReader.cs (2)
561public DSA? GetDSAPrivateKey() 622public ICertificatePal CopyWithPrivateKey(DSA privateKey)
System\Security\Cryptography\X509Certificates\PublicKey.cs (4)
186/// Gets the <see cref="DSA" /> public key, or <see langword="null" /> if the key is not an DSA key. 197public DSA? GetDSAPublicKey() 202DSA dsa = DSA.Create();
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (4)
954Oids.Dsa when Helpers.IsDSASupported => ExtractKeyFromPem<DSA>(keyPem, s_DsaPublicKeyPrivateKeyLabels, DSA.Create, certificate.CopyWithPrivateKey), 1025Oids.Dsa when Helpers.IsDSASupported => ExtractKeyFromEncryptedPem<DSA>(keyPem, password, DSA.Create, certificate.CopyWithPrivateKey),
System.Security.Cryptography.Algorithms (1)
System.Security.Cryptography.Algorithms.cs (1)
15[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.DSA))]
System.Security.Cryptography.Pkcs (6)
Internal\Cryptography\Pal\AnyOS\ManagedPal.cs (1)
84if (typeof(T) == typeof(DSA) && Internal.Cryptography.Helpers.IsDSASupported)
System\Security\Cryptography\Pkcs\CmsSignature.DSA.cs (5)
42return (key as DSA) != null; 69DSA? dsa = certificate.GetDSAPublicKey(); 121DSA? dsa = key as DSA ?? 122PkcsPal.Instance.GetPrivateKeyForSigning<DSA>(certificate, silent) ??
System.Security.Cryptography.Xml (6)
System\Security\Cryptography\Xml\DSAKeyValue.cs (4)
13private DSA _key; 23_key = DSA.Create(); 26public DSAKeyValue(DSA key) 40public DSA Key
System\Security\Cryptography\Xml\DSASignatureDescription.cs (1)
14KeyAlgorithm = typeof(DSA).AssemblyQualifiedName;
System\Security\Cryptography\Xml\SignedXml.cs (1)
405if (key is DSA)