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

remove asserts that could leak timing information (credits to @pornin) #31

Merged

Conversation

conradoplg
Copy link
Contributor

Closes #30 by simply removing the asserts.

I tried to expand the comment in scalar.rs to justify why borrow would never be 1, but got stuck at trying to find a case where carry would be 1 in the first place... So I just gave up on that for now.

@kevaundray kevaundray merged commit 3f360d5 into crate-crypto:master Jul 13, 2023
1 check passed
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.

Potential timing attacks in asserts
2 participants