[GH-ISSUE #356] GPU support for RAKP format #96

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

Originally created by @kholia on GitHub (Jul 26, 2013).
Original GitHub issue: https://github.com/openwall/john/issues/356

Originally assigned to: @sayan1an on GitHub.

RAKP format is being heavily used from what I hear.

Recently, I got a request for adding support for cracking RAKP hashes on the GPU.

@magnumripper @ukasz can you guys please take a look at this request?

Originally created by @kholia on GitHub (Jul 26, 2013). Original GitHub issue: https://github.com/openwall/john/issues/356 Originally assigned to: @sayan1an on GitHub. RAKP format is being heavily used from what I hear. Recently, I got a request for adding support for cracking RAKP hashes on the GPU. @magnumripper @ukasz can you guys please take a look at this request?
bsakaguchi 2026-10-14 02:52:23 +07:00
Author
Owner

@kholia commented on GitHub (Jul 26, 2013):

Algorithm is HMAC-SHA1. The data / salt size is a bit large (75 to 90 bytes).

Current CPU format's speed on i7-3520M CPU @ 2.90GHz,

✗ ../run/john --format=rakp -t
Benchmarking: RAKP [IPMI 2.0 RAKP (RMCP+) HMAC-SHA1 32/64 OpenSSL]... DONE
Many salts: 1662K c/s real, 1662K c/s virtual
Only one salt:  1582K c/s real, 1582K c/s virtual
<!-- gh-comment-id:21601952 --> @kholia commented on GitHub (Jul 26, 2013): Algorithm is HMAC-SHA1. The data / salt size is a bit large (75 to 90 bytes). Current CPU format's speed on i7-3520M CPU @ 2.90GHz, ``` ✗ ../run/john --format=rakp -t Benchmarking: RAKP [IPMI 2.0 RAKP (RMCP+) HMAC-SHA1 32/64 OpenSSL]... DONE Many salts: 1662K c/s real, 1662K c/s virtual Only one salt: 1582K c/s real, 1582K c/s virtual ```
Author
Owner

@kholia commented on GitHub (Jul 26, 2013):

@Sayantan2048 this might be interesting to you as well ;)

<!-- gh-comment-id:21602213 --> @kholia commented on GitHub (Jul 26, 2013): @Sayantan2048 this might be interesting to you as well ;)
Author
Owner

@sayan1an commented on GitHub (Jul 27, 2013):

@kholia Do you have the definition for SHA1* functions or something that I can use to replace those functions ? Otherwise it would be very difficult for me to port those functions to opencl.

<!-- gh-comment-id:21660845 --> @sayan1an commented on GitHub (Jul 27, 2013): @kholia Do you have the definition for SHA1\* functions or something that I can use to replace those functions ? Otherwise it would be very difficult for me to port those functions to opencl.
Author
Owner

@ukasz commented on GitHub (Jul 27, 2013):

@Sayantan2048 we have those definitions in wpapsk kernel or pbkdf2-hmac-sha1, with that it should be easy to port it.

<!-- gh-comment-id:21660935 --> @ukasz commented on GitHub (Jul 27, 2013): @Sayantan2048 we have those definitions in wpapsk kernel or pbkdf2-hmac-sha1, with that it should be easy to port it.
Author
Owner

@magnumripper commented on GitHub (Jul 27, 2013):

It should be very easy to base a kernel on the unsplit pbkdf2-hmac-sha1 one. But I have no time right now unless it starts raining a lot B-)

<!-- gh-comment-id:21661263 --> @magnumripper commented on GitHub (Jul 27, 2013): It should be very easy to base a kernel on the unsplit pbkdf2-hmac-sha1 one. But I have no time right now unless it starts raining a lot B-)
Author
Owner

@kholia commented on GitHub (Jul 27, 2013):

Once thing to note here is that we can't keep transferring the huge salts every time. They need to be kept in the global memory of the GPU.

<!-- gh-comment-id:21661564 --> @kholia commented on GitHub (Jul 27, 2013): Once thing to note here is that we can't keep transferring the huge salts every time. They need to be kept in the global memory of the GPU.
Author
Owner

@magnumripper commented on GitHub (Jul 27, 2013):

Regardless of size, it should be transferred in set_salt() and nowhere else. That's why we have set_salt(). Or am I misunderstanding something?

<!-- gh-comment-id:21661613 --> @magnumripper commented on GitHub (Jul 27, 2013): Regardless of size, it should be transferred in set_salt() and nowhere else. That's why we have set_salt(). Or am I misunderstanding something?
Author
Owner

@sayan1an commented on GitHub (Jul 27, 2013):

Okay I will port it, maybe after next week. Or do you need it for contest ?
How many salts are there in total, for example descrypt has 4096 salts. If the number of salts is limited it shouldn't be difficult.

<!-- gh-comment-id:21664712 --> @sayan1an commented on GitHub (Jul 27, 2013): Okay I will port it, maybe after next week. Or do you need it for contest ? How many salts are there in total, for example descrypt has 4096 salts. If the number of salts is limited it shouldn't be difficult.
Author
Owner

@magnumripper commented on GitHub (Jul 27, 2013):

I reckon if it's 75-90 bytes like Dhiru said above, there's no way you can cheat. Just transfer one actual salt in set_salt() and everything will be sweet.

<!-- gh-comment-id:21666004 --> @magnumripper commented on GitHub (Jul 27, 2013): I reckon if it's 75-90 bytes like Dhiru said above, there's no way you can cheat. Just transfer one actual salt in set_salt() and everything will be sweet.
Author
Owner

@sayan1an commented on GitHub (Jul 28, 2013):

I have a better idea. We can transfer the next salt to gpu when the kernel is working. However we would need a second command queue to do that.

<!-- gh-comment-id:21676557 --> @sayan1an commented on GitHub (Jul 28, 2013): I have a better idea. We can transfer the next salt to gpu when the kernel is working. However we would need a second command queue to do that.
Author
Owner

@magnumripper commented on GitHub (Jul 28, 2013):

I can't see that making any significant difference. A 90 bytes salt is tiny.

<!-- gh-comment-id:21686660 --> @magnumripper commented on GitHub (Jul 28, 2013): I can't see that making any significant difference. A 90 bytes salt is tiny.
Author
Owner

@kholia commented on GitHub (Sep 18, 2013):

Done in #378. Closing this issue.

<!-- gh-comment-id:24683212 --> @kholia commented on GitHub (Sep 18, 2013): Done in #378. Closing this issue.
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#96
No description provided.