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

Compare hashes in constant time #32

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

Conversation

Lireer
Copy link

@Lireer Lireer commented Aug 2, 2020

This should fix #19 by using the constant_time_eq crate to compare hashes.
I also tried to make verify more readable by moving duplicated code out of the match arms.

The changes in #31 were used to benchmark both commits. No regressions were found.

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.

Verification comparison is not constant time in argonautica-rs
1 participant