3 types derived from SafeNCryptHandle
System.Security.Cryptography (3)
Microsoft\Win32\SafeHandles\NCryptSafeHandles.cs (3)
360
public sealed class SafeNCryptKeyHandle :
SafeNCryptHandle
387
public sealed class SafeNCryptProviderHandle :
SafeNCryptHandle
406
public sealed class SafeNCryptSecretHandle :
SafeNCryptHandle
28 references to SafeNCryptHandle
System.Core (1)
System.Core.cs (1)
6
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(Microsoft.Win32.SafeHandles.
SafeNCryptHandle
))]
System.Security.Cryptography (18)
_generated\0\LibraryImports.g.cs (4)
5790
internal static unsafe partial global::Interop.NCrypt.ErrorCode NCryptGetProperty(global::Microsoft.Win32.SafeHandles.
SafeNCryptHandle
hObject, string pszProperty, void* pbOutput, int cbOutput, out int pcbResult, global::System.Security.Cryptography.CngPropertyOptions dwFlags)
5796
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeNCryptHandle
>.ManagedToUnmanagedIn __hObject_native__marshaller = new();
5829
internal static unsafe partial global::Interop.NCrypt.ErrorCode NCryptSetProperty(global::Microsoft.Win32.SafeHandles.
SafeNCryptHandle
hObject, string pszProperty, void* pbInput, int cbInput, global::System.Security.Cryptography.CngPropertyOptions dwFlags)
5834
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeNCryptHandle
>.ManagedToUnmanagedIn __hObject_native__marshaller = new();
Microsoft\Win32\SafeHandles\NCryptSafeHandles.cs (5)
67
private
SafeNCryptHandle
? _holder;
106
private
SafeNCryptHandle
? Holder
211
internal T Duplicate<T>() where T :
SafeNCryptHandle
, new()
245
private T DuplicateDuplicatedHandle<T>() where T :
SafeNCryptHandle
, new()
269
private T DuplicateOwnerHandle<T>() where T :
SafeNCryptHandle
, new()
src\runtime\src\libraries\Common\src\Interop\Windows\NCrypt\Interop.Properties.cs (4)
17
SafeNCryptHandle
hObject,
27
SafeNCryptHandle
hObject,
33
internal static unsafe ErrorCode NCryptGetByteProperty(
SafeNCryptHandle
hObject, string pszProperty, ref byte result, CngPropertyOptions options = CngPropertyOptions.None)
54
internal static unsafe ErrorCode NCryptGetIntProperty(
SafeNCryptHandle
hObject, string pszProperty, ref int result)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CngHelpers.cs (2)
61
internal static byte[]? GetProperty(this
SafeNCryptHandle
ncryptHandle, string propertyName, CngPropertyOptions options)
117
internal static string? GetPropertyAsString(this
SafeNCryptHandle
ncryptHandle, string propertyName, CngPropertyOptions options)
System\Security\Cryptography\CngHelpers.cs (3)
25
public static int GetPropertyAsDword(this
SafeNCryptHandle
ncryptHandle, string propertyName, CngPropertyOptions options) =>
33
internal static IntPtr GetPropertyAsIntPtr(this
SafeNCryptHandle
ncryptHandle, string propertyName, CngPropertyOptions options) =>
36
private static unsafe T GetPropertyAsPrimitive<T>(
SafeNCryptHandle
ncryptHandle, string propertyName, CngPropertyOptions options)
System.Security.Cryptography.Cng (1)
System.Security.Cryptography.Cng.cs (1)
4
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(Microsoft.Win32.SafeHandles.
SafeNCryptHandle
))]
System.Security.Cryptography.Pkcs (8)
_generated\0\LibraryImports.g.cs (4)
1345
internal static unsafe partial global::Interop.NCrypt.ErrorCode NCryptGetProperty(global::Microsoft.Win32.SafeHandles.
SafeNCryptHandle
hObject, string pszProperty, void* pbOutput, int cbOutput, out int pcbResult, global::System.Security.Cryptography.CngPropertyOptions dwFlags)
1351
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeNCryptHandle
>.ManagedToUnmanagedIn __hObject_native__marshaller = new();
1385
internal static unsafe partial global::Interop.NCrypt.ErrorCode NCryptSetProperty(global::Microsoft.Win32.SafeHandles.
SafeNCryptHandle
hObject, string pszProperty, void* pbInput, int cbInput, global::System.Security.Cryptography.CngPropertyOptions dwFlags)
1390
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeNCryptHandle
>.ManagedToUnmanagedIn __hObject_native__marshaller = new();
src\runtime\src\libraries\Common\src\Interop\Windows\NCrypt\Interop.Properties.cs (4)
17
SafeNCryptHandle
hObject,
27
SafeNCryptHandle
hObject,
33
internal static unsafe ErrorCode NCryptGetByteProperty(
SafeNCryptHandle
hObject, string pszProperty, ref byte result, CngPropertyOptions options = CngPropertyOptions.None)
54
internal static unsafe ErrorCode NCryptGetIntProperty(
SafeNCryptHandle
hObject, string pszProperty, ref int result)