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)
277SafeEvpPKeyHandle key = _key.Value; 296using (SafeEcKeyHandle ecKey = Interop.Crypto.EvpPkeyGetEcKey(_key.Value)) 306using (SafeEcKeyHandle ecKey = Interop.Crypto.EvpPkeyGetEcKey(_key.Value)) 332if (_key != null && _key.IsValueCreated) 334SafeEvpPKeyHandle handle = _key.Value; 339[MemberNotNull(nameof(_key))] 342ObjectDisposedException.ThrowIf(_key is null, this);
System\Security\Cryptography\ECDsaOpenSsl.cs (2)
71ForceSetKeySize(Interop.Crypto.EvpPKeyBits(_key.Value)); 82return _key.Value.DuplicateHandle();