Skip to content

Square root implementation #75

Answered by lschoe
manel1874 asked this question in Q&A
Sep 14, 2023 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

You asking these questions at the right time, especially Q2;)

For Q1, the answer is yes indeed. However, I would not refer to it as a "bit decomposition approach" because a main benefit is that the use of a bit decomposition is avoided. The result is computed bit-by-bit though, and accumulated in a secure integer. The running time is dominated by the $\ell/2$ secure comparisons, which are executed sequentially. That may be acceptable, if this function isn't evaluated frequently. The approach is well-known, often used as a programming exercise, and for secure computation it is easy to make it oblivious (constant-time).

For Q2, we have this paper Divisions and Square Roots with Tight Error …

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@manel1874
Comment options

@manel1874
Comment options

@lschoe
Comment options

Answer selected by lschoe
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants