5 references to KEY_MODIFIER_SIZE_IN_BYTES
Microsoft.AspNetCore.DataProtection (5)
Managed\ManagedAuthenticatedEncryptor.cs (5)
165if (protectedPayload.Count < checked(KEY_MODIFIER_SIZE_IN_BYTES + _symmetricAlgorithmBlockSizeInBytes + _validationAlgorithmDigestLengthInBytes)) 185ivOffset = keyModifierOffset + KEY_MODIFIER_SIZE_IN_BYTES; 292var keyModifier = _genRandom.GenRandom(KEY_MODIFIER_SIZE_IN_BYTES); 349var mac = validationAlgorithm.ComputeHash(underlyingBuffer, KEY_MODIFIER_SIZE_IN_BYTES, checked((int)outputStream.Length - KEY_MODIFIER_SIZE_IN_BYTES));