1 write to _validationAlgorithmDigestLengthInBytes
Microsoft.AspNetCore.DataProtection (1)
Managed\ManagedAuthenticatedEncryptor.cs (1)
60_validationAlgorithmDigestLengthInBytes = validationAlgorithm.GetDigestSizeInBytes();
9 references to _validationAlgorithmDigestLengthInBytes
Microsoft.AspNetCore.DataProtection (9)
Managed\ManagedAuthenticatedEncryptor.cs (9)
61_validationAlgorithmSubkeyLengthInBytes = _validationAlgorithmDigestLengthInBytes; // for simplicity we'll generate MAC subkeys with a length equal to the digest length 67AlgorithmAssert.IsAllowableValidationAlgorithmDigestSize(checked((uint)_validationAlgorithmDigestLengthInBytes * 8)); 85+ _validationAlgorithmDigestLengthInBytes /* digest of HMACed empty string */)]; 99BitHelpers.WriteTo(retVal, ref idx, _validationAlgorithmDigestLengthInBytes); 132CryptoUtil.Assert(digest != null && digest.Length == _validationAlgorithmDigestLengthInBytes, "digest != null && digest.Length == _validationAlgorithmDigestLengthInBytes"); 136idx += _validationAlgorithmDigestLengthInBytes; 173if (protectedPayload.Count < checked(KEY_MODIFIER_SIZE_IN_BYTES + _symmetricAlgorithmBlockSizeInBytes + _validationAlgorithmDigestLengthInBytes)) 241macOffset = eofOffset - _validationAlgorithmDigestLengthInBytes; 376var macLength = _validationAlgorithmDigestLengthInBytes;