mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #323] new warning and build failure in bleeding-jumbo with OMP enabled #64
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#64
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 @kholia on GitHub (Jun 8, 2013).
Original GitHub issue: https://github.com/openwall/john/issues/323
Originally assigned to: @jfoug on GitHub.
These problems can be reproduced on our development machine "bull" easily.
Surprisingly, I can't reproduce these problems on my 64-bit Fedora 18 machine.
@kholia commented on GitHub (Jun 8, 2013):
Jim,
Can you please take a look?
@kholia commented on GitHub (Jun 8, 2013):
Does commit
2537b06a16look okay?I have no idea how the call actually works though ;)
@jfoug commented on GitHub (Jun 8, 2013):
2537b06* looks fine.What it does, is to use a new 'interface' into the SSE. The output pointer, and the pointer to any 'reload' data have been separated. They CAN use pointers to the same location in memory, but do not have to.
Also the last param is now a bitmap that tells each function a LOT of information. Whether it should use the IV (i.e. first limb of each type loads the state from a fixed IV), or whether the state should be reloaded from data from the prior limb's state. This was the only piece of information in that final param before. A 1 said to use the IV, a 0 said to use the output pointer (which is now the reload state pointer). The new format also lists whether the input data is in min BINARY format, or in input format (of 1, 2 or 4 limbs). Also if the output format is in min BINARY format, or in an input format. These input formats matter when you get into *_PARA > 1. There also is a bit added listing whether the data is already in 'mixed' MMX_COEF format, which is 4 packed values for 32 bit formats, or 2 packed values for 64 bit formats, or if the data is in 'flat' format. Flat format is 64 byte buffers (or 128 double, or 256 quadruple buffers). The buffers have been properly 'finalized' (i.e. the 0x80 bit appended, all tail bytes set to 0x00 and the number of bits is located in the proper ending location).
So what your patch did, was to convert a call from the old format of:
SSEmd4body(in_data_ptr, out_data_ptr, 1);
into the new format of
SSEmd4body(in_data_ptr, out_data_ptr, reload_data_ptr, int_processing_bits);
The reload_data_ptr is set to null (there is no reload), and the only bit used is the SSEi_MIXED_IN, which simply tells the SIMD code that the data in the in_data_ptr location is already 'mixed' format of interleaved 4 candidate values * MD4_SSE_PARA, which the nt format has been using all along for the data.
So pretty much any SSEhashbody() that is SSEhashbody(in, out, 1) is a straight port to the new SSEhashbody(in, out, NULL, SSEi_MIXED_IN) format.
Jim.
---- Dhiru Kholia notifications@github.com wrote:
@jfoug commented on GitHub (Jun 8, 2013):
Please test with
github.com/magnumripper/JohnTheRipper@d086dd7326which was correctedgithub.com/magnumripper/JohnTheRipper@736a782b34This should fix this on XOP systems.
Jim.
@kholia commented on GitHub (Jun 8, 2013):
The problem is fixed. Thanks Jim!