[GH-ISSUE #2356] Get rid of dependencies to OpenSSL/LibreSSL/WhateverSSL #1577

Closed
opened 2026-10-15 04:20:36 +07:00 by bsakaguchi · 10 comments
Owner

Originally created by @jfoug on GitHub (Dec 10, 2016).
Original GitHub issue: https://github.com/openwall/john/issues/2356

Originally assigned to: @magnumripper, @jfoug on GitHub.

See #2355 for more explanation. Right now, this is just a place holder issue. It needs a lot of fore thought, and can not simply be jumped into.

Originally created by @jfoug on GitHub (Dec 10, 2016). Original GitHub issue: https://github.com/openwall/john/issues/2356 Originally assigned to: @magnumripper, @jfoug on GitHub. See #2355 for more explanation. Right now, this is just a place holder issue. It needs a lot of fore thought, and can not simply be jumped into.
Author
Owner

@magnumripper commented on GitHub (Dec 10, 2016):

I wonder how hard it would be to instead fully DROP all OpenSSL/LibreSSL/CommonCrypto dependencies and just implement everything needed instead. Hashcat (and old CPU Hashcat) does so, I'm pretty sure.

We already have MD4, MD5, SHA-1, RC4, DES, AES and whatnot. Nearly everything exist as perfectly fine and free RFC code we can just nick.

<!-- gh-comment-id:266227092 --> @magnumripper commented on GitHub (Dec 10, 2016): I wonder how hard it would be to instead fully DROP all OpenSSL/LibreSSL/CommonCrypto dependencies and just implement everything needed instead. [Hashcat](https://github.com/hashcat/hashcat) (and old [CPU Hashcat](https://github.com/hashcat/hashcat-legacy)) does so, I'm pretty sure. We already have MD4, MD5, SHA-1, RC4, DES, AES and whatnot. Nearly everything exist as perfectly fine and free RFC code we can just nick.
Author
Owner

@jfoug commented on GitHub (Dec 10, 2016):

That is what the 'other bug' (not searching right now), asks to do. It does not ask to 'drop' ossl, and I do not think we should. Having oSSL 'available' is much easier for people submitting code. Once they submit, then all we do is port it into our own primatives. We have almost all of libssl and libcrypto. BUT we do not have some of the other high level stuff.

<!-- gh-comment-id:266232487 --> @jfoug commented on GitHub (Dec 10, 2016): That is what the 'other bug' (not searching right now), asks to do. It does not ask to 'drop' ossl, and I do not think we should. Having oSSL 'available' is much easier for people submitting code. Once they submit, then all we do is port it into our own primatives. We have almost all of libssl and libcrypto. BUT we do not have some of the other high level stuff.
Author
Owner

@jfoug commented on GitHub (Dec 10, 2016):

The 'insert' of oSSL code/project/snippets into john tree was just an interim work around to get a 'stable' ossl version, UNTIL we implement all that is required (high level shit).

<!-- gh-comment-id:266232552 --> @jfoug commented on GitHub (Dec 10, 2016): The 'insert' of oSSL code/project/snippets into john tree was just an interim work around to get a 'stable' ossl version, UNTIL we implement all that is required (high level shit).
Author
Owner

@magnumripper commented on GitHub (Dec 10, 2016):

TBH we get about three format submissions a year (a really good year). It's not going to make any difference if we start saying they can't use OpenSSL.

<!-- gh-comment-id:266233433 --> @magnumripper commented on GitHub (Dec 10, 2016): TBH we get about three format submissions a year (a really good year). It's not going to make any difference if we start saying they can't use OpenSSL.
Author
Owner

@magnumripper commented on GitHub (Dec 13, 2016):

JFTR, #1686 is (I assume) the other issue Jim referred to.

<!-- gh-comment-id:266862801 --> @magnumripper commented on GitHub (Dec 13, 2016): JFTR, #1686 is (I assume) the other issue Jim referred to.
Author
Owner

@jfoug commented on GitHub (Dec 13, 2016):

Yes, that is the one. Most of the low fruit (at the time) has been picked already.

<!-- gh-comment-id:266867572 --> @jfoug commented on GitHub (Dec 13, 2016): Yes, that is the one. Most of the low fruit (at the time) has been picked already.
Author
Owner

@magnumripper commented on GitHub (Dec 13, 2016):

It did list EVP crap and other stuff but not, for example, the high-level DSA crap in gpg_common_plug.c which is what currently breaks a build against OpenSSL 1.1.0. So I think that hasn't even been looked at. It may be trivial, or maybe not.

<!-- gh-comment-id:266868372 --> @magnumripper commented on GitHub (Dec 13, 2016): It did list EVP crap and other stuff but not, for example, the high-level DSA crap in gpg_common_plug.c which is what currently breaks a build against OpenSSL 1.1.0. So I think that hasn't even been looked at. It may be trivial, or maybe not.
Author
Owner

@jfoug commented on GitHub (Dec 13, 2016):

Originally that was on my list. I dropped it, as it did not appear to be trivial at all.

<!-- gh-comment-id:266870131 --> @jfoug commented on GitHub (Dec 13, 2016): Originally that was on my list. I dropped it, as it did not appear to be trivial at all.
Author
Owner

@magnumripper commented on GitHub (Feb 26, 2018):

I started a branch (not pushed anywhere yet) that doesn't use OpenSSL but the penalty for MD4/5 and SHA-1/SHA-512 is more significant than I would have thought (I think OpenSSL use assembler for x86). OTOH that was obviously a non-SIMD build so maybe it's worth it anyway (and anyone is free to improve our in-tree code).

Once complete, I will push it as a PR and then we'll see if we want to merge it to bleeding-jumbo or keep it a fork (which will get stale)...

<!-- gh-comment-id:368418900 --> @magnumripper commented on GitHub (Feb 26, 2018): I started a branch (not pushed anywhere yet) that doesn't use OpenSSL but the penalty for MD4/5 and SHA-1/SHA-512 is more significant than I would have thought (I think OpenSSL use assembler for x86). OTOH that was obviously a non-SIMD build so maybe it's worth it anyway (and anyone is free to improve our in-tree code). Once complete, I will push it as a PR and then we'll see if we want to merge it to bleeding-jumbo or keep it a fork (which will get stale)...
Author
Owner

@solardiz commented on GitHub (May 25, 2024):

It is now possible to build --without-openssl.

<!-- gh-comment-id:2131315177 --> @solardiz commented on GitHub (May 25, 2024): It is now possible to build `--without-openssl`.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openwall/john#1577
No description provided.