20 references to BCryptKeyHandle
Microsoft.AspNetCore.Cryptography.Internal (14)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\LibraryImports.g.cs (8)
303internal 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) 311global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.AspNetCore.Cryptography.SafeHandles.BCryptKeyHandle>.ManagedToUnmanagedIn __hKey_native__marshaller = new(); 447internal 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) 455global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.AspNetCore.Cryptography.SafeHandles.BCryptKeyHandle>.ManagedToUnmanagedIn __hKey_native__marshaller = new(); 524internal 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) 534global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.AspNetCore.Cryptography.SafeHandles.BCryptKeyHandle>.ManagedToUnmanagedOut __phKey_native__marshaller = new(); 661internal 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) 669global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.AspNetCore.Cryptography.SafeHandles.BCryptKeyHandle>.ManagedToUnmanagedIn __hKey_native__marshaller = new();
SafeHandles\BCryptAlgorithmHandle.cs (2)
52public BCryptKeyHandle GenerateSymmetricKey(byte* pbSecret, uint cbSecret) 54BCryptKeyHandle retVal;
UnsafeNativeMethods.cs (4)
67BCryptKeyHandle hKey, 144BCryptKeyHandle hKey, 177out BCryptKeyHandle phKey, 233BCryptKeyHandle hKey,
Microsoft.AspNetCore.DataProtection (6)
Cng\CbcAuthenticatedEncryptor.cs (4)
127using (var decryptionSubkeyHandle = _symmetricAlgorithmHandle.GenerateSymmetricKey(pbSymmetricEncryptionSubkey, _symmetricAlgorithmSubkeyLengthInBytes)) 300using (var symmetricKeyHandle = _symmetricAlgorithmHandle.GenerateSymmetricKey(pbSymmetricEncryptionSubkey, _symmetricAlgorithmSubkeyLengthInBytes)) 451using var tempKeyHandle = _symmetricAlgorithmHandle.GenerateSymmetricKey(pbDummyKey, _symmetricAlgorithmSubkeyLengthInBytes); 535using (var symmetricKeyHandle = _symmetricAlgorithmHandle.GenerateSymmetricKey(pbSymmetricEncryptionSubkey, _symmetricAlgorithmSubkeyLengthInBytes))
Cng\CngGcmAuthenticatedEncryptor.cs (2)
109using (var decryptionSubkeyHandle = _symmetricAlgorithmHandle.GenerateSymmetricKey(pbSymmetricDecryptionSubkey, _symmetricAlgorithmSubkeyLengthInBytes)) 209using (var keyHandle = _symmetricAlgorithmHandle.GenerateSymmetricKey(pbKey, cbKey))