1 instantiation of SafeNCryptProviderHandle
System.Core (1)
System\Security\Cryptography\CngKey.cs (1)
735
SafeNCryptProviderHandle kspHandle = new
SafeNCryptProviderHandle
();
23 references to SafeNCryptProviderHandle
System.Core (23)
Microsoft\Win32\SafeHandles\NCryptSafeHandles.cs (2)
412
internal
SafeNCryptProviderHandle
Duplicate() {
413
return Duplicate<
SafeNCryptProviderHandle
>();
System\Security\Cryptography\CngKey.cs (8)
35
private
SafeNCryptProviderHandle
m_kspHandle;
38
private CngKey(
SafeNCryptProviderHandle
kspHandle, SafeNCryptKeyHandle keyHandle) {
295
public
SafeNCryptProviderHandle
ProviderHandle {
440
SafeNCryptProviderHandle
kspHandle = NCryptNative.OpenStorageProvider(creationParameters.Provider.Provider);
517
using (
SafeNCryptProviderHandle
kspHandle = NCryptNative.OpenStorageProvider(provider.Provider)) {
597
SafeNCryptProviderHandle
kspHandle = NCryptNative.OpenStorageProvider(provider.Provider);
713
SafeNCryptProviderHandle
kspHandle = NCryptNative.OpenStorageProvider(provider.Provider);
735
SafeNCryptProviderHandle
kspHandle = new SafeNCryptProviderHandle();
System\Security\Cryptography\NCryptNative.cs (13)
223
internal static extern ErrorCode NCryptCreatePersistedKey(
SafeNCryptProviderHandle
hProvider,
305
internal static extern ErrorCode NCryptImportKey(
SafeNCryptProviderHandle
hProvider,
318
internal static extern ErrorCode NCryptOpenKey(
SafeNCryptProviderHandle
hProvider,
328
internal static extern ErrorCode NCryptOpenStorageProvider([Out] out
SafeNCryptProviderHandle
phProvider,
975
internal static SafeNCryptKeyHandle CreatePersistedKey(
SafeNCryptProviderHandle
provider,
1529
internal static SafeNCryptKeyHandle ImportKey(
SafeNCryptProviderHandle
provider,
1557
internal static SafeNCryptKeyHandle ImportKey(
SafeNCryptProviderHandle
provider,
1590
internal static SafeNCryptKeyHandle OpenKey(
SafeNCryptProviderHandle
provider,
1610
internal static
SafeNCryptProviderHandle
OpenStorageProvider(string providerName) {
1612
Contract.Ensures(Contract.Result<
SafeNCryptProviderHandle
>() != null &&
1613
!Contract.Result<
SafeNCryptProviderHandle
>().IsInvalid &&
1614
!Contract.Result<
SafeNCryptProviderHandle
>().IsClosed);
1616
SafeNCryptProviderHandle
providerHandle = null;