mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #873] Convert pbkdf2_*.h into proper functions and add *_ZEROS logic where possible #479
Labels
No labels
bug
core branch
documentation
enhancement
enhancement
fixed - pending verify
fuzz bug
good first issue
invalid
invalid
maintenance/cleanup
new cracking mode
new format
new tool
non-trivial
notes/external issues
portability
question
RFC / discussion
testing
WONTFIX
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
openwall/john#479
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jfoug on GitHub (Dec 9, 2014).
Original GitHub issue: https://github.com/openwall/john/issues/873
Several issues here.
i.e. pbkdf2_hmac_sha256, pbkdf1_hmac_sha256, pbkdf2_hmac_sha256_efs would be available in the sha256 file.
These extra functions probably should be able to be done with #include of the code again, with a couple #defines.
@magnumripper commented on GitHub (Jul 22, 2015):
In OpenCL we have the SHA1 "ZEROS" functions as SHA1_160Z (for 160 bits of input, eg. PBKDF2-HMAC-SHA1) and SHA1_192Z (for 192 bits of input, ie. Office 2007/2010 formats).
For SHA256 there's just SHA256_ZEROS (256 bits of input) and it's for PBKDF2 (no Office format uses SHA256).
For SHA512 there's just SHA512_ZEROS but it's actually for up to 575 bits of input in order to fit Office2013 too (so the PBKDF2 format has to declare W[8] and set it to 0x8000000000000000UL and both need to set W[15] accordingly). We should have separate SHA512_512Z() and SHA512_544Z() to get best of both worlds.