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

Modify Montgomery exponentiation to return results in Montgomery form #4558

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

randombit
Copy link
Owner

DSA and ElGamal just immediately convert the result to standard form; the performance of these doesn't matter much at all anymore.

For RSA, keep the values in Montgomery form using the same flow as described as "Smooth-CRT RSA" in https://eprint.iacr.org/2007/039.pdf

@coveralls
Copy link

coveralls commented Jan 16, 2025

Coverage Status

coverage: 91.201% (+0.008%) from 91.193%
when pulling d0ecb8c on jack/stay-in-monty
into 9b798ef on master.

In RSA, keep the values in Montgomery form using the same flow as
described as "Smooth-CRT RSA" in https://eprint.iacr.org/2007/039.pdf

DSA and ElGamal just immediately convert the result to standard form;
the performance of these doesn't matter much at all anymore.
@randombit randombit changed the title Modify Montgomery exponetiation to return results in Montgomery form Modify Montgomery exponentiation to return results in Montgomery form Jan 17, 2025
@randombit randombit merged commit 5826859 into master Jan 17, 2025
39 checks passed
@randombit randombit deleted the jack/stay-in-monty branch January 17, 2025 01:34
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.

None yet

2 participants