commit | e760ff57b9414578d8b29a328a02beb580fcbb63 | [log] [tgz] |
---|---|---|
author | nagendra modadugu <ngm@google.com> | Thu May 11 15:17:16 2017 -0700 |
committer | chrome-bot <chrome-bot@chromium.org> | Thu May 11 17:28:49 2017 -0700 |
tree | f85ba61bda97e8b3c6bf5f57756c61c1a2e35dbe | |
parent | 1a68fe6fa860f563e8b45e3826110ceec75d61a8 [diff] |
Rewrite MemoryEqual() to be constant-time. The current implementation of MemoryEqual will not necessarily compile to a constant-time instruction sequence. This change ensures that every byte of the input must be inspected. BRANCH=none BUG=none TEST=TCG tests pass Change-Id: Ide83bce6cafea2d48c03e5116e97a6dd23419134 Signed-off-by: nagendra modadugu <ngm@google.com> Reviewed-on: https://chromium-review.googlesource.com/503478 Commit-Ready: Nagendra Modadugu <ngm@google.com> Tested-by: Nagendra Modadugu <ngm@google.com> Reviewed-by: Andrey Pronin <apronin@chromium.org>