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)
298public 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
85 references to ECDsa
Microsoft.AspNetCore.Identity (3)
Passkeys\CredentialPublicKey.cs (3)
15private readonly ECDsa? _ecdsa; 149private static ECDsa ParseECDsa(COSEKeyType kty, Ctap2CborReader reader) 174return ECDsa.Create(ecParams);
Microsoft.AspNetCore.Identity.Test (5)
Passkeys\CredentialKeyPair.cs (5)
14private readonly ECDsa? _ecdsa; 26private CredentialKeyPair(ECDsa ecdsa, COSEAlgorithmIdentifier alg, COSEEllipticCurve curve) 98var ecdsa = ECDsa.Create(curve); 133private static byte[] EncodeCoseEcPublicKey(ECDsa ecdsa, COSEAlgorithmIdentifier alg, COSEEllipticCurve curve)
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\Certificates\CertificateConfigLoader.cs (2)
156using var ecdsa = ECDsa.Create();
Microsoft.AspNetCore.Server.Kestrel.Tests (2)
KestrelConfigurationLoaderTests.cs (2)
874using (var ecdsa = ECDsa.Create(ECCurve.NamedCurves.nistP256))
netstandard (1)
netstandard.cs (1)
1874[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.ECDsa))]
PresentationUI (1)
MS\Internal\Documents\DocumentSignatureManager.cs (1)
482using (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 (54)
src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaManaged.ECDsa.cs (5)
30private ECDsa _ecdsa; 37ECDsa ecdsa, 58return new ECDsaComponent(ECDsa.Create(algorithm.Curve), algorithm); 118return new ECDsaComponent(ECDsa.Create(parameters), algorithm); 183return new ECDsaComponent(ECDsa.Create(parameters), algorithm);
System\Security\Cryptography\AsymmetricAlgorithmHelpers.Der.cs (1)
82this ECDsa ecdsa,
System\Security\Cryptography\CryptoConfig.cs (1)
421return 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 (4)
72public CertificateRequest(string subjectName, ECDsa key, HashAlgorithmName hashAlgorithm) 99public CertificateRequest(X500DistinguishedName subjectName, ECDsa key, HashAlgorithmName hashAlgorithm) 702case ECDsa ecdsa: 910ECDsa? ecdsa = issuerCertificate.GetECDsaPrivateKey();
System\Security\Cryptography\X509Certificates\CertificateRequest.Load.cs (1)
301ECDsa? ecdsa = publicKey.GetECDsaPublicKey();
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Build.cs (1)
197ECDsa? 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(); 40ICertificatePal 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() 670public ICertificatePal CopyWithPrivateKey(ECDsa privateKey)
System\Security\Cryptography\X509Certificates\OpenSslX509Encoder.cs (1)
15public ECDsa DecodeECDsaPublicKey(ICertificatePal? certificatePal)
System\Security\Cryptography\X509Certificates\PublicKey.cs (4)
290/// Gets the <see cref="ECDsa" /> public key, or <see langword="null" /> if the key is not an ECDsa key. 299public ECDsa? GetECDsaPublicKey() 304ECDsa ecdsa = ECDsa.Create();
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (5)
1388ExtractKeyFromPem<ECDsa>( 1391static keyPem => CreateAndImport(keyPem, ECDsa.Create), 1487ExtractKeyFromEncryptedPem<ECDsa>( 1490static (keyPem, password) => CreateAndImportEncrypted(keyPem, password, ECDsa.Create), 1517using (ECDsa? ecdsa = certificate.GetECDsaPublicKey())
System\Security\Cryptography\X509Certificates\X509SignatureGenerator.cs (1)
18public 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 (6)
System\Security\Cryptography\Cose\CoseKey.cs (4)
25private ECDsa? _ecdsaKey; 45public CoseKey(ECDsa key, HashAlgorithmName hashAlgorithm) 71if (key is ECDsa ecdsaKey) 215private static int SignHashWithECDsa(ECDsa key, ReadOnlySpan<byte> hash, Span<byte> destination)
System\Security\Cryptography\Cose\CoseSigner.cs (2)
78if (key is not ECDsa) 81CoseKey = new CoseKey((ECDsa)key, hashAlgorithm);
System.Security.Cryptography.Pkcs (5)
Internal\Cryptography\Pal\AnyOS\ManagedPal.cs (1)
81if (typeof(T) == typeof(ECDsa))
System\Security\Cryptography\Pkcs\CmsSignature.ECDsa.cs (4)
41protected override bool VerifyKeyType(object key) => key is ECDsa; 67ECDsa? key = certificate.GetECDsaPublicKey(); 124using (GetSigningKey(privateKey, certificate, silent, ECDsaCertificateExtensions.GetECDsaPublicKey, out ECDsa? key)) 177using (ECDsa certKey = certificate.GetECDsaPublicKey()!)
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);