[GH-ISSUE #482] port over gpg format fixes to gpg-opencl format #192

Closed
opened 2026-10-14 02:55:44 +07:00 by bsakaguchi · 12 comments
Owner

Originally created by @kholia on GitHub (Jan 9, 2014).
Original GitHub issue: https://github.com/openwall/john/issues/482

Originally assigned to: @magnumripper on GitHub.

Originally created by @kholia on GitHub (Jan 9, 2014). Original GitHub issue: https://github.com/openwall/john/issues/482 Originally assigned to: @magnumripper on GitHub.
bsakaguchi 2026-10-14 02:55:44 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@magnumripper commented on GitHub (Jan 9, 2014):

I'll do that

<!-- gh-comment-id:31927247 --> @magnumripper commented on GitHub (Jan 9, 2014): I'll do that
Author
Owner

@magnumripper commented on GitHub (Jan 9, 2014):

It's now in a temporary branch gpg-opencl (7039536bea2d482d69e72d6a25c1c52e8283d996). It doesn't work and I can't see why!

<!-- gh-comment-id:31945622 --> @magnumripper commented on GitHub (Jan 9, 2014): It's now in a temporary branch gpg-opencl (7039536bea2d482d69e72d6a25c1c52e8283d996). It doesn't work and I can't see why!
Author
Owner

@magnumripper commented on GitHub (Jan 9, 2014):

OK, it's the CAST5 and 3DES test vectors that fails. They should work, shouldn't they? I unified the formats using meld, everything is identical except the SHA1 stuff.

<!-- gh-comment-id:31946071 --> @magnumripper commented on GitHub (Jan 9, 2014): OK, it's the CAST5 and 3DES test vectors that fails. They should work, shouldn't they? I unified the formats using meld, everything is identical except the SHA1 stuff.
Author
Owner

@magnumripper commented on GitHub (Jan 9, 2014):

Hmm, some SHA1-CAST5 works fine.

<!-- gh-comment-id:31946514 --> @magnumripper commented on GitHub (Jan 9, 2014): Hmm, some SHA1-CAST5 works fine.
Author
Owner

@kholia commented on GitHub (Jan 9, 2014):

Not all test vectors use "S2KItSaltedSHA1Generator" I think.

<!-- gh-comment-id:31946672 --> @kholia commented on GitHub (Jan 9, 2014): Not _all_ test vectors use "S2KItSaltedSHA1Generator" I think.
Author
Owner

@magnumripper commented on GitHub (Jan 9, 2014):

The ones that doesn't are commented out and valid should reject them otherwise. The one called "SHA1-CAST5 salt-iter, DSA key" passes valid() but fails cmp_all(). And the 3DES ones does not fail valid either.

<!-- gh-comment-id:31946909 --> @magnumripper commented on GitHub (Jan 9, 2014): The ones that doesn't are commented out and valid should reject them otherwise. The one called "SHA1-CAST5 salt-iter, DSA key" passes valid() but fails cmp_all(). And the 3DES ones does not fail valid either.
Author
Owner

@kholia commented on GitHub (Jan 9, 2014):

valid() is sort of partially broken / promiscuous even in the CPU format.

<!-- gh-comment-id:31947127 --> @kholia commented on GitHub (Jan 9, 2014): valid() is sort of partially broken / promiscuous even in the CPU format.
Author
Owner

@magnumripper commented on GitHub (Jan 9, 2014):

But the GPU format only accepts SPEC_ITERATED_SALTED with HASH_SHA1. How can that go wrong?

<!-- gh-comment-id:31947314 --> @magnumripper commented on GitHub (Jan 9, 2014): But the GPU format only accepts SPEC_ITERATED_SALTED with HASH_SHA1. How can that go wrong?
Author
Owner

@jfoug commented on GitHub (Nov 23, 2014):

valid() is sort of partially broken / promiscuous even in the CPU format.

Valid has been updated in CPU. It has also been updated on opencl, but slightly broken, so that some hashes not being handled will not be listed as valid.

<!-- gh-comment-id:64122701 --> @jfoug commented on GitHub (Nov 23, 2014): > valid() is sort of partially broken / promiscuous even in the CPU format. Valid has been updated in CPU. It has also been updated on opencl, but slightly broken, so that some hashes not being handled will not be listed as valid.
Author
Owner

@magnumripper commented on GitHub (Nov 23, 2014):

Wow, with this pace closing old tickets we can soon tell Solar it's about time to release!

<!-- gh-comment-id:64132352 --> @magnumripper commented on GitHub (Nov 23, 2014): Wow, with this pace closing old tickets we can soon tell Solar it's about time to release!
Author
Owner

@jfoug commented on GitHub (Nov 23, 2014):

Have a look at the valid on the opencl 86ead19 . I set extra fields to 0 for the usage == 255 && spec == 3 && algorithm == 1 section. That disables those 2 hashes, but it may not be the way you want them disabled.

<!-- gh-comment-id:64134596 --> @jfoug commented on GitHub (Nov 23, 2014): Have a look at the valid on the opencl 86ead19 . I set extra fields to 0 for the `usage == 255 && spec == 3 && algorithm == 1` section. That disables those 2 hashes, but it may not be the way you want them disabled.
Author
Owner

@magnumripper commented on GitHub (Nov 23, 2014):

I looked but I can't remember all details about that format right now. As long as they are rejected it's probably just fine.

<!-- gh-comment-id:64140359 --> @magnumripper commented on GitHub (Nov 23, 2014): I looked but I can't remember all details about that format right now. As long as they are rejected it's probably just fine.
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#192
No description provided.