1 instantiation of SafeCspHandle
System.Core (1)
Microsoft\Win32\SafeHandles\CapiSafeHandles.cs (1)
385SafeCspHandle duplicate = new SafeCspHandle();
22 references to SafeCspHandle
System.Core (22)
Microsoft\Win32\SafeHandles\CapiSafeHandles.cs (4)
142internal void SetParentCsp(SafeCspHandle parentCsp) { 348private static extern bool CryptContextAddRef(SafeCspHandle hProv, 370public SafeCspHandle Duplicate() { 385SafeCspHandle duplicate = new SafeCspHandle();
System\Security\Cryptography\AesCryptoServiceProvider.cs (2)
29private SafeCspHandle m_cspHandle; 299private static KeySizes[] FindSupportedKeySizes(SafeCspHandle csp, out int defaultKeySize) {
System\Security\Cryptography\CapiHashAlgorithm.cs (1)
23private SafeCspHandle m_cspHandle;
System\Security\Cryptography\CapiNative.cs (13)
257public static extern bool CryptAcquireContext([Out] out SafeCspHandle phProv, 271public static extern bool CryptCreateHash(SafeCspHandle hProv, 347public static extern bool CryptGenKey(SafeCspHandle hProv, 360public static extern bool CryptGenRandom(SafeCspHandle hProv, 386public static extern bool CryptGetProvParam(SafeCspHandle hProv, 413public static extern bool CryptImportKey(SafeCspHandle hProv, 506internal static SafeCspHandle AcquireCsp(string keyContainer, 511Contract.Ensures(Contract.Result<SafeCspHandle>() != null && 512!Contract.Result<SafeCspHandle>().IsInvalid && 513!Contract.Result<SafeCspHandle>().IsClosed); 515SafeCspHandle cspHandle = null; 643internal static T GetProviderParameterStruct<T>(SafeCspHandle provider, 717internal static SafeCapiKeyHandle ImportSymmetricKey(SafeCspHandle provider, AlgorithmId algorithm, byte[] key) {
System\Security\Cryptography\CapiSymmetricAlgorithm.cs (2)
38private SafeCspHandle m_provider; 44SafeCspHandle provider,