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