mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #2708] Move more DES-based formats to bitslice DES code #1745
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#1745
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 @solardiz on GitHub (Aug 27, 2017).
Original GitHub issue: https://github.com/openwall/john/issues/2708
Originally assigned to: @magnumripper on GitHub.
We currently use bitslice DES in these formats:
Two of them were moved to bitslice DES due to work by Deepika (thanks!)
However, many of jumbo-specific formats continue to use OpenSSL's DES:
Also,
AFS_fmt.cinherited from core tree uses JtR's own non-bitslice DES code (only), but that's a relatively obscure format, so I don't care much. AndKRB4_fmt_plug.cabove appears to wrongly includeDES_std.h, while not using anything from it (instead only using OpenSSL's DES) - if confirmed, we should drop that line to avoid further confusion. Other uses ofDES_std.hin the list below are probably OK for now (they're special cases within formats that mainly use bitslice) - although we might get rid of some of them later as well:We should identify non-obscure formats that still use solely/primarily non-bitslice DES where that matters for their overall performance, and proceed to move them to bitslice, on CPU for now. This should be easier than it used to be now that Deepika paved the way.
I think the Oracle (possibly including o*logon?), VNC, RACF, AS400 formats may be high on our list to switch to bitslice. (I was surprised to find Oracle wasn't switched to bitslice yet. IIRC, this was one of those Deepika worked on, but perhaps didn't finish the work? Or did we fail to merge a patch?)
A related issue is OpenSSL's dropping of DES support. This may force us to do something about uses of OpenSSL's DES code even where it doesn't matter for performance.
The above lists are for format files, but there are also uses in maybe-common files:
I think these are OK for now, but we'll need to revisit the first of these lists when dealing with OpenSSL's dropping of DES support.
@magnumripper commented on GitHub (Aug 27, 2017):
I'm not aware of any posted work that we didn't merge. I guess she never finished it (if she even started).
@exaghost commented on GitHub (Apr 17, 2023):
Hi!
Do You (the project) has any update on this? Some formats are still out there in the wild. They are still as slow, if we are in 2008. :D Not to mention, OpenSSL 1.1.1 will be EoL this September.
@ghost commented on GitHub (Apr 20, 2023):
I guess you are complaining that the existing Windows package here uses OpenSSL 1.1.1. All
johnpackages use stable released libraries and OpenSSL 1.1.1 is what cygwin itself currently deploys.There is no other released version by
cygwin.[edited]
And they are aware of what is happening upstream.
Still evolving:
@solardiz commented on GitHub (Apr 20, 2023):
Unfortunately, no. I'm very familiar with our bitslice DES CPU code (having been the one to introduce it and update it not too long ago for the formats where we do use it), but I am too busy with other stuff now. Do you want to contribute this and have other relevant basic skills? I could possibly help as a mentor. If I find time to rework one of these formats as an example, would you take care of many more? No promises, though. I am in fact really busy these days.
As to concerns about OpenSSL dropping DES, we're fine even with 3.x for now. They did deprecate DES and introduce and fix relevant bugs, but overall it's still in there and works for us.
Separately, I think Cygwin are smart in staying with a stable branch for as long as they can. No need for new bugs.
@ghost commented on GitHub (Jun 2, 2023):
FTR:
cygwinis not alone. From FreeBSD 12 to FreeBSD 14 [1][2].[1] OpenSSL in base (as seen used by Google cloud BSD image).
[2] Now. V. 14 can migrate to 3.x later, who knows.