3 types derived from SafeNCryptHandle
System.Security.Cryptography (3)
Microsoft\Win32\SafeHandles\NCryptSafeHandles.cs (3)
349
public sealed class SafeNCryptKeyHandle :
SafeNCryptHandle
376
public sealed class SafeNCryptProviderHandle :
SafeNCryptHandle
395
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)
5793
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)
5799
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeNCryptHandle
>.ManagedToUnmanagedIn __hObject_native__marshaller = new();
5832
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)
5837
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeNCryptHandle
>.ManagedToUnmanagedIn __hObject_native__marshaller = new();
Microsoft\Win32\SafeHandles\NCryptSafeHandles.cs (5)
65
private
SafeNCryptHandle
? _holder;
104
private
SafeNCryptHandle
? Holder
209
internal T Duplicate<T>() where T :
SafeNCryptHandle
, new()
234
private T DuplicateDuplicatedHandle<T>() where T :
SafeNCryptHandle
, new()
258
private T DuplicateOwnerHandle<T>() where T :
SafeNCryptHandle
, new()
src\runtime\src\libraries\Common\src\Interop\Windows\NCrypt\Interop.Properties.cs (4)
18
SafeNCryptHandle
hObject,
28
SafeNCryptHandle
hObject,
35
internal static unsafe ErrorCode NCryptGetByteProperty(
SafeNCryptHandle
hObject, string pszProperty, ref byte result, CngPropertyOptions options = CngPropertyOptions.None)
56
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)
18
SafeNCryptHandle
hObject,
28
SafeNCryptHandle
hObject,
35
internal static unsafe ErrorCode NCryptGetByteProperty(
SafeNCryptHandle
hObject, string pszProperty, ref byte result, CngPropertyOptions options = CngPropertyOptions.None)
56
internal static unsafe ErrorCode NCryptGetIntProperty(
SafeNCryptHandle
hObject, string pszProperty, ref int result)