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

export pow_mod_fast to the public #28

Open
blackshirt opened this issue Aug 26, 2021 · 1 comment
Open

export pow_mod_fast to the public #28

blackshirt opened this issue Aug 26, 2021 · 1 comment

Comments

@blackshirt
Copy link

I think its good to export pow_mod_faster in the tests/rsa.c to the public API in the form bignum_pow_mod function.
Its complement bignum_pow but with fast modulo exponentiation functionality at the hand

@kokke
Copy link
Owner

kokke commented Dec 21, 2021

Hi @blackshirt and thanks for your interest in improving state of affairs :)

I agree that it could be a nice addition, but I also feel it's heavily slanted towards crypto over integer/prime-fields. And I don't think this library is a good fit for serious work in that area - the RSA code is mostly for fun and games.

Proper implementations should use hardware-acceleration and constant time primitives - and should definitely not use vanilla RSA, but add blinding or whatever to mitigate side-channel attacks.

Exporting pow_mod_faster is a sort of feature-creep that I would like to avoid unless there really is a demand for it ...

Someone contributed an implementation of karatsuba-multiplication, which I haven't come around to merge yet - for some of the same reasons...

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

2 participants