We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
I did a quick review inside the code, and found the following exponentiation = (long(x)**i) % prime at https://github.com/onenameio/secret-sharing/blob/master/secretsharing/polynomials.py#L52
exponentiation = (long(x)**i) % prime
I wonder if there is any reason not to use Python's built-in pow(x,y,z) which is, according to the documentation
pow(x,y,z)
compute more efficiently than pow(x, y) % z
I thought about timing-attack on pow() but cannot find anything on the internet
pow()
The text was updated successfully, but these errors were encountered:
Hi @calve thank you for submitting this.
I'm still unclear on why this other function is better. Can you explain further?
Sorry, something went wrong.
Hi, I would say the pow() function is better because it is in stdlib :)
As far as I know, there is no such thing as a cryptographically secure modular exponentiation, so I do not see any reason not to use the builtin.
No branches or pull requests
Hello,
I did a quick review inside the code, and found the following
exponentiation = (long(x)**i) % prime
at https://github.com/onenameio/secret-sharing/blob/master/secretsharing/polynomials.py#L52
I wonder if there is any reason not to use Python's built-in
pow(x,y,z)
which is, according to the documentationI thought about timing-attack on
pow()
but cannot find anything on the internetThe text was updated successfully, but these errors were encountered: