1 write to _validationAlgorithmDigestLengthInBytes
Microsoft.AspNetCore.DataProtection (1)
Managed\ManagedAuthenticatedEncryptor.cs (1)
71_validationAlgorithmDigestLengthInBytes = validationAlgorithm.GetDigestSizeInBytes();
14 references to _validationAlgorithmDigestLengthInBytes
Microsoft.AspNetCore.DataProtection (14)
Managed\ManagedAuthenticatedEncryptor.cs (14)
72_validationAlgorithmSubkeyLengthInBytes = _validationAlgorithmDigestLengthInBytes; // for simplicity we'll generate MAC subkeys with a length equal to the digest length 78AlgorithmAssert.IsAllowableValidationAlgorithmDigestSize(checked((uint)_validationAlgorithmDigestLengthInBytes * 8)); 100if (ciphertext.Length < checked(KEY_MODIFIER_SIZE_IN_BYTES + _symmetricAlgorithmBlockSizeInBytes + _validationAlgorithmDigestLengthInBytes)) 106var estimatedDecryptedSize = ciphertext.Length - (KEY_MODIFIER_SIZE_IN_BYTES + _symmetricAlgorithmBlockSizeInBytes + _validationAlgorithmDigestLengthInBytes); 115var macOffset = ciphertext.Length - _validationAlgorithmDigestLengthInBytes; 151var providedMac = ciphertext.Slice(macOffset, _validationAlgorithmDigestLengthInBytes); 198var macLength = _validationAlgorithmDigestLengthInBytes; 305var outputSize = KEY_MODIFIER_SIZE_IN_BYTES + _symmetricAlgorithmBlockSizeInBytes /* IV */ + cipherTextLength + _validationAlgorithmDigestLengthInBytes /* MAC */; 412var hashSize = _validationAlgorithmDigestLengthInBytes; 480var outputSize = protectedPayload.Count - (KEY_MODIFIER_SIZE_IN_BYTES + _symmetricAlgorithmBlockSizeInBytes + _validationAlgorithmDigestLengthInBytes); 613+ _validationAlgorithmDigestLengthInBytes /* digest of HMACed empty string */)]; 627BitHelpers.WriteTo(retVal, ref idx, _validationAlgorithmDigestLengthInBytes); 660CryptoUtil.Assert(digest != null && digest.Length == _validationAlgorithmDigestLengthInBytes, "digest != null && digest.Length == _validationAlgorithmDigestLengthInBytes"); 664idx += _validationAlgorithmDigestLengthInBytes;