4 types derived from CompositeMLDsa
System.Security.Cryptography (4)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaCng.cs (1)
22
public sealed partial class CompositeMLDsaCng :
CompositeMLDsa
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaCng.Windows.cs (1)
12
public sealed partial class CompositeMLDsaCng :
CompositeMLDsa
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaImplementation.cs (1)
6
internal sealed partial class CompositeMLDsaImplementation :
CompositeMLDsa
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaImplementation.Windows.cs (1)
16
internal sealed partial class CompositeMLDsaImplementation :
CompositeMLDsa
68 references to CompositeMLDsa
Microsoft.AspNetCore.Server.Kestrel.Core (4)
Internal\Certificates\CertificateConfigLoader.cs (4)
241
using
var
compositeMLDsa = ImportCompositeMLDsaKeyFromFile(keyText, password);
312
private static
CompositeMLDsa
ImportCompositeMLDsaKeyFromFile(string keyText, string? password)
316
return
CompositeMLDsa
.ImportFromPem(keyText);
320
return
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.
411
public static
CompositeMLDsa
? GetCompositeMLDsaPublicKey(this X509Certificate2 certificate)
438
/// Gets the <see cref="
CompositeMLDsa
"/> private key from this certificate.
456
public static
CompositeMLDsa
? GetCompositeMLDsaPrivateKey(this X509Certificate2 certificate)
499
public 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.
380
public static
CompositeMLDsa
GenerateKey(CompositeMLDsaAlgorithm algorithm)
392
public static
CompositeMLDsa
ImportFromEncryptedPem(string source, string password)
464
public static
CompositeMLDsa
ImportFromEncryptedPem(ReadOnlySpan<char> source, ReadOnlySpan<char> password)
468
return PemKeyHelpers.ImportEncryptedFactoryPem<
CompositeMLDsa
, char>(
478
public static
CompositeMLDsa
ImportFromEncryptedPem(string source, byte[] passwordBytes)
546
public static
CompositeMLDsa
ImportFromEncryptedPem(ReadOnlySpan<char> source, ReadOnlySpan<byte> passwordBytes)
550
return PemKeyHelpers.ImportEncryptedFactoryPem<
CompositeMLDsa
, byte>(
560
public static
CompositeMLDsa
ImportFromPem(string source)
606
public static
CompositeMLDsa
ImportFromPem(ReadOnlySpan<char> source)
610
return PemKeyHelpers.ImportFactoryPem<
CompositeMLDsa
>(source, label =>
623
public static
CompositeMLDsa
ImportSubjectPublicKeyInfo(byte[] source)
664
public static
CompositeMLDsa
ImportSubjectPublicKeyInfo(ReadOnlySpan<byte> source)
669
KeyFormatHelper.ReadSubjectPublicKeyInfo(KnownOids, source, SubjectPublicKeyReader, out int read, out
CompositeMLDsa
dsa);
673
static void SubjectPublicKeyReader(ReadOnlySpan<byte> key, in ValueAlgorithmIdentifierAsn identifier, out
CompositeMLDsa
dsa)
679
throw new CryptographicException(SR.Format(SR.Cryptography_AlgorithmNotSupported, nameof(
CompositeMLDsa
)));
695
public static
CompositeMLDsa
ImportEncryptedPkcs8PrivateKey(string password, byte[] source)
744
public static
CompositeMLDsa
ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, ReadOnlySpan<byte> source)
802
public static
CompositeMLDsa
ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, ReadOnlySpan<byte> source)
818
public static
CompositeMLDsa
ImportPkcs8PrivateKey(byte[] source)
859
public static
CompositeMLDsa
ImportPkcs8PrivateKey(ReadOnlySpan<byte> source)
864
KeyFormatHelper.ReadPkcs8(KnownOids, source, PrivateKeyReader, out int read, out
CompositeMLDsa
dsa);
871
out
CompositeMLDsa
dsa)
877
throw new CryptographicException(SR.Format(SR.Cryptography_AlgorithmNotSupported, nameof(
CompositeMLDsa
)));
893
public static
CompositeMLDsa
ImportCompositeMLDsaPublicKey(CompositeMLDsaAlgorithm algorithm, byte[] source)
926
public static
CompositeMLDsa
ImportCompositeMLDsaPublicKey(CompositeMLDsaAlgorithm algorithm, ReadOnlySpan<byte> source)
943
public static
CompositeMLDsa
ImportCompositeMLDsaPrivateKey(CompositeMLDsaAlgorithm algorithm, byte[] source)
976
public 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.
1982
throw new PlatformNotSupportedException(SR.Format(SR.Cryptography_AlgorithmNotSupported, nameof(
CompositeMLDsa
)));
1990
throw new PlatformNotSupportedException(SR.Format(SR.Cryptography_AlgorithmNotSupported, nameof(
CompositeMLDsa
)));
1994
private 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)
12
internal static partial
CompositeMLDsa
GenerateKeyImpl(CompositeMLDsaAlgorithm algorithm);
14
internal static partial
CompositeMLDsa
ImportCompositeMLDsaPublicKeyImpl(CompositeMLDsaAlgorithm algorithm, ReadOnlySpan<byte> source);
16
internal static partial
CompositeMLDsa
ImportCompositeMLDsaPrivateKeyImpl(CompositeMLDsaAlgorithm algorithm, ReadOnlySpan<byte> source);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaImplementation.Windows.cs (3)
53
internal static partial
CompositeMLDsa
GenerateKeyImpl(CompositeMLDsaAlgorithm algorithm)
79
internal static partial
CompositeMLDsa
ImportCompositeMLDsaPublicKeyImpl(CompositeMLDsaAlgorithm algorithm, ReadOnlySpan<byte> source)
101
internal static partial
CompositeMLDsa
ImportCompositeMLDsaPrivateKeyImpl(CompositeMLDsaAlgorithm algorithm, ReadOnlySpan<byte> source)
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (2)
310
CompositeMLDsa
key)
334
CompositeMLDsa
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
122
public PublicKey(
CompositeMLDsa
key) : this(key.ExportSubjectPublicKeyInfo())
411
/// Gets the <see cref="
CompositeMLDsa
"/> public key, or <see langword="null" />
425
public
CompositeMLDsa
? GetCompositeMLDsaPublicKey()
430
return EncodeSubjectPublicKeyInfo().Encode(
CompositeMLDsa
.ImportSubjectPublicKeyInfo);
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (6)
1084
/// Gets the <see cref="
CompositeMLDsa
"/> public key from this certificate.
1096
public
CompositeMLDsa
? GetCompositeMLDsaPublicKey()
1108
/// Gets the <see cref="
CompositeMLDsa
"/> private key from this certificate.
1120
public
CompositeMLDsa
? GetCompositeMLDsaPrivateKey()
1154
public X509Certificate2 CopyWithPrivateKey(
CompositeMLDsa
privateKey)
1161
using (
CompositeMLDsa
? publicKey = GetCompositeMLDsaPublicKey())
System\Security\Cryptography\X509Certificates\X509SignatureGenerator.cs (1)
91
public static X509SignatureGenerator CreateForCompositeMLDsa(
CompositeMLDsa
key)
System.Security.Cryptography.Pkcs (1)
System\Security\Cryptography\Pkcs\CmsSigner.cs (1)
142
CmsSigner(SubjectIdentifierType signerIdentifierType, X509Certificate2? certificate,
CompositeMLDsa
? privateKey)