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