10 references to KEY_MODIFIER_SIZE_IN_BYTES
Microsoft.AspNetCore.DataProtection (10)
Cng\CbcAuthenticatedEncryptor.cs (10)
79
if (ciphertext.Length < checked(
KEY_MODIFIER_SIZE_IN_BYTES
+ _symmetricAlgorithmBlockSizeInBytes + _hmacAlgorithmDigestLengthInBytes))
84
var cbEncryptedDataLength = checked(ciphertext.Length - (int)(
KEY_MODIFIER_SIZE_IN_BYTES
+ _symmetricAlgorithmBlockSizeInBytes + _hmacAlgorithmDigestLengthInBytes));
92
byte* pbIV = &pbKeyModifier[
KEY_MODIFIER_SIZE_IN_BYTES
];
107
cbContext:
KEY_MODIFIER_SIZE_IN_BYTES
,
190
var outputSize = ciphertext.Count - (int)(
KEY_MODIFIER_SIZE_IN_BYTES
+ _symmetricAlgorithmBlockSizeInBytes + _hmacAlgorithmDigestLengthInBytes);
259
return checked((int)(
KEY_MODIFIER_SIZE_IN_BYTES
+ _symmetricAlgorithmBlockSizeInBytes + paddedCiphertextLength + _hmacAlgorithmDigestLengthInBytes));
275
var cbKeyModifierAndIV = checked(
KEY_MODIFIER_SIZE_IN_BYTES
+ _symmetricAlgorithmBlockSizeInBytes);
281
byte* pbIV = &pbKeyModifierAndIV[
KEY_MODIFIER_SIZE_IN_BYTES
];
291
cbContext:
KEY_MODIFIER_SIZE_IN_BYTES
,
332
byte* pbOutputIV = &pbOutputKeyModifier[
KEY_MODIFIER_SIZE_IN_BYTES
];