2 writes to _hKey
System.Security.Cryptography (2)
System\Security\Cryptography\BasicSymmetricCipherCsp.cs (2)
22
_hKey
= ImportCspBlob(_hProvider, algId, key, addNoSaltFlag);
49
_hKey
= null!;
8 references to _hKey
System.Security.Cryptography (8)
System\Security\Cryptography\BasicSymmetricCipherCsp.cs (8)
24
SetKeyParameter(
_hKey
, CryptGetKeyParamQueryType.KP_MODE, (int)cipherMode);
27
SetKeyParameter(
_hKey
, CryptGetKeyParamQueryType.KP_MODE_BITS, feedbackSize);
33
SetKeyParameter(
_hKey
, CryptGetKeyParamQueryType.KP_IV, currentIv);
38
SetKeyParameter(
_hKey
, CryptGetKeyParamQueryType.KP_EFFECTIVE_KEYLEN, key.Length * 8);
46
SafeCapiKeyHandle hKey =
_hKey
;
89
EncryptData(
_hKey
, default, default, true);
100
numBytesWritten = EncryptData(
_hKey
, input, output, isFinal);
104
numBytesWritten = DecryptData(
_hKey
, input, output);