19 references to SafeKeyHandle
System.Security.Cryptography (19)
_generated\0\LibraryImports.g.cs (6)
1611
public 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)
1617
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Internal.NativeCrypto.
SafeKeyHandle
>.ManagedToUnmanagedIn __hKey_native__marshaller = new();
1649
public 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)
1655
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Internal.NativeCrypto.
SafeKeyHandle
>.ManagedToUnmanagedIn __hKey_native__marshaller = new();
2135
private 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)
2143
global::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)
15
internal static int BCryptEncrypt(
SafeKeyHandle
hKey, ReadOnlySpan<byte> input, byte[]? iv, Span<byte> output)
36
internal static int BCryptDecrypt(
SafeKeyHandle
hKey, ReadOnlySpan<byte> input, byte[]? iv, Span<byte> output)
57
public 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);
60
public 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)
14
internal static unsafe
SafeKeyHandle
BCryptImportKey(SafeAlgorithmHandle hAlg, ReadOnlySpan<byte> key)
42
SafeKeyHandle
hKey;
65
private 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)
14
SafeKeyHandle
keyHandle,
58
SafeKeyHandle
keyHandle,
src\runtime\src\libraries\Common\src\System\Security\Cryptography\AesGcm.Windows.cs (1)
13
private
SafeKeyHandle
_keyHandle;
System\Security\Cryptography\AesCcm.Windows.cs (1)
12
private
SafeKeyHandle
_keyHandle;
System\Security\Cryptography\BasicSymmetricCipherLiteBCrypt.cs (1)
14
private
SafeKeyHandle
_hKey;
System\Security\Cryptography\ChaCha20Poly1305.Windows.cs (1)
12
private
SafeKeyHandle
_keyHandle;