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

Remove allocation in slh-dsa #860

Merged

Conversation

jonmon6691
Copy link
Contributor

This PR takes care of some TODO's in the sign and verify functions in the slh-dsa crate, thereby resolving #854

I'm passing the new messages parts on the stack as slice references down into the functions h_msg and prf_msg so that each part can be .update()'ed into the digest without having to copy them into new memory. I think it could be improved with some type system wizardry to enforce the layout specified in FIPS 205, but that's a bit beyond my abilities.

@tarcieri tarcieri merged commit 8f93676 into RustCrypto:master Oct 20, 2024
4 checks passed
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.

2 participants