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);
20 references to MLKemImplementation
System.Security.Cryptography (20)
src\libraries\Common\src\System\Security\Cryptography\MLKem.cs (9)
40
public static bool IsSupported =>
MLKemImplementation
.IsSupported;
88
return
MLKemImplementation
.GenerateKeyImpl(algorithm);
344
return
MLKemImplementation
.ImportPrivateSeedImpl(algorithm, source);
403
return
MLKemImplementation
.ImportDecapsulationKeyImpl(algorithm, source);
460
return
MLKemImplementation
.ImportEncapsulationKeyImpl(algorithm, source);
1187
kem =
MLKemImplementation
.ImportEncapsulationKeyImpl(algorithm, key.Span);
1693
kem =
MLKemImplementation
.ImportPrivateSeedImpl(algorithm, seed.Span);
1702
kem =
MLKemImplementation
.ImportDecapsulationKeyImpl(algorithm, expandedKey.Span);
1714
MLKem key =
MLKemImplementation
.ImportPrivateSeedImpl(algorithm, both.Seed.Span);
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)
99
MLKemImplementation
? impl = kem as
MLKemImplementation
;