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