19 references to SafeKeyHandle
System.Security.Cryptography (19)
_generated\0\LibraryImports.g.cs (6)
1611public static unsafe partial global::Interop.BCrypt.NTSTATUS BCryptEncrypt(global::Internal.NativeCrypto.SafeKeyHandle hKey, byte* pbInput, int cbInput, nint paddingInfo, byte[] pbIV, int cbIV, byte* pbOutput, int cbOutput, out int cbResult, int dwFlags) 1617global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Internal.NativeCrypto.SafeKeyHandle>.ManagedToUnmanagedIn __hKey_native__marshaller = new(); 1649public static unsafe partial global::Interop.BCrypt.NTSTATUS BCryptDecrypt(global::Internal.NativeCrypto.SafeKeyHandle hKey, byte* pbInput, int cbInput, nint paddingInfo, byte[] pbIV, int cbIV, byte* pbOutput, int cbOutput, out int cbResult, int dwFlags) 1655global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Internal.NativeCrypto.SafeKeyHandle>.ManagedToUnmanagedIn __hKey_native__marshaller = new(); 2135private static unsafe partial global::Interop.BCrypt.NTSTATUS BCryptImportKey(global::Internal.NativeCrypto.SafeAlgorithmHandle hAlgorithm, nint hImportKey, string pszBlobType, out global::Internal.NativeCrypto.SafeKeyHandle hKey, nint pbKeyObject, int cbKeyObject, byte* pbInput, int cbInput, int dwFlags) 2143global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Internal.NativeCrypto.SafeKeyHandle>.ManagedToUnmanagedOut __hKey_native__marshaller = new();
src\runtime\src\libraries\Common\src\Interop\Windows\BCrypt\Interop.BCryptEncryptDecrypt.cs (4)
15internal static int BCryptEncrypt(SafeKeyHandle hKey, ReadOnlySpan<byte> input, byte[]? iv, Span<byte> output) 36internal static int BCryptDecrypt(SafeKeyHandle hKey, ReadOnlySpan<byte> input, byte[]? iv, Span<byte> output) 57public static unsafe partial NTSTATUS BCryptEncrypt(SafeKeyHandle hKey, byte* pbInput, int cbInput, IntPtr paddingInfo, byte[]? pbIV, int cbIV, byte* pbOutput, int cbOutput, out int cbResult, int dwFlags); 60public static unsafe partial NTSTATUS BCryptDecrypt(SafeKeyHandle hKey, byte* pbInput, int cbInput, IntPtr paddingInfo, byte[]? pbIV, int cbIV, byte* pbOutput, int cbOutput, out int cbResult, int dwFlags);
src\runtime\src\libraries\Common\src\Interop\Windows\BCrypt\Interop.BCryptImportKey.cs (3)
14internal static unsafe SafeKeyHandle BCryptImportKey(SafeAlgorithmHandle hAlg, ReadOnlySpan<byte> key) 42SafeKeyHandle hKey; 65private static unsafe partial NTSTATUS BCryptImportKey(SafeAlgorithmHandle hAlgorithm, IntPtr hImportKey, string pszBlobType, out SafeKeyHandle hKey, IntPtr pbKeyObject, int cbKeyObject, byte* pbInput, int cbInput, int dwFlags);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\AeadCommon.Windows.cs (2)
14SafeKeyHandle keyHandle, 58SafeKeyHandle keyHandle,
src\runtime\src\libraries\Common\src\System\Security\Cryptography\AesGcm.Windows.cs (1)
13private SafeKeyHandle _keyHandle;
System\Security\Cryptography\AesCcm.Windows.cs (1)
12private SafeKeyHandle _keyHandle;
System\Security\Cryptography\BasicSymmetricCipherLiteBCrypt.cs (1)
14private SafeKeyHandle _hKey;
System\Security\Cryptography\ChaCha20Poly1305.Windows.cs (1)
12private SafeKeyHandle _keyHandle;