[GH-ISSUE #872] Update formats using high count PBKDF2-hmac-xx that do not use pbkdf2-hmac-xxx.h #477

Closed
opened 2026-10-14 03:09:51 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @jfoug on GitHub (Dec 8, 2014).
Original GitHub issue: https://github.com/openwall/john/issues/872

_First****_, make a list of the formats here, then start to pick them off. Most are easy do do and get at least 2x improvements, and once you get SIMD, you get another 2x-4x.

I am NOT tagging this issue to any milestone (at this time). But it might be good for jumbo-2

  • ~~~efs_fmt_plug.c~~~ (done, but was a 'buggy' pbkdf2 implementation)
  • ~~~known_hosts_plug.c~~~ (was only simple hmac, BUT salt/pass were reversed, so we got 2x gain precomputing the 1st half of the hmac in get_salt)
  • ~~~siemens-s7~~~ Some gain here, doing 1/2 of hmac only when new_keys are done. (doubled many salts speed)
  • ~~~rsvp~~~ simple hmac. We can load 1/2 of the hmac in set_key and double many salts speed. (well, speed was not quite double, but close).
  • ~~~krb5-18_plug.c~~~ (done, had to convert from -krb5 at same time. 16x improvement)
Originally created by @jfoug on GitHub (Dec 8, 2014). Original GitHub issue: https://github.com/openwall/john/issues/872 **_**_First**_**_, make a list of the formats here, then start to pick them off. Most are easy do do and get at least 2x improvements, and once you get SIMD, you get another 2x-4x. I am NOT tagging this issue to any milestone (at this time). But it might be good for jumbo-2 - [x] ~~~efs_fmt_plug.c~~~ (done, but was a 'buggy' pbkdf2 implementation) - [x] ~~~known_hosts_plug.c~~~ (was only simple hmac, BUT salt/pass were reversed, so we got 2x gain precomputing the 1st half of the hmac in get_salt) - [x] ~~~siemens-s7~~~ Some gain here, doing 1/2 of hmac only when new_keys are done. (doubled many salts speed) - [x] ~~~rsvp~~~ simple hmac. We can load 1/2 of the hmac in set_key and double many salts speed. (well, speed was not quite double, but close). - [x] ~~~krb5-18_plug.c~~~ (done, had to convert from -krb5 at same time. 16x improvement)
bsakaguchi 2026-10-14 03:09:51 +07:00
Author
Owner

@jfoug commented on GitHub (Dec 16, 2014):

$ grep hmacmd5.h *.c
OK: krb5pa-md5_fmt_plug.c:#include "hmacmd5.h" (already 'split'. Might be able to gain a tiny bit)
OK: NETLMv2_fmt_plug.c:#include "hmacmd5.h" (already 'split'. Might be able to gain a tiny bit)
OK: NETNTLMv2_fmt_plug.c:#include "hmacmd5.h" (already 'split'. Might be able to gain a tiny bit)
?? opencl_krb5pa-md5_fmt_plug.c:#include "hmacmd5.h" (Might see improvement)

$ grep gladman_hmac.h *.c
OK efs_fmt_plug.c:#include "gladman_hmac.h"
OK: opencl_krb5pa-sha1_fmt_plug.c:#include "gladman_hmac.h"
?? putty_fmt_plug.c:#include "gladman_hmac.h" I tried but was not able to prperl improve. Something is not right with this format. many salts is slower, etc. I tried moving the sha1's into get_key and the thing got slower ???
OK: zip_fmt_plug.c:#include "gladman_hmac.h"

$ grep gladman_fileenc.h *.c
OK: dmg2john.c:#include "gladman_fileenc.h" (not a format)
OK: krb5pa-sha1_fmt_plug.c:#include "gladman_fileenc.h"
OK: opencl_zip_fmt_plug.c:#include "gladman_fileenc.h"

<!-- gh-comment-id:67195153 --> @jfoug commented on GitHub (Dec 16, 2014): $ grep hmacmd5.h *.c OK: krb5pa-md5_fmt_plug.c:#include "hmacmd5.h" (already 'split'. Might be able to gain a tiny bit) OK: NETLMv2_fmt_plug.c:#include "hmacmd5.h" (already 'split'. Might be able to gain a tiny bit) OK: NETNTLMv2_fmt_plug.c:#include "hmacmd5.h" (already 'split'. Might be able to gain a tiny bit) ?? opencl_krb5pa-md5_fmt_plug.c:#include "hmacmd5.h" (Might see improvement) $ grep gladman_hmac.h *.c OK efs_fmt_plug.c:#include "gladman_hmac.h" OK: opencl_krb5pa-sha1_fmt_plug.c:#include "gladman_hmac.h" ?? putty_fmt_plug.c:#include "gladman_hmac.h" I tried but was not able to prperl improve. Something is not right with this format. many salts is slower, etc. I tried moving the sha1's into get_key and the thing got slower ??? OK: zip_fmt_plug.c:#include "gladman_hmac.h" $ grep gladman_fileenc.h *.c OK: dmg2john.c:#include "gladman_fileenc.h" (not a format) OK: krb5pa-sha1_fmt_plug.c:#include "gladman_fileenc.h" OK: opencl_zip_fmt_plug.c:#include "gladman_fileenc.h"
Author
Owner

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

I think this was fixed long ago

<!-- gh-comment-id:137814436 --> @magnumripper commented on GitHub (Sep 4, 2015): I think this was fixed long ago
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#477
No description provided.