[GH-ISSUE #1324] HMAC MD5 cleanup #829

Closed
opened 2026-10-14 03:25:31 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @magnumripper on GitHub (May 18, 2015).
Original GitHub issue: https://github.com/openwall/john/issues/1324

Originally assigned to: @kholia on GitHub.

Apparently we have one implementation in hmacmd5.c and another in md5_plug.c. Which of them do we use? Both?

Also, the one in md5_plug.c has an md5context struct that includes 128 bytes of HMAC context. Is this used for non-HMAC MD5 too? That would be wasteful and might hurt locality and/or hot footprint. The hmacmd5.c one is better, using a separate struct for HMAC.

Originally created by @magnumripper on GitHub (May 18, 2015). Original GitHub issue: https://github.com/openwall/john/issues/1324 Originally assigned to: @kholia on GitHub. Apparently we have one implementation in hmacmd5.c and another in md5_plug.c. Which of them do we use? Both? Also, the one in md5_plug.c has an md5context struct that includes 128 bytes of HMAC context. Is this used for non-HMAC MD5 too? That would be wasteful and might hurt locality and/or hot footprint. The hmacmd5.c one is better, using a separate struct for HMAC.
bsakaguchi 2026-10-14 03:25:31 +07:00
Author
Owner

@magnumripper commented on GitHub (May 22, 2015):

Oh, I see now @kholia added md5_plug.[ch] just a few days ago.

Add the PKCS5_PBKDF2_HMAC_MD5() function to hmacmd5.c - the rest already exists and is better. Then remove these new files, they are redundant and we definitely don't need more versions if things!

<!-- gh-comment-id:104477624 --> @magnumripper commented on GitHub (May 22, 2015): Oh, I see now @kholia added md5_plug.[ch] just a few days ago. Add the PKCS5_PBKDF2_HMAC_MD5() function to hmacmd5.c - the rest already exists and is better. Then remove these new files, they are redundant and we definitely don't need more versions if things!
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#829
No description provided.