1 write to _validationAlgorithmDigestLengthInBytes
Microsoft.AspNetCore.DataProtection (1)
Managed\ManagedAuthenticatedEncryptor.cs (1)
58_validationAlgorithmDigestLengthInBytes = validationAlgorithm.GetDigestSizeInBytes();
8 references to _validationAlgorithmDigestLengthInBytes
Microsoft.AspNetCore.DataProtection (8)
Managed\ManagedAuthenticatedEncryptor.cs (8)
59_validationAlgorithmSubkeyLengthInBytes = _validationAlgorithmDigestLengthInBytes; // for simplicity we'll generate MAC subkeys with a length equal to the digest length 65AlgorithmAssert.IsAllowableValidationAlgorithmDigestSize(checked((uint)_validationAlgorithmDigestLengthInBytes * 8)); 83+ _validationAlgorithmDigestLengthInBytes /* digest of HMACed empty string */)]; 97BitHelpers.WriteTo(retVal, ref idx, _validationAlgorithmDigestLengthInBytes); 129CryptoUtil.Assert(digest != null && digest.Length == _validationAlgorithmDigestLengthInBytes, "digest != null && digest.Length == _validationAlgorithmDigestLengthInBytes"); 133idx += _validationAlgorithmDigestLengthInBytes; 165if (protectedPayload.Count < checked(KEY_MODIFIER_SIZE_IN_BYTES + _symmetricAlgorithmBlockSizeInBytes + _validationAlgorithmDigestLengthInBytes)) 229macOffset = eofOffset - _validationAlgorithmDigestLengthInBytes;