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)
42
internal static bool SupportsAny() =>
MLDsaImplementation
.SupportsAny();
50
alg =>
MLDsaImplementation
.IsAlgorithmSupported(metadata.MLDsaAlgorithm) && metadata.TraditionalAlgorithm switch
76
mldsaKey =
MLDsaImplementation
.GenerateKey(metadata.MLDsaAlgorithm);
168
MLDsaImplementation
mldsa =
MLDsaImplementation
.ImportPublicKey(metadata.MLDsaAlgorithm, mldsaKey);
210
MLDsaImplementation
mldsa =
MLDsaImplementation
.ImportSeed(metadata.MLDsaAlgorithm, mldsaKey);
src\libraries\Common\src\System\Security\Cryptography\MLDsa.cs (9)
77
public static bool IsSupported { get; } =
MLDsaImplementation
.SupportsAny();
1314
return
MLDsaImplementation
.GenerateKeyImpl(algorithm);
1369
return
MLDsaImplementation
.ImportPublicKey(algorithm, spki.SubjectPublicKey.Span);
1807
return
MLDsaImplementation
.ImportPublicKey(algorithm, source);
1857
return
MLDsaImplementation
.ImportPrivateKey(algorithm, source);
1907
return
MLDsaImplementation
.ImportSeed(algorithm, source);
2184
dsa =
MLDsaImplementation
.ImportMLDsaPrivateSeed(algorithm, seed.Span);
2193
dsa =
MLDsaImplementation
.ImportPrivateKey(algorithm, expandedKey.Span);
2205
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
;