8 writes to _key
System.Security.Cryptography (8)
src\libraries\Common\src\System\Security\Cryptography\ECDsaOpenSsl.cs (6)
33
_key
= new Lazy<SafeEvpPKeyHandle>(ECOpenSsl.GenerateECKey(curve, out int keySize));
63
_key
= new Lazy<SafeEvpPKeyHandle>(GenerateKeyFromSize);
222
_key
= null;
245
_key
= new Lazy<SafeEvpPKeyHandle>(GenerateKeyFromSize);
254
_key
= new Lazy<SafeEvpPKeyHandle>(ECOpenSsl.GenerateECKey(curve, out int keySize));
266
_key
= new Lazy<SafeEvpPKeyHandle>(ECOpenSsl.ImportECKey(parameters, out int keySize));
System\Security\Cryptography\ECDsaOpenSsl.cs (2)
39
_key
= new Lazy<SafeEvpPKeyHandle>(pkeyHandle.DuplicateHandle());
68
_key
= new Lazy<SafeEvpPKeyHandle>(Interop.Crypto.CreateEvpPkeyFromEcKey(ecKeyHandle));
10 references to _key
System.Security.Cryptography (10)
src\libraries\Common\src\System\Security\Cryptography\ECDsaOpenSsl.cs (8)
277
SafeEvpPKeyHandle key =
_key
.Value;
296
using (SafeEcKeyHandle ecKey = Interop.Crypto.EvpPkeyGetEcKey(
_key
.Value))
306
using (SafeEcKeyHandle ecKey = Interop.Crypto.EvpPkeyGetEcKey(
_key
.Value))
332
if (
_key
!= null &&
_key
.IsValueCreated)
334
SafeEvpPKeyHandle handle =
_key
.Value;
339
[MemberNotNull(nameof(
_key
))]
342
ObjectDisposedException.ThrowIf(
_key
is null, this);
System\Security\Cryptography\ECDsaOpenSsl.cs (2)
71
ForceSetKeySize(Interop.Crypto.EvpPKeyBits(
_key
.Value));
82
return
_key
.Value.DuplicateHandle();