5 types derived from DSA
System.Security.Cryptography (5)
src\libraries\Common\src\System\Security\Cryptography\DSAOpenSsl.cs (1)
13
public sealed partial class DSAOpenSsl :
DSA
, IRuntimeAlgorithm
System\Security\Cryptography\Cng.NotSupported.cs (1)
197
public sealed partial class DSACng :
DSA
System\Security\Cryptography\DSACryptoServiceProvider.Unix.cs (1)
11
public sealed class DSACryptoServiceProvider :
DSA
, ICspAsymmetricAlgorithm
System\Security\Cryptography\DSAOpenSsl.cs (1)
9
public sealed partial class DSAOpenSsl :
DSA
System\Security\Cryptography\DSAWrapper.cs (1)
10
internal sealed class DSAWrapper :
DSA
61 references to DSA
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\Certificates\CertificateConfigLoader.cs (2)
133
using
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)
491
using (
DSA
dsa = x509Certificate2.GetDSAPrivateKey())
System.Security.Cryptography (43)
System\Security\Cryptography\AsymmetricAlgorithmHelpers.Der.cs (1)
215
this
DSA
dsa,
System\Security\Cryptography\DSA.cs (6)
32
public static new
DSA
? Create(string algName)
34
return (
DSA
?)CryptoConfig.CreateFromName(algName);
40
public static new
DSA
Create()
48
public static
DSA
Create(int keySizeInBits)
50
DSA
dsa = CreateCore();
67
public static
DSA
Create(DSAParameters parameters)
System\Security\Cryptography\DSA.Xml.cs (2)
23
SR.Format(SR.Cryptography_InvalidFromXmlString, nameof(
DSA
), name));
70
nameof(
DSA
),
System\Security\Cryptography\DSACryptoServiceProvider.Unix.cs (2)
16
private readonly
DSA
_impl;
53
_impl =
DSA
.Create();
System\Security\Cryptography\DSASignatureDeformatter.cs (3)
8
private
DSA
? _dsaKey;
16
_dsaKey = (
DSA
)key;
23
_dsaKey = (
DSA
)key;
System\Security\Cryptography\DSASignatureFormatter.cs (3)
8
private
DSA
? _dsaKey;
16
_dsaKey = (
DSA
)key;
23
_dsaKey = (
DSA
)key;
System\Security\Cryptography\DSAWrapper.cs (2)
12
private readonly
DSA
_wrapped;
14
internal DSAWrapper(
DSA
wrapped)
System\Security\Cryptography\X509Certificates\CertificateExtensionsCommon.cs (3)
27
if (typeof(T) == typeof(RSA) || typeof(T) == typeof(
DSA
))
66
if (typeof(T) == typeof(
DSA
))
83
if (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.
20
public static
DSA
? GetDSAPublicKey(this X509Certificate2 certificate)
22
return 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.
28
public static
DSA
? GetDSAPrivateKey(this X509Certificate2 certificate)
30
return certificate.GetPrivateKey<
DSA
>();
33
public static X509Certificate2 CopyWithPrivateKey(this X509Certificate2 certificate,
DSA
privateKey)
41
using (
DSA
? publicKey = GetDSAPublicKey(certificate))
System\Security\Cryptography\X509Certificates\ICertificatePal.cs (2)
31
DSA
? GetDSAPrivateKey();
36
ICertificatePal CopyWithPrivateKey(
DSA
privateKey);
System\Security\Cryptography\X509Certificates\OpenSslX509CertificateReader.cs (2)
561
public
DSA
? GetDSAPrivateKey()
622
public 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.
197
public
DSA
? GetDSAPublicKey()
202
DSA
dsa =
DSA
.Create();
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (4)
954
Oids.Dsa when Helpers.IsDSASupported => ExtractKeyFromPem<
DSA
>(keyPem, s_DsaPublicKeyPrivateKeyLabels,
DSA
.Create, certificate.CopyWithPrivateKey),
1025
Oids.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)
84
if (typeof(T) == typeof(
DSA
) && Internal.Cryptography.Helpers.IsDSASupported)
System\Security\Cryptography\Pkcs\CmsSignature.DSA.cs (5)
42
return (key as
DSA
) != null;
69
DSA
? dsa = certificate.GetDSAPublicKey();
121
DSA
? dsa = key as
DSA
??
122
PkcsPal.Instance.GetPrivateKeyForSigning<
DSA
>(certificate, silent) ??
System.Security.Cryptography.Xml (6)
System\Security\Cryptography\Xml\DSAKeyValue.cs (4)
13
private
DSA
_key;
23
_key =
DSA
.Create();
26
public DSAKeyValue(
DSA
key)
40
public
DSA
Key
System\Security\Cryptography\Xml\DSASignatureDescription.cs (1)
14
KeyAlgorithm = typeof(
DSA
).AssemblyQualifiedName;
System\Security\Cryptography\Xml\SignedXml.cs (1)
405
if (key is
DSA
)