20 references to BCryptKeyHandle
Microsoft.AspNetCore.Cryptography.Internal (14)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\LibraryImports.g.cs (8)
303
internal static partial int BCryptDecrypt(global::Microsoft.AspNetCore.Cryptography.SafeHandles.
BCryptKeyHandle
hKey, byte* pbInput, uint cbInput, void* pPaddingInfo, byte* pbIV, uint cbIV, byte* pbOutput, uint cbOutput, out uint pcbResult, global::Microsoft.AspNetCore.Cryptography.Cng.BCryptEncryptFlags dwFlags)
311
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.AspNetCore.Cryptography.SafeHandles.
BCryptKeyHandle
>.ManagedToUnmanagedIn __hKey_native__marshaller = new();
447
internal static partial int BCryptEncrypt(global::Microsoft.AspNetCore.Cryptography.SafeHandles.
BCryptKeyHandle
hKey, byte* pbInput, uint cbInput, void* pPaddingInfo, byte* pbIV, uint cbIV, byte* pbOutput, uint cbOutput, out uint pcbResult, global::Microsoft.AspNetCore.Cryptography.Cng.BCryptEncryptFlags dwFlags)
455
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.AspNetCore.Cryptography.SafeHandles.
BCryptKeyHandle
>.ManagedToUnmanagedIn __hKey_native__marshaller = new();
524
internal static partial int BCryptGenerateSymmetricKey(global::Microsoft.AspNetCore.Cryptography.SafeHandles.BCryptAlgorithmHandle hAlgorithm, out global::Microsoft.AspNetCore.Cryptography.SafeHandles.
BCryptKeyHandle
phKey, nint pbKeyObject, uint cbKeyObject, byte* pbSecret, uint cbSecret, uint dwFlags)
534
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.AspNetCore.Cryptography.SafeHandles.
BCryptKeyHandle
>.ManagedToUnmanagedOut __phKey_native__marshaller = new();
661
internal static partial int BCryptKeyDerivation(global::Microsoft.AspNetCore.Cryptography.SafeHandles.
BCryptKeyHandle
hKey, global::Microsoft.AspNetCore.Cryptography.Cng.BCryptBufferDesc* pParameterList, byte* pbDerivedKey, uint cbDerivedKey, out uint pcbResult, uint dwFlags)
669
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.AspNetCore.Cryptography.SafeHandles.
BCryptKeyHandle
>.ManagedToUnmanagedIn __hKey_native__marshaller = new();
SafeHandles\BCryptAlgorithmHandle.cs (2)
52
public
BCryptKeyHandle
GenerateSymmetricKey(byte* pbSecret, uint cbSecret)
54
BCryptKeyHandle
retVal;
UnsafeNativeMethods.cs (4)
67
BCryptKeyHandle
hKey,
144
BCryptKeyHandle
hKey,
177
out
BCryptKeyHandle
phKey,
233
BCryptKeyHandle
hKey,
Microsoft.AspNetCore.DataProtection (6)
Cng\CbcAuthenticatedEncryptor.cs (4)
127
using (
var
decryptionSubkeyHandle = _symmetricAlgorithmHandle.GenerateSymmetricKey(pbSymmetricEncryptionSubkey, _symmetricAlgorithmSubkeyLengthInBytes))
300
using (
var
symmetricKeyHandle = _symmetricAlgorithmHandle.GenerateSymmetricKey(pbSymmetricEncryptionSubkey, _symmetricAlgorithmSubkeyLengthInBytes))
451
using
var
tempKeyHandle = _symmetricAlgorithmHandle.GenerateSymmetricKey(pbDummyKey, _symmetricAlgorithmSubkeyLengthInBytes);
535
using (
var
symmetricKeyHandle = _symmetricAlgorithmHandle.GenerateSymmetricKey(pbSymmetricEncryptionSubkey, _symmetricAlgorithmSubkeyLengthInBytes))
Cng\CngGcmAuthenticatedEncryptor.cs (2)
109
using (
var
decryptionSubkeyHandle = _symmetricAlgorithmHandle.GenerateSymmetricKey(pbSymmetricDecryptionSubkey, _symmetricAlgorithmSubkeyLengthInBytes))
209
using (
var
keyHandle = _symmetricAlgorithmHandle.GenerateSymmetricKey(pbKey, cbKey))