Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keccak: Add keccak_p fns for [200, 400, 800, 1600] #55

Merged
merged 1 commit into from
Apr 30, 2023

Conversation

aewag
Copy link
Contributor

@aewag aewag commented Apr 28, 2023

Due to the generics approach of the keccak_p routine, the performance degrades significantly. To encounter this the commonly used functions are now defined by macros.

See RustCrypto/hashes#468 for issue raised about performance degradation.

@aewag aewag marked this pull request as draft April 28, 2023 08:57
@aewag aewag force-pushed the add-fixed-sized-keccak-p-routines branch 2 times, most recently from c72f5df to 4ef70ec Compare April 28, 2023 09:14
Due to the generics approach of the keccak_p routine, the performance
degrades significantly. To encounter this the commonly used functions
are now defined by macros.
@aewag aewag force-pushed the add-fixed-sized-keccak-p-routines branch from 4ef70ec to f434463 Compare April 28, 2023 09:20
@tarcieri
Copy link
Member

This approach looks ok to me and appears to be backwards compatible?

@tarcieri tarcieri requested a review from newpavlov April 28, 2023 13:34
@aewag
Copy link
Contributor Author

aewag commented Apr 30, 2023

Yes. It only adds the functions in addition to the existing ones.

@aewag aewag marked this pull request as ready for review April 30, 2023 16:20
@tarcieri tarcieri merged commit 6e512a3 into RustCrypto:master Apr 30, 2023
29 checks passed
@tarcieri tarcieri mentioned this pull request May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants