3 types derived from SafeNCryptHandle
System.Security.Cryptography (3)
Microsoft\Win32\SafeHandles\NCryptSafeHandles.cs (3)
360public sealed class SafeNCryptKeyHandle : SafeNCryptHandle 387public sealed class SafeNCryptProviderHandle : SafeNCryptHandle 406public 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)
5790internal 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) 5796global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeNCryptHandle>.ManagedToUnmanagedIn __hObject_native__marshaller = new(); 5829internal 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) 5834global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeNCryptHandle>.ManagedToUnmanagedIn __hObject_native__marshaller = new();
Microsoft\Win32\SafeHandles\NCryptSafeHandles.cs (5)
67private SafeNCryptHandle? _holder; 106private SafeNCryptHandle? Holder 211internal T Duplicate<T>() where T : SafeNCryptHandle, new() 245private T DuplicateDuplicatedHandle<T>() where T : SafeNCryptHandle, new() 269private T DuplicateOwnerHandle<T>() where T : SafeNCryptHandle, new()
src\runtime\src\libraries\Common\src\Interop\Windows\NCrypt\Interop.Properties.cs (4)
17SafeNCryptHandle hObject, 27SafeNCryptHandle hObject, 33internal static unsafe ErrorCode NCryptGetByteProperty(SafeNCryptHandle hObject, string pszProperty, ref byte result, CngPropertyOptions options = CngPropertyOptions.None) 54internal 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)
17SafeNCryptHandle hObject, 27SafeNCryptHandle hObject, 33internal static unsafe ErrorCode NCryptGetByteProperty(SafeNCryptHandle hObject, string pszProperty, ref byte result, CngPropertyOptions options = CngPropertyOptions.None) 54internal static unsafe ErrorCode NCryptGetIntProperty(SafeNCryptHandle hObject, string pszProperty, ref int result)