Skip to content

Some sqrt() fixes #379

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

Merged
merged 4 commits into from
Dec 3, 2023
Merged

Some sqrt() fixes #379

merged 4 commits into from
Dec 3, 2023

Conversation

fjarri
Copy link
Contributor

@fjarri fjarri commented Dec 3, 2023

An addition to #376:

  • simplified sqrt() loops and added more comments
  • filed A tighter bound on sqrt() iterations #378 and added a TODO
  • added edge case tests for sqrt_vartime()
  • disambiguated Uint::LOG2_BITS: now it's set to floor(log2(BITS)) instead of floor(log2(BITS)) + 1 as it was previously (modified the code that used it accordingly).

@tarcieri tarcieri merged commit 1c57cd1 into RustCrypto:master Dec 3, 2023
@fjarri fjarri deleted the sqrt-fixes branch December 4, 2023 23:23
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