-
Notifications
You must be signed in to change notification settings - Fork 388
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
feat: fix argon2 parsing and comparison #1887
Conversation
Pull Request Test Coverage Report for Build 12480774856Details
💛 - Coveralls |
🤖 I have created a release *beep* *boop* --- ## [2.167.0](v2.166.0...v2.167.0) (2024-12-24) ### Features * fix argon2 parsing and comparison ([#1887](#1887)) ([9dbe6ef](9dbe6ef)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Super grateful for the quick turnaround on getting this through! Not to sound the slightest bit ungrateful, but is there guidance on how long to expect the problem to persist on my cloud hosted project? |
Rollout is underway. |
@hf thanks so much 🙏 |
Argon2 parsing and comparison is broken in multiple ways:
ConstantTimeCompare
. This Go API is awful as it returns 1 on equality (unlike all other comparison APIs that return 0) so it was missed.argon2.Key
andIDKey
accept KiB as arguments (not bytes!) which caused all hashes to always be incorrect.Tests didn't catch this as they only tested for the positive case (which passed with flying colors).