17 references to CngKeyHandleOpenOptions
System.Core (1)
System.Core.cs (1)
208[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.CngKeyHandleOpenOptions))]
System.Security.Cryptography (12)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CngHelpers.cs (2)
344return CngKey.Open(keyHandle, isEphemeral ? CngKeyHandleOpenOptions.EphemeralKey : CngKeyHandleOpenOptions.None);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X509Certificates\CertificateHelpers.Windows.cs (4)
82SafeNCryptKeyHandle? ncryptKey = TryAcquireCngPrivateKey(certContext, out CngKeyHandleOpenOptions cngHandleOptions); 130out CngKeyHandleOpenOptions handleOptions) 147handleOptions = CngKeyHandleOpenOptions.EphemeralKey; 154handleOptions = CngKeyHandleOpenOptions.None;
System\Security\Cryptography\CngAlgorithmCore.cs (2)
29return CngKey.Open(key.HandleNoDuplicate, key.IsEphemeral ? CngKeyHandleOpenOptions.EphemeralKey : CngKeyHandleOpenOptions.None);
System\Security\Cryptography\CngKey.OpenHandle.cs (4)
19public static CngKey Open(SafeNCryptKeyHandle keyHandle, CngKeyHandleOpenOptions keyHandleOpenOptions) 30internal static CngKey OpenNoDuplicate(SafeNCryptKeyHandle keyHandle, CngKeyHandleOpenOptions keyHandleOpenOptions) 57bool openingEphemeralKey = (keyHandleOpenOptions & CngKeyHandleOpenOptions.EphemeralKey) == CngKeyHandleOpenOptions.EphemeralKey;
System.Security.Cryptography.Cng (1)
System.Security.Cryptography.Cng.cs (1)
16[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.CngKeyHandleOpenOptions))]
System.Security.Cryptography.Pkcs (3)
Internal\Cryptography\Pal\Windows\PkcsPalWindows.cs (3)
136CngKeyHandleOpenOptions options = CngKeyHandleOpenOptions.None; 142options |= CngKeyHandleOpenOptions.EphemeralKey;