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

A tighter bound on sqrt() iterations #378

Open
fjarri opened this issue Dec 3, 2023 · 0 comments
Open

A tighter bound on sqrt() iterations #378

fjarri opened this issue Dec 3, 2023 · 0 comments

Comments

@fjarri
Copy link
Contributor

fjarri commented Dec 3, 2023

Currently, as prescribed by Hast, "Note on computation of integer square roots" (https://github.com/RustCrypto/crypto-bigint/files/12600669/ct_sqrt.pdf), we are performing floor(log2(BITS)) + 2 iterations in Uint::sqrt() (to get x_n and x_{n+1}, where n = floor(log2(BITS)) + 1). But the tests indicate that it may be enough to only do floor(log2(BITS)) iterations. Need to check.

cc @HastD

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

No branches or pull requests

1 participant