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)
99return new ECDiffieHellmanOpenSslPublicKey(_key.Value); 114return ECOpenSsl.ExportExplicitParameters(_key.Value, includePrivateParameters); 120return ECOpenSsl.ExportParameters(_key.Value, includePrivateParameters); 143if (_key != null && _key.IsValueCreated) 145SafeEvpPKeyHandle handle = _key.Value; 150[MemberNotNull(nameof(_key))] 153ObjectDisposedException.ThrowIf(_key is null, this);
src\libraries\Common\src\System\Security\Cryptography\ECDiffieHellmanOpenSsl.Derive.cs (4)
89Debug.Assert(_key is not null); // Callers should validate prior. 93using (SafeEcKeyHandle ecKey = Interop.Crypto.EvpPkeyGetEcKey(_key.Value)) 98thisIsNamed = Interop.Crypto.EvpPKeyHasCurveName(_key.Value); 124SafeEvpPKeyHandle? ourKey = _key.Value;
System\Security\Cryptography\ECDiffieHellmanOpenSsl.cs (3)
40KeySizeValue = Interop.Crypto.EvpPKeyBits(_key.Value); 71KeySizeValue = Interop.Crypto.EvpPKeyBits(_key.Value); 82return _key.Value.DuplicateHandle();