4 writes to _mlKem
System.Security.Cryptography (4)
System\Security\Cryptography\HpkeMLKemAdapter.cs (4)
21
_mlKem
= MLKem.GenerateKey(_algorithm);
32
_mlKem
= MLKem.ImportPrivateSeed(_algorithm, privateSeed);
55
_mlKem
= MLKem.ImportPrivateSeed(_algorithm, decapsulationKey);
61
_mlKem
= MLKem.ImportEncapsulationKey(_algorithm, encapsulationKey);
13 references to _mlKem
System.Security.Cryptography (13)
System\Security\Cryptography\HpkeMLKemAdapter.cs (13)
20
Debug.Assert(
_mlKem
is null);
26
Debug.Assert(
_mlKem
is null);
42
Debug.Assert(
_mlKem
is not null);
43
_mlKem
.Encapsulate(encapsulatedSecret, sharedSecret);
48
Debug.Assert(
_mlKem
is not null);
49
_mlKem
.Decapsulate(encapsulatedSecret, sharedSecret);
54
Debug.Assert(
_mlKem
is null);
60
Debug.Assert(
_mlKem
is null);
66
Debug.Assert(
_mlKem
is not null);
67
_mlKem
.ExportPrivateSeed(destination);
72
Debug.Assert(
_mlKem
is not null);
73
_mlKem
.ExportEncapsulationKey(destination);
76
public override void Dispose() =>
_mlKem
?.Dispose();