10 references to KEY_MODIFIER_SIZE_IN_BYTES
Microsoft.AspNetCore.DataProtection (10)
Cng\CbcAuthenticatedEncryptor.cs (10)
69
if (ciphertext.Length < checked(
KEY_MODIFIER_SIZE_IN_BYTES
+ _symmetricAlgorithmBlockSizeInBytes + _hmacAlgorithmDigestLengthInBytes))
74
var cbEncryptedDataLength = checked(ciphertext.Length - (int)(
KEY_MODIFIER_SIZE_IN_BYTES
+ _symmetricAlgorithmBlockSizeInBytes + _hmacAlgorithmDigestLengthInBytes));
82
byte* pbIV = &pbKeyModifier[
KEY_MODIFIER_SIZE_IN_BYTES
];
97
cbContext:
KEY_MODIFIER_SIZE_IN_BYTES
,
180
var outputSize = ciphertext.Count - (int)(
KEY_MODIFIER_SIZE_IN_BYTES
+ _symmetricAlgorithmBlockSizeInBytes + _hmacAlgorithmDigestLengthInBytes);
249
return checked((int)(
KEY_MODIFIER_SIZE_IN_BYTES
+ _symmetricAlgorithmBlockSizeInBytes + paddedCiphertextLength + _hmacAlgorithmDigestLengthInBytes));
265
var cbKeyModifierAndIV = checked(
KEY_MODIFIER_SIZE_IN_BYTES
+ _symmetricAlgorithmBlockSizeInBytes);
271
byte* pbIV = &pbKeyModifierAndIV[
KEY_MODIFIER_SIZE_IN_BYTES
];
281
cbContext:
KEY_MODIFIER_SIZE_IN_BYTES
,
322
byte* pbOutputIV = &pbOutputKeyModifier[
KEY_MODIFIER_SIZE_IN_BYTES
];