9 references to KEY_MODIFIER_SIZE_IN_BYTES
Microsoft.AspNetCore.DataProtection (9)
Cng\CbcAuthenticatedEncryptor.cs (9)
147
if (cbCiphertext < checked(
KEY_MODIFIER_SIZE_IN_BYTES
+ _symmetricAlgorithmBlockSizeInBytes + _hmacAlgorithmDigestLengthInBytes))
154
var cbEncryptedData = checked(cbCiphertext - (
KEY_MODIFIER_SIZE_IN_BYTES
+ _symmetricAlgorithmBlockSizeInBytes + _hmacAlgorithmDigestLengthInBytes));
158
byte* pbIV = &pbKeyModifier[
KEY_MODIFIER_SIZE_IN_BYTES
];
173
cbContext:
KEY_MODIFIER_SIZE_IN_BYTES
,
312
var cbKeyModifierAndIV = checked(
KEY_MODIFIER_SIZE_IN_BYTES
+ _symmetricAlgorithmBlockSizeInBytes);
318
byte* pbIV = &pbKeyModifierAndIV[
KEY_MODIFIER_SIZE_IN_BYTES
];
326
cbContext:
KEY_MODIFIER_SIZE_IN_BYTES
,
341
var retVal = new byte[checked(cbPreBuffer +
KEY_MODIFIER_SIZE_IN_BYTES
+ _symmetricAlgorithmBlockSizeInBytes + cbOutputCiphertext + _hmacAlgorithmDigestLengthInBytes + cbPostBuffer)];
346
byte* pbOutputIV = &pbOutputKeyModifier[
KEY_MODIFIER_SIZE_IN_BYTES
];