mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #1036] Three format fails after merging GPU mask branch #634
Labels
No labels
bug
core branch
documentation
enhancement
enhancement
fixed - pending verify
fuzz bug
good first issue
invalid
invalid
maintenance/cleanup
new cracking mode
new format
new tool
non-trivial
notes/external issues
portability
question
RFC / discussion
testing
WONTFIX
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
openwall/john#634
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @magnumripper on GitHub (Jan 28, 2015).
Original GitHub issue: https://github.com/openwall/john/issues/1036
This may or may not be problems in the formats. It's more likely these are "self test technical" issues that need to be worked around, either in formats.c or in these formats.
@sayan1an commented on GitHub (Jan 28, 2015):
Yes, I saw that too. Looking into it right now.
@sayan1an commented on GitHub (Jan 28, 2015):
Quick fix:
change line 539 in format.c to the following:
@sayan1an commented on GitHub (Jan 28, 2015):
However, it looks like the these format generate same hash for multiple passwords. Otherwise, there shouldn't have been any problem.
@magnumripper commented on GitHub (Jan 28, 2015):
Hmm or maybe they just have dupe test vectors?
@magnumripper commented on GitHub (Jan 28, 2015):
Hm, no.
@magnumripper commented on GitHub (Jan 28, 2015):
Are we always setting all keys in the batch? If not, you might see leftovers from a previous crypt.
@sayan1an commented on GitHub (Jan 28, 2015):
Yes, right. But then, shouldn't the format cleanse its buffer such that cmp_one() and cmp_exact() does not return false positives?
Anyway, the latest commit emulates the self-test exactly as we did before for older formats and externally, they shouldn't notice any difference.
@magnumripper commented on GitHub (Jan 28, 2015):
In real runs, we always set n keys and then call
crypt_all(n)andcmp_*(n)so buffer cleaning would just harm performance. We should try to make the self-test work as close to real-life as possible (perhaps fill keys with dummy strings that are not included in any actual test vector).