[GH-ISSUE #1753] Non-iterated SHA-2 OpenCL formats unusable with many hashes #1163

Closed
opened 2026-10-14 03:37:32 +07:00 by bsakaguchi · 11 comments
Owner

Originally created by @magnumripper on GitHub (Sep 13, 2015).
Original GitHub issue: https://github.com/openwall/john/issues/1753

http://www.openwall.com/lists/john-dev/2015/09/13/14

I think we might in fact want to revert the non-iterated SHA-2 GPU formats to prior to Claudio's implementation of hash comparisons on GPU, which mostly made things worse (way too slow when cracking more than a handful of hashes - turned out to be unusably slow in the recent contest). myrice's implementations worked better (and IIRC had no GPL restrictions on them too).

@claudioandre are you aware of this problem?

Originally created by @magnumripper on GitHub (Sep 13, 2015). Original GitHub issue: https://github.com/openwall/john/issues/1753 http://www.openwall.com/lists/john-dev/2015/09/13/14 _I think we might in fact want to revert the non-iterated SHA-2 GPU formats to prior to Claudio's implementation of hash comparisons on GPU, which mostly made things worse (way too slow when cracking more than a handful of hashes - turned out to be unusably slow in the recent contest). myrice's implementations worked better (and IIRC had no GPL restrictions on them too)._ @claudioandre are you aware of this problem?
bsakaguchi 2026-10-14 03:37:32 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@magnumripper commented on GitHub (Sep 13, 2015):

See #676 for why we dropped Myrice's SHA-512 formats.

<!-- gh-comment-id:139893721 --> @magnumripper commented on GitHub (Sep 13, 2015): See #676 for why we dropped Myrice's SHA-512 formats.
Author
Owner

@ghost commented on GitHub (Sep 13, 2015):

I'll try to find the Myrice's file on git history!

Just wait a day or two.

2015-09-13 13:19 GMT-03:00 magnum notifications@github.com:

http://www.openwall.com/lists/john-dev/2015/09/13/14

I think we might in fact want to revert the non-iterated SHA-2 GPU
formats to prior to Claudio's implementation of hash comparisons on GPU,
which mostly made things worse (way too slow when cracking more than a
handful of hashes - turned out to be unusably slow in the recent contest).
myrice's implementations worked better (and IIRC had no GPL restrictions on
them too).

@claudioandre https://github.com/claudioandre are you aware of this
problem?

—
Reply to this email directly or view it on GitHub
https://github.com/magnumripper/JohnTheRipper/issues/1753.

<!-- gh-comment-id:139901403 --> @ghost commented on GitHub (Sep 13, 2015): I'll try to find the Myrice's file on git history! Just wait a day or two. 2015-09-13 13:19 GMT-03:00 magnum notifications@github.com: > http://www.openwall.com/lists/john-dev/2015/09/13/14 > > _I think we might in fact want to revert the non-iterated SHA-2 GPU > formats to prior to Claudio's implementation of hash comparisons on GPU, > which mostly made things worse (way too slow when cracking more than a > handful of hashes - turned out to be unusably slow in the recent contest). > myrice's implementations worked better (and IIRC had no GPL restrictions on > them too)._ > > @claudioandre https://github.com/claudioandre are you aware of this > problem? > > — > Reply to this email directly or view it on GitHub > https://github.com/magnumripper/JohnTheRipper/issues/1753.
Author
Owner

@magnumripper commented on GitHub (Sep 13, 2015):

185333e4 dropped the format files from unused, and c5f50a90 dropped the kernel too.

<!-- gh-comment-id:139906972 --> @magnumripper commented on GitHub (Sep 13, 2015): 185333e4 dropped the format files from unused, and c5f50a90 dropped the kernel too.
Author
Owner

@ghost commented on GitHub (Sep 13, 2015):

Ok, I will get them from there (but I'm not sure they will work at all).

Moving my format to be a '-ng' now.

<!-- gh-comment-id:139907191 --> @ghost commented on GitHub (Sep 13, 2015): Ok, I will get them from there (but I'm not sure they will work at all). Moving my format to be a '-ng' now.
Author
Owner

@ghost commented on GitHub (Sep 13, 2015):

I can't compile Myrice code. Seems API changed meanwhile.

Myrice wasn't active when the code was dropped, I'm affraid he is not active now.

<!-- gh-comment-id:139908741 --> @ghost commented on GitHub (Sep 13, 2015): I can't compile Myrice code. Seems API changed meanwhile. Myrice wasn't active when the code was dropped, I'm affraid he is not active now.
Author
Owner

@ghost commented on GitHub (Sep 13, 2015):

Ok, I finished to read the thread now.

  • @magnumripper said he can revert (I did, but failed to compile. There are some API chances - at least).

That said, I'm affraid I can't fix Myrice file right now.


I can leave a maskless version of 'my' own format as a replacement (while waiting for Myrice).

Working on this now (any known regression will be fixed).

<!-- gh-comment-id:139910386 --> @ghost commented on GitHub (Sep 13, 2015): Ok, I finished to read the thread now. - @magnumripper said he can revert (I did, but failed to compile. There are some API chances - at least). That said, I'm affraid I can't fix Myrice file right now. --- I can leave a maskless version of 'my' own format as a replacement (while waiting for Myrice). Working on this now (any known regression will be fixed).
Author
Owner

@magnumripper commented on GitHub (Sep 13, 2015):

So should I merge #1755? Then I could try to fix Myrice's format.

<!-- gh-comment-id:139913714 --> @magnumripper commented on GitHub (Sep 13, 2015): So should I merge #1755? Then I could try to fix Myrice's format.
Author
Owner

@ghost commented on GitHub (Sep 13, 2015):

Just wait a few minutes.

<!-- gh-comment-id:139913773 --> @ghost commented on GitHub (Sep 13, 2015): Just wait a few minutes.
Author
Owner

@ghost commented on GitHub (Sep 13, 2015):

You can merge now.

  • I reverted raw-sha512-opencl to its previous 'maskless' version.

So, meawhile you fix Myrice code, the version available has no regressions dealing with a lot of hashes (got what I mean?).

<!-- gh-comment-id:139918212 --> @ghost commented on GitHub (Sep 13, 2015): You can merge now. - I reverted raw-sha512-opencl to its previous 'maskless' version. So, meawhile you fix Myrice code, the version available has no regressions dealing with a lot of hashes (got what I mean?).
Author
Owner

@magnumripper commented on GitHub (Sep 13, 2015):

ae78af6a put Myrice's formats back. They need auto-tuning and shit fixed so issue remains open.

<!-- gh-comment-id:139926369 --> @magnumripper commented on GitHub (Sep 13, 2015): ae78af6a put Myrice's formats back. They need auto-tuning and shit fixed so issue remains open.
Author
Owner

@magnumripper commented on GitHub (Sep 14, 2015):

They need auto-tuning and shit fixed

Auto-tuning and shit fixed.

<!-- gh-comment-id:140196481 --> @magnumripper commented on GitHub (Sep 14, 2015): > They need auto-tuning and shit fixed Auto-tuning and shit fixed.
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#1163
No description provided.