1 write to _symmetricAlgorithmSubkeyLengthInBytes
Microsoft.AspNetCore.DataProtection (1)
Cng\CbcAuthenticatedEncryptor.cs (1)
46
_symmetricAlgorithmSubkeyLengthInBytes
= symmetricAlgorithmKeySizeInBytes;
11 references to _symmetricAlgorithmSubkeyLengthInBytes
Microsoft.AspNetCore.DataProtection (11)
Cng\CbcAuthenticatedEncryptor.cs (11)
53
AlgorithmAssert.IsAllowableSymmetricAlgorithmKeySize(checked(
_symmetricAlgorithmSubkeyLengthInBytes
* 8));
80
BitHelpers.WriteTo(ref ptr,
_symmetricAlgorithmSubkeyLengthInBytes
);
88
var tempKeys = new byte[
_symmetricAlgorithmSubkeyLengthInBytes
+ _hmacAlgorithmSubkeyLengthInBytes];
107
byte* pbHmacSubkey = &pbTempKeys[
_symmetricAlgorithmSubkeyLengthInBytes
];
110
using (var symmetricKeyHandle = _symmetricAlgorithmHandle.GenerateSymmetricKey(pbSymmetricEncryptionSubkey,
_symmetricAlgorithmSubkeyLengthInBytes
))
164
var cbTempSubkeys = checked(
_symmetricAlgorithmSubkeyLengthInBytes
+ _hmacAlgorithmSubkeyLengthInBytes);
179
byte* pbHmacSubkey = &pbTempSubkeys[
_symmetricAlgorithmSubkeyLengthInBytes
];
193
using (var decryptionSubkeyHandle = _symmetricAlgorithmHandle.GenerateSymmetricKey(pbSymmetricEncryptionSubkey,
_symmetricAlgorithmSubkeyLengthInBytes
))
306
var cbTempSubkeys = checked(
_symmetricAlgorithmSubkeyLengthInBytes
+ _hmacAlgorithmSubkeyLengthInBytes);
332
byte* pbHmacSubkey = &pbTempSubkeys[
_symmetricAlgorithmSubkeyLengthInBytes
];
334
using (var symmetricKeyHandle = _symmetricAlgorithmHandle.GenerateSymmetricKey(pbSymmetricEncryptionSubkey,
_symmetricAlgorithmSubkeyLengthInBytes
))