4 types derived from ECDsa
System.Security.Cryptography (4)
src\libraries\Common\src\System\Security\Cryptography\ECDsaOpenSsl.cs (1)
13public sealed partial class ECDsaOpenSsl : ECDsa, IRuntimeAlgorithm
System\Security\Cryptography\Cng.NotSupported.cs (1)
292public sealed partial class ECDsaCng : ECDsa
System\Security\Cryptography\ECDsaOpenSsl.cs (1)
10public sealed partial class ECDsaOpenSsl : ECDsa
System\Security\Cryptography\ECDsaWrapper.cs (1)
10internal sealed partial class ECDsaWrapper : ECDsa
74 references to ECDsa
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\Certificates\CertificateConfigLoader.cs (2)
119using 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)
495using (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)
243this ECDsa ecdsa,
System\Security\Cryptography\CryptoConfig.cs (1)
416return ECDsa.Create();
System\Security\Cryptography\ECDsa.Create.OpenSsl.cs (3)
11public static new partial ECDsa Create() 22public static partial ECDsa Create(ECCurve curve) 33public static partial ECDsa Create(ECParameters parameters)
System\Security\Cryptography\ECDsa.cs (5)
24public static new partial ECDsa Create(); 27public static partial ECDsa Create(ECCurve curve); 30public static partial ECDsa Create(ECParameters parameters); 34public static new ECDsa? Create(string algorithm) 38return CryptoConfig.CreateFromName(algorithm) as ECDsa;
System\Security\Cryptography\ECDsaWrapper.cs (2)
12private readonly ECDsa _wrapped; 14internal ECDsaWrapper(ECDsa wrapped)
System\Security\Cryptography\X509Certificates\CertificateExtensionsCommon.cs (3)
33else if (typeof(T) == typeof(ECDsa)) 63if (typeof(T) == typeof(ECDsa)) 80if (typeof(T) == typeof(ECDsa) || typeof(T) == typeof(ECDiffieHellman))
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (5)
71public CertificateRequest(string subjectName, ECDsa key, HashAlgorithmName hashAlgorithm) 98public CertificateRequest(X500DistinguishedName subjectName, ECDsa key, HashAlgorithmName hashAlgorithm) 522ECDsa? ecdsa = _key as ECDsa; 715ECDsa? ecdsa = issuerCertificate.GetECDsaPrivateKey();
System\Security\Cryptography\X509Certificates\CertificateRequest.Load.cs (1)
296ECDsa? ecdsa = publicKey.GetECDsaPublicKey();
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Build.cs (1)
195ECDsa? 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. 17public static ECDsa? GetECDsaPublicKey(this X509Certificate2 certificate) 19return 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. 25public static ECDsa? GetECDsaPrivateKey(this X509Certificate2 certificate) 27return certificate.GetPrivateKey<ECDsa>(HasECDsaKeyUsage); 30public static X509Certificate2 CopyWithPrivateKey(this X509Certificate2 certificate, ECDsa privateKey) 38using (ECDsa? publicKey = GetECDsaPublicKey(certificate))
System\Security\Cryptography\X509Certificates\ECDsaX509SignatureGenerator.cs (2)
12private readonly ECDsa _key; 14internal ECDsaX509SignatureGenerator(ECDsa key)
System\Security\Cryptography\X509Certificates\ICertificatePal.cs (2)
32ECDsa? GetECDsaPrivateKey(); 37ICertificatePal CopyWithPrivateKey(ECDsa privateKey);
System\Security\Cryptography\X509Certificates\IX509Pal.cs (1)
9ECDsa DecodeECDsaPublicKey(ICertificatePal? certificatePal);
System\Security\Cryptography\X509Certificates\OpenSslX509CertificateReader.cs (3)
571public ECDsa GetECDsaPublicKey() 591public ECDsa? GetECDsaPrivateKey() 640public ICertificatePal CopyWithPrivateKey(ECDsa privateKey)
System\Security\Cryptography\X509Certificates\OpenSslX509Encoder.cs (1)
14public 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. 226public ECDsa? GetECDsaPublicKey() 231ECDsa ecdsa = ECDsa.Create();
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (5)
956ExtractKeyFromPem<ECDsa>( 959ECDsa.Create, 1027ExtractKeyFromEncryptedPem<ECDsa>( 1030ECDsa.Create, 1045using (ECDsa? ecdsa = certificate.GetECDsaPublicKey())
System\Security\Cryptography\X509Certificates\X509SignatureGenerator.cs (1)
16public 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)
114return SignHashWithECDsa((ECDsa)key, hasher, destination); 124private static int SignHashWithECDsa(ECDsa key, IncrementalHash hasher, Span<byte> destination) 269_ => throw new CryptographicException(SR.Format(SR.Sign1AlgDoesNotMatchWithTheOnesSupportedByTypeOfKey, algorithm, typeof(ECDsa))) 302ECDsa => KeyType.ECDsa,
System\Security\Cryptography\Cose\CoseSign1Message.cs (2)
752var ecdsa = (ECDsa)key;
System\Security\Cryptography\Cose\CoseSignature.cs (2)
462var ecdsa = (ECDsa)key;
System.Security.Cryptography.Pkcs (6)
Internal\Cryptography\Pal\AnyOS\ManagedPal.cs (1)
81if (typeof(T) == typeof(ECDsa))
System\Security\Cryptography\Pkcs\CmsSignature.ECDsa.cs (5)
43return (key as ECDsa) != null; 68ECDsa? key = certificate.GetECDsaPublicKey(); 123ECDsa? key = certKey as ECDsa ?? 124PkcsPal.Instance.GetPrivateKeyForSigning<ECDsa>(certificate, silent) ??
WebTransportInteractiveSampleApp (2)
Program.cs (2)
182using var ec = ECDsa.Create(ECCurve.NamedCurves.nistP256);
WebTransportSampleApp (2)
Program.cs (2)
68using var ec = ECDsa.Create(ECCurve.NamedCurves.nistP256);