4 instantiations of MLDsaImplementation
System.Security.Cryptography (4)
System\Security\Cryptography\MLDsaImplementation.OpenSsl.cs (4)
81
return new
MLDsaImplementation
(algorithm, key, hasSeed: true, hasSecretKey: true);
88
return new
MLDsaImplementation
(algorithm, key, hasSeed: false, hasSecretKey: false);
98
return new
MLDsaImplementation
(algorithm, key, hasSeed: false, hasSecretKey: true);
105
return new
MLDsaImplementation
(algorithm, key, hasSeed: true, hasSecretKey: true);
26 references to MLDsaImplementation
System.Security.Cryptography (26)
src\libraries\Common\src\System\Security\Cryptography\MLDsa.cs (9)
66
public static bool IsSupported { get; } =
MLDsaImplementation
.SupportsAny();
803
return
MLDsaImplementation
.GenerateKeyImpl(algorithm);
858
return
MLDsaImplementation
.ImportPublicKey(algorithm, spki.SubjectPublicKey.Span);
1296
return
MLDsaImplementation
.ImportPublicKey(algorithm, source);
1334
return
MLDsaImplementation
.ImportSecretKey(algorithm, source);
1372
return
MLDsaImplementation
.ImportSeed(algorithm, source);
1593
dsa =
MLDsaImplementation
.ImportMLDsaPrivateSeed(algorithm, seed.Span);
1602
dsa =
MLDsaImplementation
.ImportSecretKey(algorithm, expandedKey.Span);
1614
MLDsa key =
MLDsaImplementation
.ImportMLDsaPrivateSeed(algorithm, both.Seed.Span);
src\libraries\Common\src\System\Security\Cryptography\MLDsaImplementation.cs (7)
20
internal static partial
MLDsaImplementation
GenerateKeyImpl(MLDsaAlgorithm algorithm);
21
internal static partial
MLDsaImplementation
ImportPublicKey(MLDsaAlgorithm algorithm, ReadOnlySpan<byte> source);
22
internal static partial
MLDsaImplementation
ImportPkcs8PrivateKeyValue(MLDsaAlgorithm algorithm, ReadOnlySpan<byte> source);
23
internal static partial
MLDsaImplementation
ImportSecretKey(MLDsaAlgorithm algorithm, ReadOnlySpan<byte> source);
24
internal static partial
MLDsaImplementation
ImportSeed(MLDsaAlgorithm algorithm, ReadOnlySpan<byte> source);
30
internal static
MLDsaImplementation
DuplicatePrivateKey(MLDsa key)
35
Debug.Assert(key is not
MLDsaImplementation
);
System\Security\Cryptography\MLDsaImplementation.OpenSsl.cs (5)
78
internal static partial
MLDsaImplementation
GenerateKeyImpl(MLDsaAlgorithm algorithm)
84
internal static partial
MLDsaImplementation
ImportPublicKey(MLDsaAlgorithm algorithm, ReadOnlySpan<byte> source)
91
internal static partial
MLDsaImplementation
ImportPkcs8PrivateKeyValue(MLDsaAlgorithm algorithm, ReadOnlySpan<byte> source) =>
94
internal static partial
MLDsaImplementation
ImportSecretKey(MLDsaAlgorithm algorithm, ReadOnlySpan<byte> source)
101
internal static partial
MLDsaImplementation
ImportSeed(MLDsaAlgorithm algorithm, ReadOnlySpan<byte> source)
System\Security\Cryptography\X509Certificates\OpenSslX509CertificateReader.cs (3)
712
if (privateKey is
MLDsaImplementation
impl)
722
using (
MLDsaImplementation
clone =
MLDsaImplementation
.DuplicatePrivateKey(privateKey))
System\Security\Cryptography\X509Certificates\X509CertificateLoader.OpenSsl.cs (2)
106
MLDsaImplementation
? impl = mldsa as
MLDsaImplementation
;