mirror of
https://github.com/openwall/john.git
synced 2026-12-03 20:43:49 +07:00
[GH-ISSUE #2890] Possible LE dependancies in SIMD flat model. #1832
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#1832
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 @jfoug on GitHub (Nov 16, 2017).
Original GitHub issue: https://github.com/openwall/john/issues/2890
This was found when porting the LEET format to BE SIMD. It uses flat SIMD:
The output marshaling is not the issue. The issue is that after the flat buffer is constructed, I had to byte swap all of the data. NOTE, I did not byte swap the bit length in [15] This is because it was written as a 64 bit BE number, so was already in BE format.
The point here, is we may want to look into handling strcpy() data properly using SIMD-FLAT model if running on a BE system. I am not sure that we handle it gracefully.
this could be PEBCAK, I am not sure until I look. I just wrote this down, so I would not forget to look into it. But I would think to fix it, we just need to reverse our assumptions about swapping. When we swap for LE, we do not swap if building under BE, and vice versa. That way flat model just 'works'
@jfoug commented on GitHub (Nov 17, 2017):
'Some' of the port of leet was rolled back here
3d0042a82The proper fix was added to simd_intrisics.c here:github.com/magnumripper/JohnTheRipper@3f450bd269This issue is now closed. simd-intrisics.c handles flat input and flat output properly, endianity neutral.