-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
alg-sha256.c: SHA-2 Maj() optimization proposed by Wei Dai.
This patch has been cherry-picked from: openwall/yescrypt@9edf51061b45
- Loading branch information
Showing
1 changed file
with
9 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bb17218
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW, the same kind of optimization would also apply to SHA-512.
bb17218
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@solardiz Applied for SHA-512 in 5982354.
bb17218
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@besser82 Cool. I wonder whether/how this affected code size and speed for sha512crypt?
Similar changes are also possible for SHA-1 and MD4, but their effect is not so obvious, and we didn't even complete this for JtR yet (need to revisit it): openwall/john#4727