20 references to BCryptKeyHandle
Microsoft.AspNetCore.Cryptography.Internal (6)
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.Cryptography.KeyDerivation (4)
PBKDF2\Win8Pbkdf2Provider.cs (4)
32
using (
BCryptKeyHandle
keyHandle = PasswordToPbkdfKeyHandle(password, CachedAlgorithmHandles.PBKDF2, prf))
58
private static
BCryptKeyHandle
PasswordToPbkdfKeyHandle(string password, BCryptAlgorithmHandle pbkdf2AlgHandle, KeyDerivationPrf prf)
98
private static
BCryptKeyHandle
PasswordToPbkdfKeyHandleStep2(BCryptAlgorithmHandle pbkdf2AlgHandle, byte* pbPassword, uint cbPassword, KeyDerivationPrf prf)
155
private static void DeriveKeyCore(
BCryptKeyHandle
pbkdf2KeyHandle, string hashAlgorithm, byte* pbSalt, uint cbSalt, ulong iterCount, byte* pbDerivedBytes, uint cbDerivedBytes)
Microsoft.AspNetCore.DataProtection (10)
Cng\CbcAuthenticatedEncryptor.cs (6)
110
using (
var
symmetricKeyHandle = _symmetricAlgorithmHandle.GenerateSymmetricKey(pbSymmetricEncryptionSubkey, _symmetricAlgorithmSubkeyLengthInBytes))
193
using (
var
decryptionSubkeyHandle = _symmetricAlgorithmHandle.GenerateSymmetricKey(pbSymmetricEncryptionSubkey, _symmetricAlgorithmSubkeyLengthInBytes))
214
private byte[] DoCbcDecrypt(
BCryptKeyHandle
symmetricKeyHandle, byte* pbIV, byte* pbInput, uint cbInput)
278
private void DoCbcEncrypt(
BCryptKeyHandle
symmetricKeyHandle, byte* pbIV, byte* pbInput, uint cbInput, byte* pbOutput, uint cbOutput)
334
using (
var
symmetricKeyHandle = _symmetricAlgorithmHandle.GenerateSymmetricKey(pbSymmetricEncryptionSubkey, _symmetricAlgorithmSubkeyLengthInBytes))
390
private uint GetCbcEncryptedOutputSizeWithPadding(
BCryptKeyHandle
symmetricKeyHandle, byte* pbInput, uint cbInput)
Cng\CngGcmAuthenticatedEncryptor.cs (2)
153
using (
var
decryptionSubkeyHandle = _symmetricAlgorithmHandle.GenerateSymmetricKey(pbSymmetricDecryptionSubkey, _symmetricAlgorithmSubkeyLengthInBytes))
214
using (
var
keyHandle = _symmetricAlgorithmHandle.GenerateSymmetricKey(pbKey, cbKey))
SP800_108\Win8SP800_108_CTR_HMACSHA512Provider.cs (2)
13
private readonly
BCryptKeyHandle
_keyHandle;
73
private static
BCryptKeyHandle
ImportKey(byte* pbKdk, uint cbKdk)