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