4 instantiations of MLKemImplementation
System.Security.Cryptography (4)
System\Security\Cryptography\MLKemImplementation.OpenSsl.cs (4)
35return new MLKemImplementation(algorithm, key, hasSeed: true, hasDecapsulationKey: true); 44return new MLKemImplementation(algorithm, key, hasSeed: true, hasDecapsulationKey: true); 53return new MLKemImplementation(algorithm, key, hasSeed: false, hasDecapsulationKey: true); 62return new MLKemImplementation(algorithm, key, hasSeed: false, hasDecapsulationKey: false);
17 references to MLKemImplementation
System.Security.Cryptography (17)
src\libraries\Common\src\System\Security\Cryptography\MLKem.cs (6)
42public static bool IsSupported => MLKemImplementation.IsSupported; 90return MLKemImplementation.GenerateKeyImpl(algorithm); 346return MLKemImplementation.ImportPrivateSeedImpl(algorithm, source); 405return MLKemImplementation.ImportDecapsulationKeyImpl(algorithm, source); 462return MLKemImplementation.ImportEncapsulationKeyImpl(algorithm, source); 1192return MLKemImplementation.ImportEncapsulationKeyImpl(algorithm, subjectPublicKey);
src\libraries\Common\src\System\Security\Cryptography\MLKemImplementation.cs (2)
14internal static MLKemImplementation DuplicatePrivateKey(MLKem key) 19Debug.Assert(key is not (MLKemImplementation or MLKemOpenSsl));
System\Security\Cryptography\MLKemImplementation.OpenSsl.cs (4)
30internal static MLKemImplementation GenerateKeyImpl(MLKemAlgorithm algorithm) 38internal static MLKemImplementation ImportPrivateSeedImpl(MLKemAlgorithm algorithm, ReadOnlySpan<byte> source) 47internal static MLKemImplementation ImportDecapsulationKeyImpl(MLKemAlgorithm algorithm, ReadOnlySpan<byte> source) 56internal static MLKemImplementation ImportEncapsulationKeyImpl(MLKemAlgorithm algorithm, ReadOnlySpan<byte> source)
System\Security\Cryptography\X509Certificates\OpenSslX509CertificateReader.cs (3)
734case MLKemImplementation impl: 737using (MLKemImplementation clone = MLKemImplementation.DuplicatePrivateKey(privateKey))
System\Security\Cryptography\X509Certificates\X509CertificateLoader.OpenSsl.cs (2)
97MLKemImplementation? impl = kem as MLKemImplementation;