Reject overlong sizes in crypto::HMAC.
If crypto::HMAC::Sign is passed too large of a buffer, it silently fails to initialize the entire buffer. If crypto::HMAC::VerifyTruncated is passed too large of one, it silently ignores the remainder of the digest. Fix both of these. Change-Id: Id57d5fc61ad85c9c63aef8f497c20fffd4409e2f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2246989Reviewed-by:Ryan Sleevi <rsleevi@chromium.org> Commit-Queue: David Benjamin <davidben@chromium.org> Cr-Commit-Position: refs/heads/master@{#778548}
Showing
Please register or sign in to comment