8 writes to _key
System.Security.Cryptography (8)
src\libraries\Common\src\System\Security\Cryptography\ECDiffieHellmanOpenSsl.cs (6)
22
_key
= new Lazy<SafeEvpPKeyHandle>(ECOpenSsl.GenerateECKey(curve, out int keySize));
45
_key
= new Lazy<SafeEvpPKeyHandle>(() => ECOpenSsl.GenerateECKey(keySize));
55
_key
= null;
79
_key
= new Lazy<SafeEvpPKeyHandle>(ECOpenSsl.GenerateECKey(value));
88
_key
= new Lazy<SafeEvpPKeyHandle>(ECOpenSsl.GenerateECKey(curve, out int keySizeValue));
107
_key
= new Lazy<SafeEvpPKeyHandle>(ECOpenSsl.ImportECKey(parameters, out int keySize));
System\Security\Cryptography\ECDiffieHellmanOpenSsl.cs (2)
39
_key
= new Lazy<SafeEvpPKeyHandle>(pkeyHandle.DuplicateHandle());
68
_key
= new Lazy<SafeEvpPKeyHandle>(Interop.Crypto.CreateEvpPkeyFromEcKey(ecKeyHandle));
15 references to _key
System.Security.Cryptography (15)
src\libraries\Common\src\System\Security\Cryptography\ECDiffieHellmanOpenSsl.cs (8)
99
return new ECDiffieHellmanOpenSslPublicKey(
_key
.Value);
114
return ECOpenSsl.ExportExplicitParameters(
_key
.Value, includePrivateParameters);
120
return ECOpenSsl.ExportParameters(
_key
.Value, includePrivateParameters);
143
if (
_key
!= null &&
_key
.IsValueCreated)
145
SafeEvpPKeyHandle handle =
_key
.Value;
150
[MemberNotNull(nameof(
_key
))]
153
ObjectDisposedException.ThrowIf(
_key
is null, this);
src\libraries\Common\src\System\Security\Cryptography\ECDiffieHellmanOpenSsl.Derive.cs (4)
89
Debug.Assert(
_key
is not null); // Callers should validate prior.
93
using (SafeEcKeyHandle ecKey = Interop.Crypto.EvpPkeyGetEcKey(
_key
.Value))
98
thisIsNamed = Interop.Crypto.EvpPKeyHasCurveName(
_key
.Value);
124
SafeEvpPKeyHandle? ourKey =
_key
.Value;
System\Security\Cryptography\ECDiffieHellmanOpenSsl.cs (3)
40
KeySizeValue = Interop.Crypto.EvpPKeyBits(
_key
.Value);
71
KeySizeValue = Interop.Crypto.EvpPKeyBits(
_key
.Value);
82
return
_key
.Value.DuplicateHandle();