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