3 writes to _x25519
System.Security.Cryptography (3)
System\Security\Cryptography\HpkeX25519DiffieHellmanKemAdapter.cs (3)
19
_x25519
= X25519DiffieHellman.ImportPrivateKey(decapsulationKey);
25
_x25519
= X25519DiffieHellman.ImportPublicKey(encapsulationKey);
40
_x25519
= X25519DiffieHellman.ImportPrivateKey(privateKey);
14 references to _x25519
System.Security.Cryptography (14)
System\Security\Cryptography\HpkeX25519DiffieHellmanKemAdapter.cs (14)
18
Debug.Assert(
_x25519
is null);
24
Debug.Assert(
_x25519
is null);
30
Debug.Assert(
_x25519
is null);
51
Debug.Assert(
_x25519
is not null);
56
Debug.Assert(ephemeral.
_x25519
is not null);
62
ephemeral.
_x25519
.DeriveRawSecretAgreement(
_x25519
, dh);
76
Debug.Assert(
_x25519
is not null);
81
_x25519
.DeriveRawSecretAgreement(encapsulatedSecret, secretAgreement);
92
Debug.Assert(
_x25519
is not null);
95
_x25519
.ExportPrivateKey(destination);
100
Debug.Assert(
_x25519
is not null);
103
_x25519
.ExportPublicKey(destination);
106
public override void Dispose() =>
_x25519
?.Dispose();