mirror of
https://github.com/openwall/john.git
synced 2026-12-03 20:43:49 +07:00
[GH-ISSUE #677] rawSHA256_fmt_plug.c rawSHA256_ng_fmt_plug.c rawSHA256_ng_i_fmt_plug.c #329
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#329
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 @frank-dittrich on GitHub (Jun 27, 2014).
Original GitHub issue: https://github.com/openwall/john/issues/677
On what platforms are the rawSHA256_ng_fmt_plug.c and rawSHA256_ng_i_fmt_plug.c implementations faster than the rawSHA256_fmt_plug.c one?
Are the ng implementations needed?
If so, they need to be enhanced to process these hashes as well:
These shoud be converted into
@frank-dittrich commented on GitHub (Jun 27, 2014):
dynamic_60 also computes raw SHA256.
@magnumripper commented on GitHub (Jun 27, 2014):
Raw-SHA256-ng is self-contained while Raw-SHA256 uses shared code. The former has room for a lot more optimizations that the shared code "can't" do (would screw iterated formats) unless we add interfaces. But the ng format only builds on intel SIMD CPUs. I think both of them should be kept.
The Raw-SHA256-ng-i though, if memory serves me, is just an interim format that should be deleted. I think it got the shared intrinsics before the generic format got them, as a test format more or less. @jfoug?
@jfoug commented on GitHub (Jun 27, 2014):
I do not remember all of the ins-outs of these formats, BUT they should be audited now, and the best items taken from each, and get us down to singluar formats.
If the shared code version 'cant' do optimizations, then should we get rid of it? I find the shared ones to be hard to debug and figure out what they are doing. I could really see having certain format functions be 'shared'. Things like valid, split, source, etc probably should be shared. BUT if we do this, then please create them in a stand alone .c file, and use headers to define the function names (i.e. stop using static functions and including code in the header files). To be honest, we probalby could make fmt_default_valid, add a couple things to the format structure, and the default could be used for about 50% of our formats. (same for split, prepare, source, etc). But that is way past scope of this message.
In total, I really do not know what has happened on the SHA2 code. I remember it was not SIMD. Someone did some SIMD code. I started from there and improved it, BUT those original format files still exist. But do we realy need 3 or 4 CPU versions of the same format? Yes, I know we have dyna and a real raw format. But dyna is simply a 'fragment' that can be used as a primative to do a LOT more with, and do it without having to code. But having numerous flat 'raw' formats really does not make sense to me.
@magnumripper commented on GitHub (Jun 27, 2014):
With "shared code" I just meant it's using sse-intrinsics.c
@magnumripper commented on GitHub (Jun 27, 2014):
Also, despite optimizations "can't" be done, it's the fastest of them all. Gosney's format can be optimized (eg. for shorter pw len) but isn't.
@jfoug commented on GitHub (Jun 27, 2014):
By 'shared code' I was refering to those that use a .h file (I think sha256 does this), and they have lots of code in there, that is static. Ignore for now, it is off topic for this thread.