mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #1523] Reverse steps in shared SIMD functions #994
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#994
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 (Jul 9, 2015).
Original GitHub issue: https://github.com/openwall/john/issues/1523
Originally assigned to: @magnumripper on GitHub.
Since
6a0f06466we have a SSEi_REVERSE_STEPS flag for our shared primary hash functions. For MD4 it's real reversing of steps, and used in the NT format. It does exactly the same reversing as Alain's NT assembler format. For MD5, SHA1 and SHA2 formats, it merely skips the final addition of constants. At least MD5 can be reversed a bit too.@jfoug commented on GitHub (Jul 17, 2015):
I changed the dyna to not do this. I really do not see this as a viable option in dyna. It would add a major complexity issue, and for what ROI? Already dyna is NOT the fastest horse in the stable, no matter what, since there is other overhead involved. So making an already slower format a little faster but still slower is not really worth it, especially if it opens up another set of instability issues and drags on any form of forward development until these new issues are addressed.
I have 'commented it out'. It no longer shows on the count of todo items.
@magnumripper commented on GitHub (Jul 17, 2015):
Yeah that makes sense. And the SHA2 formats that remain will probably show insignificant gain. The real win here was the NT format. The recent AVX2 support was a major blow to Alain's format (now "nt-old") and this fix was another one: Now the intrinsics NT format should be faster on any SSE2 or better build.
@magnumripper commented on GitHub (Jul 17, 2015):
Damn, I just tested a build with only SSE2 and Alain's format is still 2.5% faster than the intrinsics one. Probably due to the stacks of
ifthat handles all SSEi flags... But when building with AVX we outrun it anyway and with AVX2 we obviously run in circles around it.@magnumripper commented on GitHub (Jul 24, 2015):
48c80a4improves SHA1 reversing for a 5% boost.