1 instantiation of SafeNCryptProviderHandle
System.Security.Cryptography (1)
System\Security\Cryptography\CngKey.OpenHandle.cs (1)
36providerHandle = new SafeNCryptProviderHandle();
32 references to SafeNCryptProviderHandle
System.Core (1)
System.Core.cs (1)
8[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(Microsoft.Win32.SafeHandles.SafeNCryptProviderHandle))]
System.Security.Cryptography (30)
_generated\0\LibraryImports.g.cs (10)
4963internal static partial global::Interop.NCrypt.ErrorCode NCryptOpenKey(global::Microsoft.Win32.SafeHandles.SafeNCryptProviderHandle hProvider, out global::Microsoft.Win32.SafeHandles.SafeNCryptKeyHandle phKey, string pszKeyName, int dwLegacyKeySpec, global::System.Security.Cryptography.CngKeyOpenOptions dwFlags) 4972global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeNCryptProviderHandle>.ManagedToUnmanagedIn __hProvider_native__marshaller = new(); 5015internal static partial global::Interop.NCrypt.ErrorCode NCryptImportKey(global::Microsoft.Win32.SafeHandles.SafeNCryptProviderHandle hProvider, nint hImportKey, string pszBlobType, nint pParameterList, out global::Microsoft.Win32.SafeHandles.SafeNCryptKeyHandle phKey, ref byte pbData, int cbData, int dwFlags) 5024global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeNCryptProviderHandle>.ManagedToUnmanagedIn __hProvider_native__marshaller = new(); 5068internal static partial global::Interop.NCrypt.ErrorCode NCryptImportKey(global::Microsoft.Win32.SafeHandles.SafeNCryptProviderHandle hProvider, nint hImportKey, string pszBlobType, ref global::Interop.NCrypt.NCryptBufferDesc pParameterList, out global::Microsoft.Win32.SafeHandles.SafeNCryptKeyHandle phKey, ref byte pbData, int cbData, int dwFlags) 5077global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeNCryptProviderHandle>.ManagedToUnmanagedIn __hProvider_native__marshaller = new(); 5313internal static partial global::Interop.NCrypt.ErrorCode NCryptCreatePersistedKey(global::Microsoft.Win32.SafeHandles.SafeNCryptProviderHandle hProvider, out global::Microsoft.Win32.SafeHandles.SafeNCryptKeyHandle phKey, string pszAlgId, string pszKeyName, int dwLegacyKeySpec, global::System.Security.Cryptography.CngKeyCreationOptions dwFlags) 5322global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeNCryptProviderHandle>.ManagedToUnmanagedIn __hProvider_native__marshaller = new(); 5618internal static partial global::Interop.NCrypt.ErrorCode NCryptOpenStorageProvider(out global::Microsoft.Win32.SafeHandles.SafeNCryptProviderHandle phProvider, string pszProviderName, int dwFlags) 5625global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeNCryptProviderHandle>.ManagedToUnmanagedOut __phProvider_native__marshaller = new();
Microsoft\Win32\SafeHandles\NCryptSafeHandles.cs (2)
381internal SafeNCryptProviderHandle Duplicate() 383return Duplicate<SafeNCryptProviderHandle>();
src\runtime\src\libraries\Common\src\Interop\Windows\NCrypt\Interop.Keys.cs (4)
20internal static partial ErrorCode NCryptOpenKey(SafeNCryptProviderHandle hProvider, out SafeNCryptKeyHandle phKey, string pszKeyName, int dwLegacyKeySpec, CngKeyOpenOptions dwFlags); 23internal static partial ErrorCode NCryptImportKey(SafeNCryptProviderHandle hProvider, IntPtr hImportKey, string pszBlobType, IntPtr pParameterList, out SafeNCryptKeyHandle phKey, ref byte pbData, int cbData, int dwFlags); 26internal static partial ErrorCode NCryptImportKey(SafeNCryptProviderHandle hProvider, IntPtr hImportKey, string pszBlobType, ref NCryptBufferDesc pParameterList, out SafeNCryptKeyHandle phKey, ref byte pbData, int cbData, int dwFlags); 44internal static partial ErrorCode NCryptCreatePersistedKey(SafeNCryptProviderHandle hProvider, out SafeNCryptKeyHandle phKey, string pszAlgId, string? pszKeyName, int dwLegacyKeySpec, CngKeyCreationOptions dwFlags);
src\runtime\src\libraries\Common\src\Interop\Windows\NCrypt\Interop.NCryptOpenStorageProvider.cs (1)
12internal static partial ErrorCode NCryptOpenStorageProvider(out SafeNCryptProviderHandle phProvider, string pszProviderName, int dwFlags);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CngHelpers.cs (2)
20internal static SafeNCryptProviderHandle OpenStorageProvider(this CngProvider provider) 23out SafeNCryptProviderHandle providerHandle,
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECCng.ImportExport.NamedCurve.cs (1)
148SafeNCryptProviderHandle provider,
System\Security\Cryptography\CngKey.Create.cs (1)
41SafeNCryptProviderHandle providerHandle = creationParameters.Provider!.OpenStorageProvider();
System\Security\Cryptography\CngKey.cs (2)
15private readonly SafeNCryptProviderHandle _providerHandle; 17private CngKey(SafeNCryptProviderHandle providerHandle, SafeNCryptKeyHandle keyHandle)
System\Security\Cryptography\CngKey.Exists.cs (1)
38using (SafeNCryptProviderHandle providerHandle = provider.OpenStorageProvider())
System\Security\Cryptography\CngKey.Import.cs (2)
54SafeNCryptProviderHandle providerHandle = provider.OpenStorageProvider(); 123SafeNCryptProviderHandle providerHandle = provider.OpenStorageProvider();
System\Security\Cryptography\CngKey.Open.cs (1)
38SafeNCryptProviderHandle providerHandle = provider.OpenStorageProvider();
System\Security\Cryptography\CngKey.OpenHandle.cs (1)
32SafeNCryptProviderHandle? providerHandle = null;
System\Security\Cryptography\CngKey.StandardProperties.cs (1)
315public SafeNCryptProviderHandle ProviderHandle
System\Security\Cryptography\X25519DiffieHellmanCng.Windows.cs (1)
72using (SafeNCryptProviderHandle providerHandle = provider.OpenStorageProvider())
System.Security.Cryptography.Cng (1)
System.Security.Cryptography.Cng.cs (1)
6[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(Microsoft.Win32.SafeHandles.SafeNCryptProviderHandle))]