4 instantiations of MLDsaImplementation
System.Security.Cryptography (4)
System\Security\Cryptography\MLDsaImplementation.OpenSsl.cs (4)
81return new MLDsaImplementation(algorithm, key, hasSeed: true, hasSecretKey: true); 88return new MLDsaImplementation(algorithm, key, hasSeed: false, hasSecretKey: false); 98return new MLDsaImplementation(algorithm, key, hasSeed: false, hasSecretKey: true); 105return 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)
66public static bool IsSupported { get; } = MLDsaImplementation.SupportsAny(); 803return MLDsaImplementation.GenerateKeyImpl(algorithm); 858return MLDsaImplementation.ImportPublicKey(algorithm, spki.SubjectPublicKey.Span); 1296return MLDsaImplementation.ImportPublicKey(algorithm, source); 1334return MLDsaImplementation.ImportSecretKey(algorithm, source); 1372return MLDsaImplementation.ImportSeed(algorithm, source); 1593dsa = MLDsaImplementation.ImportMLDsaPrivateSeed(algorithm, seed.Span); 1602dsa = MLDsaImplementation.ImportSecretKey(algorithm, expandedKey.Span); 1614MLDsa key = MLDsaImplementation.ImportMLDsaPrivateSeed(algorithm, both.Seed.Span);
src\libraries\Common\src\System\Security\Cryptography\MLDsaImplementation.cs (7)
20internal static partial MLDsaImplementation GenerateKeyImpl(MLDsaAlgorithm algorithm); 21internal static partial MLDsaImplementation ImportPublicKey(MLDsaAlgorithm algorithm, ReadOnlySpan<byte> source); 22internal static partial MLDsaImplementation ImportPkcs8PrivateKeyValue(MLDsaAlgorithm algorithm, ReadOnlySpan<byte> source); 23internal static partial MLDsaImplementation ImportSecretKey(MLDsaAlgorithm algorithm, ReadOnlySpan<byte> source); 24internal static partial MLDsaImplementation ImportSeed(MLDsaAlgorithm algorithm, ReadOnlySpan<byte> source); 30internal static MLDsaImplementation DuplicatePrivateKey(MLDsa key) 35Debug.Assert(key is not MLDsaImplementation);
System\Security\Cryptography\MLDsaImplementation.OpenSsl.cs (5)
78internal static partial MLDsaImplementation GenerateKeyImpl(MLDsaAlgorithm algorithm) 84internal static partial MLDsaImplementation ImportPublicKey(MLDsaAlgorithm algorithm, ReadOnlySpan<byte> source) 91internal static partial MLDsaImplementation ImportPkcs8PrivateKeyValue(MLDsaAlgorithm algorithm, ReadOnlySpan<byte> source) => 94internal static partial MLDsaImplementation ImportSecretKey(MLDsaAlgorithm algorithm, ReadOnlySpan<byte> source) 101internal 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;