3 writes to _ecdh
System.Security.Cryptography (3)
System\Security\Cryptography\HpkeECDiffieHellmanKemAdapter.cs (3)
81
_ecdh
= ECDiffieHellman.Create(new ECParameters
92
_ecdh
= CreateFromEncapsulationKey(encapsulationKey);
148
_ecdh
= ECDiffieHellman.Create(new ECParameters
14 references to _ecdh
System.Security.Cryptography (14)
System\Security\Cryptography\HpkeECDiffieHellmanKemAdapter.cs (14)
69
Debug.Assert(
_ecdh
is null);
91
Debug.Assert(
_ecdh
is null);
124
Debug.Assert(
_ecdh
is null);
168
Debug.Assert(
_ecdh
is not null);
171
using (ECDiffieHellmanPublicKey recipientPublicKey =
_ecdh
.PublicKey)
174
Debug.Assert(ephemeral.
_ecdh
is not null);
176
byte[] secretAgreement = ephemeral.
_ecdh
.DeriveRawSecretAgreement(recipientPublicKey);
189
Debug.Assert(
_ecdh
is not null);
194
byte[] secretAgreement =
_ecdh
.DeriveRawSecretAgreement(ephemeralPublicKey);
205
Debug.Assert(
_ecdh
is not null);
208
ECParameters parameters =
_ecdh
.ExportParameters(includePrivateParameters: true);
224
Debug.Assert(
_ecdh
is not null);
227
ECParameters parameters =
_ecdh
.ExportParameters(includePrivateParameters: false);
245
public override void Dispose() =>
_ecdh
?.Dispose();