1 write to _validationAlgorithmDigestLengthInBytes
Microsoft.AspNetCore.DataProtection (1)
Managed\ManagedAuthenticatedEncryptor.cs (1)
63_validationAlgorithmDigestLengthInBytes = validationAlgorithm.GetDigestSizeInBytes();
13 references to _validationAlgorithmDigestLengthInBytes
Microsoft.AspNetCore.DataProtection (13)
Managed\ManagedAuthenticatedEncryptor.cs (13)
64_validationAlgorithmSubkeyLengthInBytes = _validationAlgorithmDigestLengthInBytes; // for simplicity we'll generate MAC subkeys with a length equal to the digest length 70AlgorithmAssert.IsAllowableValidationAlgorithmDigestSize(checked((uint)_validationAlgorithmDigestLengthInBytes * 8)); 92if (ciphertext.Length < checked(KEY_MODIFIER_SIZE_IN_BYTES + _symmetricAlgorithmBlockSizeInBytes + _validationAlgorithmDigestLengthInBytes)) 98var estimatedDecryptedSize = ciphertext.Length - (KEY_MODIFIER_SIZE_IN_BYTES + _symmetricAlgorithmBlockSizeInBytes + _validationAlgorithmDigestLengthInBytes); 107var macOffset = ciphertext.Length - _validationAlgorithmDigestLengthInBytes; 143var providedMac = ciphertext.Slice(macOffset, _validationAlgorithmDigestLengthInBytes); 190var macLength = _validationAlgorithmDigestLengthInBytes; 299var outputSize = KEY_MODIFIER_SIZE_IN_BYTES + _symmetricAlgorithmBlockSizeInBytes /* IV */ + cipherTextLength + _validationAlgorithmDigestLengthInBytes /* MAC */; 478var outputSize = protectedPayload.Count - (KEY_MODIFIER_SIZE_IN_BYTES + _symmetricAlgorithmBlockSizeInBytes + _validationAlgorithmDigestLengthInBytes); 611+ _validationAlgorithmDigestLengthInBytes /* digest of HMACed empty string */)]; 625BitHelpers.WriteTo(retVal, ref idx, _validationAlgorithmDigestLengthInBytes); 658CryptoUtil.Assert(digest != null && digest.Length == _validationAlgorithmDigestLengthInBytes, "digest != null && digest.Length == _validationAlgorithmDigestLengthInBytes"); 662idx += _validationAlgorithmDigestLengthInBytes;