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
65
AlgorithmAssert.IsAllowableValidationAlgorithmDigestSize(checked((uint)
_validationAlgorithmDigestLengthInBytes
* 8));
83
+
_validationAlgorithmDigestLengthInBytes
/* digest of HMACed empty string */)];
97
BitHelpers.WriteTo(retVal, ref idx,
_validationAlgorithmDigestLengthInBytes
);
129
CryptoUtil.Assert(digest != null && digest.Length ==
_validationAlgorithmDigestLengthInBytes
, "digest != null && digest.Length == _validationAlgorithmDigestLengthInBytes");
133
idx +=
_validationAlgorithmDigestLengthInBytes
;
165
if (protectedPayload.Count < checked(KEY_MODIFIER_SIZE_IN_BYTES + _symmetricAlgorithmBlockSizeInBytes +
_validationAlgorithmDigestLengthInBytes
))
229
macOffset = eofOffset -
_validationAlgorithmDigestLengthInBytes
;