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

password-hash: use subtle crate for comparing hash Output #631

Merged
merged 1 commit into from
May 5, 2021

Conversation

tarcieri
Copy link
Member

@tarcieri tarcieri commented May 5, 2021

Previously a non-short-circuiting comparison was used, however the subtle crate provides a more robust option in this regard with the ConstantTimeEq trait and its associated impls on byte slices.

This commit also includes an updated rationale for why password hashes benefit from constant time comparisons, including a description of a timing attack on password hash verification.

Previously a non-short-circuiting comparison was used, however the
`subtle` crate provides a more robust option in this regard with the
`ConstantTimeEq` trait and its associated impls on byte slices.

This commit also includes an updated rationale for why password hashes
benefit from constant time comparisons, including a description of a
timing attack on password hash verification.
@tarcieri tarcieri merged commit 72b37fe into master May 5, 2021
@tarcieri tarcieri deleted the password-hash/subtle branch May 5, 2021 14:39
@tarcieri tarcieri mentioned this pull request May 5, 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.

1 participant