Skip to content

Tweak the "excessive partial hash collisions" warnings #5752

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

Conversation

magnumripper
Copy link
Member

@magnumripper magnumripper commented Apr 4, 2025

For salt-only formats, bump the warning threshold to 10x LDR_HASH_COLLISIONS_MAX. LDR_HASH_COLLISIONS_SALT_ONLY which is currently 10x LDR_HASH_COLLISIONS_MAX in params.h.

Add a self-test for detecting misuse of default binary hash functions with FMT_BLOB formats.

Fix such bug in Office formats.

Closes #5736

@magnumripper magnumripper requested a review from solardiz April 4, 2025 19:17
Copy link
Member

@solardiz solardiz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggested some changes, but I'm also fine merging this as-is.

For salt-only formats, bump the warning threshold by x10.

Closes openwall#5736
Blob formats can't use the fmt_default_(binary|get)_hash_[0..6] functions
but need more elaborate functions, or plain fmt_default_binary_hash.

Salt-only formats doesn't even have a binary, but are allowed to use
fmt_default_(binary|get)_hash (without the trailing _0[..6]).

See openwall#5736
@magnumripper magnumripper force-pushed the fmt_blob-no-hash-collision-warning branch from 7a0fbc0 to 6bd9217 Compare April 22, 2025 11:05
@magnumripper magnumripper merged commit 88e3eeb into openwall:bleeding-jumbo Apr 22, 2025
32 of 33 checks passed
@magnumripper magnumripper deleted the fmt_blob-no-hash-collision-warning branch April 22, 2025 11:24
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.

Drop the "Warning: excessive partial hash collisions detected" for salt-only and blob-binary formats
2 participants