4 instantiations of MLDsaImplementation
System.Security.Cryptography (4)
System\Security\Cryptography\MLDsaImplementation.OpenSsl.cs (4)
95
return new
MLDsaImplementation
(algorithm, key, hasSeed: true, hasSecretKey: true);
102
return new
MLDsaImplementation
(algorithm, key, hasSeed: false, hasSecretKey: false);
109
return new
MLDsaImplementation
(algorithm, key, hasSeed: false, hasSecretKey: true);
116
return new
MLDsaImplementation
(algorithm, key, hasSeed: true, hasSecretKey: true);
24 references to MLDsaImplementation
System.Security.Cryptography (24)
src\libraries\Common\src\System\Security\Cryptography\MLDsa.cs (9)
66
public static bool IsSupported { get; } =
MLDsaImplementation
.SupportsAny();
954
return
MLDsaImplementation
.GenerateKeyImpl(algorithm);
1009
return
MLDsaImplementation
.ImportPublicKey(algorithm, spki.SubjectPublicKey.Span);
1447
return
MLDsaImplementation
.ImportPublicKey(algorithm, source);
1497
return
MLDsaImplementation
.ImportSecretKey(algorithm, source);
1547
return
MLDsaImplementation
.ImportSeed(algorithm, source);
1780
dsa =
MLDsaImplementation
.ImportMLDsaPrivateSeed(algorithm, seed.Span);
1789
dsa =
MLDsaImplementation
.ImportSecretKey(algorithm, expandedKey.Span);
1801
MLDsa key =
MLDsaImplementation
.ImportMLDsaPrivateSeed(algorithm, both.Seed.Span);
src\libraries\Common\src\System\Security\Cryptography\MLDsaImplementation.cs (6)
14
internal static partial
MLDsaImplementation
GenerateKeyImpl(MLDsaAlgorithm algorithm);
15
internal static partial
MLDsaImplementation
ImportPublicKey(MLDsaAlgorithm algorithm, ReadOnlySpan<byte> source);
16
internal static partial
MLDsaImplementation
ImportSecretKey(MLDsaAlgorithm algorithm, ReadOnlySpan<byte> source);
17
internal static partial
MLDsaImplementation
ImportSeed(MLDsaAlgorithm algorithm, ReadOnlySpan<byte> source);
23
internal static
MLDsaImplementation
DuplicatePrivateKey(MLDsa key)
28
Debug.Assert(key is not
MLDsaImplementation
);
System\Security\Cryptography\MLDsaImplementation.OpenSsl.cs (4)
92
internal static partial
MLDsaImplementation
GenerateKeyImpl(MLDsaAlgorithm algorithm)
98
internal static partial
MLDsaImplementation
ImportPublicKey(MLDsaAlgorithm algorithm, ReadOnlySpan<byte> source)
105
internal static partial
MLDsaImplementation
ImportSecretKey(MLDsaAlgorithm algorithm, ReadOnlySpan<byte> source)
112
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
;