4 instantiations of MLDsaImplementation
System.Security.Cryptography (4)
System\Security\Cryptography\MLDsaImplementation.OpenSsl.cs (4)
145
return new
MLDsaImplementation
(algorithm, key, hasSeed: true, hasPrivateKey: true);
152
return new
MLDsaImplementation
(algorithm, key, hasSeed: false, hasPrivateKey: false);
159
return new
MLDsaImplementation
(algorithm, key, hasSeed: false, hasPrivateKey: true);
166
return new
MLDsaImplementation
(algorithm, key, hasSeed: true, hasPrivateKey: true);
31 references to MLDsaImplementation
System.Security.Cryptography (31)
src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaManaged.cs (7)
43
internal static bool SupportsAny() =>
MLDsaImplementation
.SupportsAny();
51
alg =>
MLDsaImplementation
.IsAlgorithmSupported(metadata.MLDsaAlgorithm) && metadata.TraditionalAlgorithm switch
77
mldsaKey =
MLDsaImplementation
.GenerateKey(metadata.MLDsaAlgorithm);
169
MLDsaImplementation
mldsa =
MLDsaImplementation
.ImportPublicKey(metadata.MLDsaAlgorithm, mldsaKey);
211
MLDsaImplementation
mldsa =
MLDsaImplementation
.ImportSeed(metadata.MLDsaAlgorithm, mldsaKey);
src\libraries\Common\src\System\Security\Cryptography\MLDsa.cs (9)
76
public static bool IsSupported { get; } =
MLDsaImplementation
.SupportsAny();
1340
return
MLDsaImplementation
.GenerateKeyImpl(algorithm);
1396
return
MLDsaImplementation
.ImportPublicKey(algorithm, spki.SubjectPublicKey.Span);
1846
return
MLDsaImplementation
.ImportPublicKey(algorithm, source);
1896
return
MLDsaImplementation
.ImportPrivateKey(algorithm, source);
1946
return
MLDsaImplementation
.ImportSeed(algorithm, source);
2225
dsa =
MLDsaImplementation
.ImportMLDsaPrivateSeed(algorithm, seed.Span);
2234
dsa =
MLDsaImplementation
.ImportPrivateKey(algorithm, expandedKey.Span);
2246
MLDsa key =
MLDsaImplementation
.ImportMLDsaPrivateSeed(algorithm, both.Seed.Span);
src\libraries\Common\src\System\Security\Cryptography\MLDsaImplementation.cs (6)
15
internal static partial
MLDsaImplementation
GenerateKeyImpl(MLDsaAlgorithm algorithm);
16
internal static partial
MLDsaImplementation
ImportPublicKey(MLDsaAlgorithm algorithm, ReadOnlySpan<byte> source);
17
internal static partial
MLDsaImplementation
ImportPrivateKey(MLDsaAlgorithm algorithm, ReadOnlySpan<byte> source);
18
internal static partial
MLDsaImplementation
ImportSeed(MLDsaAlgorithm algorithm, ReadOnlySpan<byte> source);
24
internal static
MLDsaImplementation
DuplicatePrivateKey(MLDsa key)
29
Debug.Assert(key is not
MLDsaImplementation
);
System\Security\Cryptography\MLDsaImplementation.OpenSsl.cs (4)
142
internal static partial
MLDsaImplementation
GenerateKeyImpl(MLDsaAlgorithm algorithm)
148
internal static partial
MLDsaImplementation
ImportPublicKey(MLDsaAlgorithm algorithm, ReadOnlySpan<byte> source)
155
internal static partial
MLDsaImplementation
ImportPrivateKey(MLDsaAlgorithm algorithm, ReadOnlySpan<byte> source)
162
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
;