4 types derived from CompositeMLDsa
System.Security.Cryptography (4)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaCng.cs (1)
22public sealed partial class CompositeMLDsaCng : CompositeMLDsa
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaCng.Windows.cs (1)
12public sealed partial class CompositeMLDsaCng : CompositeMLDsa
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaImplementation.cs (1)
6internal sealed partial class CompositeMLDsaImplementation : CompositeMLDsa
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaImplementation.Windows.cs (1)
16internal sealed partial class CompositeMLDsaImplementation : CompositeMLDsa
68 references to CompositeMLDsa
Microsoft.AspNetCore.Server.Kestrel.Core (4)
Internal\Certificates\CertificateConfigLoader.cs (4)
241using var compositeMLDsa = ImportCompositeMLDsaKeyFromFile(keyText, password); 312private static CompositeMLDsa ImportCompositeMLDsaKeyFromFile(string keyText, string? password) 316return CompositeMLDsa.ImportFromPem(keyText); 320return CompositeMLDsa.ImportFromEncryptedPem(keyText, password);
Microsoft.Bcl.Cryptography (6)
Microsoft.Bcl.Cryptography.Forwards.cs (1)
11[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.CompositeMLDsa))]
System\Security\Cryptography\X509Certificates\X509CertificateKeyAccessors.cs (5)
393/// Gets the <see cref="CompositeMLDsa"/> public key from this certificate. 411public static CompositeMLDsa? GetCompositeMLDsaPublicKey(this X509Certificate2 certificate) 438/// Gets the <see cref="CompositeMLDsa"/> private key from this certificate. 456public static CompositeMLDsa? GetCompositeMLDsaPrivateKey(this X509Certificate2 certificate) 499public static X509Certificate2 CopyWithPrivateKey(this X509Certificate2 certificate, CompositeMLDsa privateKey)
System.Security.Cryptography (57)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsa.cs (34)
16/// Developers are encouraged to program against the <see cref="CompositeMLDsa"/> base class, 68/// Initializes a new instance of the <see cref="CompositeMLDsa" /> class. 380public static CompositeMLDsa GenerateKey(CompositeMLDsaAlgorithm algorithm) 392public static CompositeMLDsa ImportFromEncryptedPem(string source, string password) 464public static CompositeMLDsa ImportFromEncryptedPem(ReadOnlySpan<char> source, ReadOnlySpan<char> password) 468return PemKeyHelpers.ImportEncryptedFactoryPem<CompositeMLDsa, char>( 478public static CompositeMLDsa ImportFromEncryptedPem(string source, byte[] passwordBytes) 546public static CompositeMLDsa ImportFromEncryptedPem(ReadOnlySpan<char> source, ReadOnlySpan<byte> passwordBytes) 550return PemKeyHelpers.ImportEncryptedFactoryPem<CompositeMLDsa, byte>( 560public static CompositeMLDsa ImportFromPem(string source) 606public static CompositeMLDsa ImportFromPem(ReadOnlySpan<char> source) 610return PemKeyHelpers.ImportFactoryPem<CompositeMLDsa>(source, label => 623public static CompositeMLDsa ImportSubjectPublicKeyInfo(byte[] source) 664public static CompositeMLDsa ImportSubjectPublicKeyInfo(ReadOnlySpan<byte> source) 669KeyFormatHelper.ReadSubjectPublicKeyInfo(KnownOids, source, SubjectPublicKeyReader, out int read, out CompositeMLDsa dsa); 673static void SubjectPublicKeyReader(ReadOnlySpan<byte> key, in ValueAlgorithmIdentifierAsn identifier, out CompositeMLDsa dsa) 679throw new CryptographicException(SR.Format(SR.Cryptography_AlgorithmNotSupported, nameof(CompositeMLDsa))); 695public static CompositeMLDsa ImportEncryptedPkcs8PrivateKey(string password, byte[] source) 744public static CompositeMLDsa ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, ReadOnlySpan<byte> source) 802public static CompositeMLDsa ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, ReadOnlySpan<byte> source) 818public static CompositeMLDsa ImportPkcs8PrivateKey(byte[] source) 859public static CompositeMLDsa ImportPkcs8PrivateKey(ReadOnlySpan<byte> source) 864KeyFormatHelper.ReadPkcs8(KnownOids, source, PrivateKeyReader, out int read, out CompositeMLDsa dsa); 871out CompositeMLDsa dsa) 877throw new CryptographicException(SR.Format(SR.Cryptography_AlgorithmNotSupported, nameof(CompositeMLDsa))); 893public static CompositeMLDsa ImportCompositeMLDsaPublicKey(CompositeMLDsaAlgorithm algorithm, byte[] source) 926public static CompositeMLDsa ImportCompositeMLDsaPublicKey(CompositeMLDsaAlgorithm algorithm, ReadOnlySpan<byte> source) 943public static CompositeMLDsa ImportCompositeMLDsaPrivateKey(CompositeMLDsaAlgorithm algorithm, byte[] source) 976public static CompositeMLDsa ImportCompositeMLDsaPrivateKey(CompositeMLDsaAlgorithm algorithm, ReadOnlySpan<byte> source) 1784/// Releases all resources used by the <see cref="CompositeMLDsa"/> class. 1798/// resources used by the current instance of the <see cref="CompositeMLDsa"/> class. 1982throw new PlatformNotSupportedException(SR.Format(SR.Cryptography_AlgorithmNotSupported, nameof(CompositeMLDsa))); 1990throw new PlatformNotSupportedException(SR.Format(SR.Cryptography_AlgorithmNotSupported, nameof(CompositeMLDsa))); 1994private protected void ThrowIfDisposed() => ObjectDisposedException.ThrowIf(_disposed, typeof(CompositeMLDsa));
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaCng.cs (1)
15/// Developers are encouraged to program against the <see cref="CompositeMLDsa" /> base class,
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaImplementation.cs (3)
12internal static partial CompositeMLDsa GenerateKeyImpl(CompositeMLDsaAlgorithm algorithm); 14internal static partial CompositeMLDsa ImportCompositeMLDsaPublicKeyImpl(CompositeMLDsaAlgorithm algorithm, ReadOnlySpan<byte> source); 16internal static partial CompositeMLDsa ImportCompositeMLDsaPrivateKeyImpl(CompositeMLDsaAlgorithm algorithm, ReadOnlySpan<byte> source);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaImplementation.Windows.cs (3)
53internal static partial CompositeMLDsa GenerateKeyImpl(CompositeMLDsaAlgorithm algorithm) 79internal static partial CompositeMLDsa ImportCompositeMLDsaPublicKeyImpl(CompositeMLDsaAlgorithm algorithm, ReadOnlySpan<byte> source) 101internal static partial CompositeMLDsa ImportCompositeMLDsaPrivateKeyImpl(CompositeMLDsaAlgorithm algorithm, ReadOnlySpan<byte> source)
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (2)
310CompositeMLDsa key) 334CompositeMLDsa key)
System\Security\Cryptography\X509Certificates\PublicKey.cs (7)
111/// using SubjectPublicKeyInfo from an <see cref="CompositeMLDsa" />. 114/// An <see cref="CompositeMLDsa" /> key to obtain the SubjectPublicKeyInfo from. 118/// <see cref="CompositeMLDsa.ExportSubjectPublicKeyInfo" /> must return a 122public PublicKey(CompositeMLDsa key) : this(key.ExportSubjectPublicKeyInfo()) 411/// Gets the <see cref="CompositeMLDsa"/> public key, or <see langword="null" /> 425public CompositeMLDsa? GetCompositeMLDsaPublicKey() 430return EncodeSubjectPublicKeyInfo().Encode(CompositeMLDsa.ImportSubjectPublicKeyInfo);
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (6)
1084/// Gets the <see cref="CompositeMLDsa"/> public key from this certificate. 1096public CompositeMLDsa? GetCompositeMLDsaPublicKey() 1108/// Gets the <see cref="CompositeMLDsa"/> private key from this certificate. 1120public CompositeMLDsa? GetCompositeMLDsaPrivateKey() 1154public X509Certificate2 CopyWithPrivateKey(CompositeMLDsa privateKey) 1161using (CompositeMLDsa? publicKey = GetCompositeMLDsaPublicKey())
System\Security\Cryptography\X509Certificates\X509SignatureGenerator.cs (1)
91public static X509SignatureGenerator CreateForCompositeMLDsa(CompositeMLDsa key)
System.Security.Cryptography.Pkcs (1)
System\Security\Cryptography\Pkcs\CmsSigner.cs (1)
142CmsSigner(SubjectIdentifierType signerIdentifierType, X509Certificate2? certificate, CompositeMLDsa? privateKey)