5 types derived from SlhDsa
System.Security.Cryptography (5)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\SlhDsaCng.cs (1)
25public sealed partial class SlhDsaCng : SlhDsa
src\runtime\src\libraries\Common\src\System\Security\Cryptography\SlhDsaImplementation.cs (1)
10internal sealed partial class SlhDsaImplementation : SlhDsa
src\runtime\src\libraries\Common\src\System\Security\Cryptography\SlhDsaImplementation.Windows.cs (1)
9internal sealed partial class SlhDsaImplementation : SlhDsa
System\Security\Cryptography\SlhDsaOpenSsl.cs (1)
24public sealed partial class SlhDsaOpenSsl : SlhDsa
System\Security\Cryptography\SlhDsaOpenSsl.NotSupported.cs (1)
8public sealed partial class SlhDsaOpenSsl : SlhDsa
84 references to SlhDsa
Microsoft.AspNetCore.Server.Kestrel.Core (4)
Internal\Certificates\CertificateConfigLoader.cs (4)
211using var slhDsa = ImportSlhDsaKeyFromFile(keyText, password); 299private static SlhDsa ImportSlhDsaKeyFromFile(string keyText, string? password) 303return SlhDsa.ImportFromPem(keyText); 307return SlhDsa.ImportFromEncryptedPem(keyText, password);
Microsoft.Bcl.Cryptography (6)
Microsoft.Bcl.Cryptography.Forwards.cs (1)
20[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.SlhDsa))]
System\Security\Cryptography\X509Certificates\X509CertificateKeyAccessors.cs (5)
291/// Gets the <see cref="SlhDsa"/> public key from this certificate. 309public static SlhDsa? GetSlhDsaPublicKey(this X509Certificate2 certificate) 321/// Gets the <see cref="SlhDsa"/> private key from this certificate. 339public static SlhDsa? GetSlhDsaPrivateKey(this X509Certificate2 certificate) 380public static X509Certificate2 CopyWithPrivateKey(this X509Certificate2 certificate, SlhDsa privateKey)
System.Net.Security (1)
System\Net\Security\SslStreamCertificateContext.Linux.cs (1)
95if (KeyHandle == null && SlhDsa.IsSupported)
System.Security.Cryptography (63)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\SlhDsa.cs (31)
21/// Developers are encouraged to program against the <see cref="SlhDsa"/> base class, 56/// Initializes a new instance of the <see cref="SlhDsa" /> class. 70private protected void ThrowIfDisposed() => ObjectDisposedException.ThrowIf(_disposed, typeof(SlhDsa)); 89/// Releases all resources used by the <see cref="SlhDsa"/> class. 1182public static SlhDsa GenerateKey(SlhDsaAlgorithm algorithm) 1220public static SlhDsa ImportSubjectPublicKeyInfo(ReadOnlySpan<byte> source) 1225KeyFormatHelper.ReadSubjectPublicKeyInfo(s_knownOids, source, SubjectPublicKeyReader, out int read, out SlhDsa slhDsa); 1229static void SubjectPublicKeyReader(ReadOnlySpan<byte> key, in ValueAlgorithmIdentifierAsn identifier, out SlhDsa slhDsa) 1246public static SlhDsa ImportSubjectPublicKeyInfo(byte[] source) 1283public static SlhDsa ImportPkcs8PrivateKey(ReadOnlySpan<byte> source) 1291(ReadOnlySpan<byte> key, in ValueAlgorithmIdentifierAsn algId, out SlhDsa ret) => 1303out SlhDsa slhDsa); 1313public static SlhDsa ImportPkcs8PrivateKey(byte[] source) 1362public static SlhDsa ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, ReadOnlySpan<byte> source) 1411public static SlhDsa ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, ReadOnlySpan<byte> source) 1427public static SlhDsa ImportEncryptedPkcs8PrivateKey(string password, byte[] source) 1471public static SlhDsa ImportFromPem(ReadOnlySpan<char> source) 1475return PemKeyHelpers.ImportFactoryPem<SlhDsa>(source, label => 1488public static SlhDsa ImportFromPem(string source) 1555public static SlhDsa ImportFromEncryptedPem(ReadOnlySpan<char> source, ReadOnlySpan<char> password) 1559return PemKeyHelpers.ImportEncryptedFactoryPem<SlhDsa, char>( 1619public static SlhDsa ImportFromEncryptedPem(ReadOnlySpan<char> source, ReadOnlySpan<byte> passwordBytes) 1623return PemKeyHelpers.ImportEncryptedFactoryPem<SlhDsa, byte>( 1633public static SlhDsa ImportFromEncryptedPem(string source, string password) 1646public static SlhDsa ImportFromEncryptedPem(string source, byte[] passwordBytes) 1680public static SlhDsa ImportSlhDsaPublicKey(SlhDsaAlgorithm algorithm, ReadOnlySpan<byte> source) 1698public static SlhDsa ImportSlhDsaPublicKey(SlhDsaAlgorithm algorithm, byte[] source) 1730public static SlhDsa ImportSlhDsaPrivateKey(SlhDsaAlgorithm algorithm, ReadOnlySpan<byte> source) 1748public static SlhDsa ImportSlhDsaPrivateKey(SlhDsaAlgorithm algorithm, byte[] source) 1757/// resources used by the current instance of the <see cref="SlhDsa"/> class. 2002throw new PlatformNotSupportedException(SR.Format(SR.Cryptography_AlgorithmNotSupported, nameof(SlhDsa)));
src\runtime\src\libraries\Common\src\System\Security\Cryptography\SlhDsaCng.cs (1)
18/// Developers are encouraged to program against the <see cref="SlhDsa" /> base class,
src\runtime\src\libraries\Common\src\System\Security\Cryptography\SlhDsaImplementation.cs (1)
23internal static unsafe SlhDsaImplementation DuplicatePrivateKey(SlhDsa key)
System\Security\Cryptography\X509Certificates\CertificatePal.Windows.PrivateKey.cs (3)
101public SlhDsa? GetSlhDsaPrivateKey() 202public ICertificatePal CopyWithPrivateKey(SlhDsa privateKey) 204throw new PlatformNotSupportedException(SR.Format(SR.Cryptography_AlgorithmNotSupported, nameof(SlhDsa)));
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (3)
254SlhDsa key) 282SlhDsa key) 706case SlhDsa slhDsa:
System\Security\Cryptography\X509Certificates\CertificateRequest.Load.cs (1)
309SlhDsa? slhDsa = publicKey.GetSlhDsaPublicKey();
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Build.cs (1)
209SlhDsa? slhdsa = issuerCertificate.GetSlhDsaPrivateKey();
System\Security\Cryptography\X509Certificates\ICertificatePal.cs (2)
36SlhDsa? GetSlhDsaPrivateKey(); 45ICertificatePal CopyWithPrivateKey(SlhDsa privateKey);
System\Security\Cryptography\X509Certificates\PublicKey.cs (7)
94/// using SubjectPublicKeyInfo from an <see cref="SlhDsa" />. 97/// An <see cref="SlhDsa" /> key to obtain the SubjectPublicKeyInfo from. 101/// <see cref="SlhDsa.ExportSubjectPublicKeyInfo" /> must return a 105public PublicKey(SlhDsa key) : this(key.ExportSubjectPublicKeyInfo()) 391/// Gets the <see cref="SlhDsa"/> public key, or <see langword="null" /> 405public SlhDsa? GetSlhDsaPublicKey() => 407? EncodeSubjectPublicKeyInfo().Encode(SlhDsa.ImportSubjectPublicKeyInfo)
System\Security\Cryptography\X509Certificates\SlhDsaX509SignatureGenerator.cs (2)
12private readonly SlhDsa _key; 14internal SlhDsaX509SignatureGenerator(SlhDsa key)
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (10)
985/// Gets the <see cref="SlhDsa"/> public key from this certificate. 997public SlhDsa? GetSlhDsaPublicKey() 1009/// Gets the <see cref="SlhDsa"/> private key from this certificate. 1018public SlhDsa? GetSlhDsaPrivateKey() => 1044public unsafe X509Certificate2 CopyWithPrivateKey(SlhDsa privateKey) 1051using (SlhDsa? publicKey = GetSlhDsaPublicKey()) 1389ExtractKeyFromPem<SlhDsa>( 1392SlhDsa.ImportFromPem, 1477ExtractKeyFromEncryptedPem<SlhDsa>( 1480SlhDsa.ImportFromEncryptedPem,
System\Security\Cryptography\X509Certificates\X509SignatureGenerator.cs (1)
71public static X509SignatureGenerator CreateForSlhDsa(SlhDsa key)
System.Security.Cryptography.Pkcs (10)
Internal\Cryptography\Pal\AnyOS\ManagedPal.cs (2)
89if (typeof(T) == typeof(SlhDsa) && SlhDsa.IsSupported)
Internal\Cryptography\Pal\Windows\PkcsPalWindows.cs (2)
155if (typeof(T) == typeof(SlhDsa)) 156throw new PlatformNotSupportedException(SR.Format(SR.Cryptography_AlgorithmNotSupported, nameof(SlhDsa)));
System\Security\Cryptography\Pkcs\CmsSignature.SlhDsa.cs (4)
41protected override bool VerifyKeyType(object key) => key is SlhDsa; 67using (SlhDsa? publicKey = certificate.GetSlhDsaPublicKey()) 110using (GetSigningKey(key, certificate, silent, static cert => cert.GetSlhDsaPublicKey(), out SlhDsa? signingKey)) 124using (SlhDsa certKey = certificate.GetSlhDsaPublicKey()!)
System\Security\Cryptography\Pkcs\CmsSigner.cs (2)
131CmsSigner(SubjectIdentifierType signerIdentifierType, X509Certificate2? certificate, SlhDsa? privateKey) 218Debug.Assert(privateKey is null or AsymmetricAlgorithm or MLDsa or SlhDsa);