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

Makes modular exponentiation constant time by default. #128

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ddealmei
Copy link

Calling BN_mod_exp with a small base, and no constant time flag fallback on an insecure implementation with OpenSSL. If the exponent is related to a secret value, the resulting leakage may compromise the secret.
A simple fix is to set the appropriate flag before computing the modular exponentiation.

@ddealmei ddealmei closed this Jan 27, 2021
@ddealmei ddealmei reopened this Jan 27, 2021
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

1 participant