1 write to _hmacAlgorithmDigestLengthInBytes
Microsoft.AspNetCore.DataProtection (1)
Cng\CbcAuthenticatedEncryptor.cs (1)
48
_hmacAlgorithmDigestLengthInBytes
= hmacAlgorithmHandle.GetHashDigestLength();
13 references to _hmacAlgorithmDigestLengthInBytes
Microsoft.AspNetCore.DataProtection (13)
Cng\CbcAuthenticatedEncryptor.cs (13)
49
_hmacAlgorithmSubkeyLengthInBytes =
_hmacAlgorithmDigestLengthInBytes
; // for simplicity we'll generate HMAC subkeys with a length equal to the digest length
54
AlgorithmAssert.IsAllowableValidationAlgorithmDigestSize(checked(
_hmacAlgorithmDigestLengthInBytes
* 8));
69
+
_hmacAlgorithmDigestLengthInBytes
/* digest of HMACed empty string */)];
85
BitHelpers.WriteTo(ref ptr,
_hmacAlgorithmDigestLengthInBytes
);
132
cbHashDigest:
_hmacAlgorithmDigestLengthInBytes
);
135
ptr +=
_hmacAlgorithmDigestLengthInBytes
;
147
if (cbCiphertext < checked(KEY_MODIFIER_SIZE_IN_BYTES + _symmetricAlgorithmBlockSizeInBytes +
_hmacAlgorithmDigestLengthInBytes
))
154
var cbEncryptedData = checked(cbCiphertext - (KEY_MODIFIER_SIZE_IN_BYTES + _symmetricAlgorithmBlockSizeInBytes +
_hmacAlgorithmDigestLengthInBytes
));
341
var retVal = new byte[checked(cbPreBuffer + KEY_MODIFIER_SIZE_IN_BYTES + _symmetricAlgorithmBlockSizeInBytes + cbOutputCiphertext +
_hmacAlgorithmDigestLengthInBytes
+ cbPostBuffer)];
374
cbHashDigest:
_hmacAlgorithmDigestLengthInBytes
);
417
byte* pbActualDigest = stackalloc byte[checked((int)
_hmacAlgorithmDigestLengthInBytes
)];
418
hashHandle.HashData(pbInput, cbInput, pbActualDigest,
_hmacAlgorithmDigestLengthInBytes
);
419
return CryptoUtil.TimeConstantBuffersAreEqual(pbExpectedDigest, pbActualDigest,
_hmacAlgorithmDigestLengthInBytes
);