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