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