4 types derived from ECDsa
System.Security.Cryptography (4)
src\libraries\Common\src\System\Security\Cryptography\ECDsaOpenSsl.cs (1)
13
public sealed partial class ECDsaOpenSsl :
ECDsa
, IRuntimeAlgorithm
System\Security\Cryptography\Cng.NotSupported.cs (1)
292
public sealed partial class ECDsaCng :
ECDsa
System\Security\Cryptography\ECDsaOpenSsl.cs (1)
10
public sealed partial class ECDsaOpenSsl :
ECDsa
System\Security\Cryptography\ECDsaWrapper.cs (1)
10
internal sealed partial class ECDsaWrapper :
ECDsa
74 references to ECDsa
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\Certificates\CertificateConfigLoader.cs (2)
119
using
var
ecdsa =
ECDsa
.Create();
netstandard (1)
netstandard.cs (1)
1874
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.
ECDsa
))]
PresentationUI (1)
MS\Internal\Documents\DocumentSignatureManager.cs (1)
491
using (
ECDsa
ecdsa = x509Certificate2.GetECDsaPrivateKey())
System.Core (1)
System.Core.cs (1)
223
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.
ECDsa
))]
System.Security.Cryptography (50)
System\Security\Cryptography\AsymmetricAlgorithmHelpers.Der.cs (1)
243
this
ECDsa
ecdsa,
System\Security\Cryptography\CryptoConfig.cs (1)
416
return
ECDsa
.Create();
System\Security\Cryptography\ECDsa.Create.OpenSsl.cs (3)
11
public static new partial
ECDsa
Create()
22
public static partial
ECDsa
Create(ECCurve curve)
33
public static partial
ECDsa
Create(ECParameters parameters)
System\Security\Cryptography\ECDsa.cs (5)
24
public static new partial
ECDsa
Create();
27
public static partial
ECDsa
Create(ECCurve curve);
30
public static partial
ECDsa
Create(ECParameters parameters);
34
public static new
ECDsa
? Create(string algorithm)
38
return CryptoConfig.CreateFromName(algorithm) as
ECDsa
;
System\Security\Cryptography\ECDsaWrapper.cs (2)
12
private readonly
ECDsa
_wrapped;
14
internal ECDsaWrapper(
ECDsa
wrapped)
System\Security\Cryptography\X509Certificates\CertificateExtensionsCommon.cs (3)
33
else if (typeof(T) == typeof(
ECDsa
))
63
if (typeof(T) == typeof(
ECDsa
))
80
if (typeof(T) == typeof(
ECDsa
) || typeof(T) == typeof(ECDiffieHellman))
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (5)
71
public CertificateRequest(string subjectName,
ECDsa
key, HashAlgorithmName hashAlgorithm)
98
public CertificateRequest(X500DistinguishedName subjectName,
ECDsa
key, HashAlgorithmName hashAlgorithm)
522
ECDsa
? ecdsa = _key as
ECDsa
;
715
ECDsa
? ecdsa = issuerCertificate.GetECDsaPrivateKey();
System\Security\Cryptography\X509Certificates\CertificateRequest.Load.cs (1)
296
ECDsa
? ecdsa = publicKey.GetECDsaPublicKey();
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Build.cs (1)
195
ECDsa
? ecdsa = issuerCertificate.GetECDsaPrivateKey();
System\Security\Cryptography\X509Certificates\ECDsaCertificateExtensions.cs (9)
9
/// Provides extension methods for retrieving <see cref="
ECDsa
" /> implementations for the
15
/// Gets the <see cref="
ECDsa
" /> public key from the certificate or null if the certificate does not have an ECDsa public key.
17
public static
ECDsa
? GetECDsaPublicKey(this X509Certificate2 certificate)
19
return certificate.GetPublicKey<
ECDsa
>(HasECDsaKeyUsage);
23
/// Gets the <see cref="
ECDsa
" /> private key from the certificate or null if the certificate does not have an ECDsa private key.
25
public static
ECDsa
? GetECDsaPrivateKey(this X509Certificate2 certificate)
27
return certificate.GetPrivateKey<
ECDsa
>(HasECDsaKeyUsage);
30
public static X509Certificate2 CopyWithPrivateKey(this X509Certificate2 certificate,
ECDsa
privateKey)
38
using (
ECDsa
? publicKey = GetECDsaPublicKey(certificate))
System\Security\Cryptography\X509Certificates\ECDsaX509SignatureGenerator.cs (2)
12
private readonly
ECDsa
_key;
14
internal ECDsaX509SignatureGenerator(
ECDsa
key)
System\Security\Cryptography\X509Certificates\ICertificatePal.cs (2)
32
ECDsa
? GetECDsaPrivateKey();
37
ICertificatePal CopyWithPrivateKey(
ECDsa
privateKey);
System\Security\Cryptography\X509Certificates\IX509Pal.cs (1)
9
ECDsa
DecodeECDsaPublicKey(ICertificatePal? certificatePal);
System\Security\Cryptography\X509Certificates\OpenSslX509CertificateReader.cs (3)
571
public
ECDsa
GetECDsaPublicKey()
591
public
ECDsa
? GetECDsaPrivateKey()
640
public ICertificatePal CopyWithPrivateKey(
ECDsa
privateKey)
System\Security\Cryptography\X509Certificates\OpenSslX509Encoder.cs (1)
14
public
ECDsa
DecodeECDsaPublicKey(ICertificatePal? certificatePal)
System\Security\Cryptography\X509Certificates\PublicKey.cs (4)
217
/// Gets the <see cref="
ECDsa
" /> public key, or <see langword="null" /> if the key is not an ECDsa key.
226
public
ECDsa
? GetECDsaPublicKey()
231
ECDsa
ecdsa =
ECDsa
.Create();
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (5)
956
ExtractKeyFromPem<
ECDsa
>(
959
ECDsa
.Create,
1027
ExtractKeyFromEncryptedPem<
ECDsa
>(
1030
ECDsa
.Create,
1045
using (
ECDsa
? ecdsa = certificate.GetECDsaPublicKey())
System\Security\Cryptography\X509Certificates\X509SignatureGenerator.cs (1)
16
public static X509SignatureGenerator CreateForECDsa(
ECDsa
key)
System.Security.Cryptography.Algorithms (1)
System.Security.Cryptography.Algorithms.cs (1)
24
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.
ECDsa
))]
System.Security.Cryptography.Cose (8)
System\Security\Cryptography\Cose\CoseHelpers.cs (4)
114
return SignHashWithECDsa((
ECDsa
)key, hasher, destination);
124
private static int SignHashWithECDsa(
ECDsa
key, IncrementalHash hasher, Span<byte> destination)
269
_ => throw new CryptographicException(SR.Format(SR.Sign1AlgDoesNotMatchWithTheOnesSupportedByTypeOfKey, algorithm, typeof(
ECDsa
)))
302
ECDsa
=> KeyType.ECDsa,
System\Security\Cryptography\Cose\CoseSign1Message.cs (2)
752
var
ecdsa = (
ECDsa
)key;
System\Security\Cryptography\Cose\CoseSignature.cs (2)
462
var
ecdsa = (
ECDsa
)key;
System.Security.Cryptography.Pkcs (6)
Internal\Cryptography\Pal\AnyOS\ManagedPal.cs (1)
81
if (typeof(T) == typeof(
ECDsa
))
System\Security\Cryptography\Pkcs\CmsSignature.ECDsa.cs (5)
43
return (key as
ECDsa
) != null;
68
ECDsa
? key = certificate.GetECDsaPublicKey();
123
ECDsa
? key = certKey as
ECDsa
??
124
PkcsPal.Instance.GetPrivateKeyForSigning<
ECDsa
>(certificate, silent) ??
WebTransportInteractiveSampleApp (2)
Program.cs (2)
182
using
var
ec =
ECDsa
.Create(ECCurve.NamedCurves.nistP256);
WebTransportSampleApp (2)
Program.cs (2)
68
using
var
ec =
ECDsa
.Create(ECCurve.NamedCurves.nistP256);