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

[rom] Implement and test MGF1 and SHA2-based thash. #23710

Merged
merged 3 commits into from
Jun 19, 2024

Conversation

jadephilipoom
Copy link
Contributor

Part of #23144

These are preliminary steps for SHA2-based SPHINCS+; essentially the changes I can make without actually flipping the switch on the whole implementation. I've added an MGF1 implementation and a SHA2 version of the SPHINCS+ thash operation, and tests for both that I created using a known-good third-party implementation.

As a side change, I also added test_rom targets for all SPHINCS+ subcomponent tests. I found this useful for debugging, especially since it might be helpful to test SPHINCS+ subcomponents on commits/targets where there are issues with the ROM boot flow.

Since these tests might be useful for debugging boot issues, it's helpful to be
able to use the test ROM for them.

Signed-off-by: Jade Philipoom <[email protected]>
@moidx moidx removed the request for review from a team June 18, 2024 17:47
Copy link
Contributor

@moidx moidx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

The implementation is not yet used anywhere, but will be needed for SHA2-based
SPHINCS+.

Signed-off-by: Jade Philipoom <[email protected]>
The new thash implementation is not yet used, but will be needed for SHA2-based
SPHINCS+.

Signed-off-by: Jade Philipoom <[email protected]>
@jadephilipoom jadephilipoom merged commit d47e7cf into lowRISC:master Jun 19, 2024
31 checks passed
@jadephilipoom jadephilipoom deleted the spx-sha2-prelim branch June 19, 2024 09:34
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