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