Skip to content

Conversation

@sipa
Copy link
Contributor

@sipa sipa commented Jul 9, 2016

The current field element square root algorithm is entirely constant time already, apart from a variable time field element comparison at end (whose time is negligible compared to the exponentiation ladder).

Furthermore, no faster variable time algorithm is known, so we don't lose anything by actually making the algorithm fully constant time. This simplifies some potential future changes in the Schnorr code.

@apoelstra
Copy link
Contributor

ACK pending travis

@sipa sipa merged commit 926836a into bitcoin-core:master Jul 9, 2016
sipa added a commit that referenced this pull request Jul 9, 2016
926836a Make secp256k1_fe_sqrt constant time (Pieter Wuille)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants