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

Add byte-delimited API for SHA2 and SHA3 #194

Merged
merged 3 commits into from
Nov 27, 2024
Merged

Add byte-delimited API for SHA2 and SHA3 #194

merged 3 commits into from
Nov 27, 2024

Conversation

marsella
Copy link
Contributor

Closes #193.

This adds some bytewise APIs to simplify calls to the hash functions.

There are more applications of SHA2 and SHA3 that operate over byte-delimited inputs, but they're all in old competition versions of ML-KEM and ML-DSA. I did not change those here because they don't have any KATs to give me confidence that I replaced them correctly, and because I intend to delete them, so I don't want to invest time into understanding them very carefully right now (see #152).

Input requested on whether you want more documentation to justify the existence or correctness of these.

- uses new bytes API in WOTS+
This only applies to ML-KEM final version. It could technically also be
used in ML-KEM's 3.01 draft but I'm choosing not to try to change that
because we don't have tests to validate it.
This skips applications where we don't have enough tests to be confident
about the changes (basically, old versions of ml-kem and ml-dsa).
@marsella marsella merged commit 4580d85 into master Nov 27, 2024
2 checks passed
@marsella marsella deleted the 193-shabytes branch November 27, 2024 22:14
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.

Add bytewise APIs to SHA2 and SHA3
2 participants