Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppress a harmless variable-time optimization by clang in memczero #728

Merged
merged 2 commits into from
Mar 27, 2020

Commits on Mar 27, 2020

  1. Suppress a harmless variable-time optimization by clang in memczero

    This has been not been caught by the new constant-time tests because
    valgrind currently gives us a zero exit code even if finds errors, see
    bitcoin-core#723 (comment) .
    
    This commit also simplifies the arithmetic in memczero.
    
    Note that the timing leak here was the bit whether a secret key was
    out of range. This leak is harmless and not exploitable. It is just
    our overcautious practice to prefer constant-time code even here.
    real-or-random committed Mar 27, 2020
    Configuration menu
    Copy the full SHA
    52a0351 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0199387 View commit details
    Browse the repository at this point in the history