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

[hsmtool] Support SPHINCS+ in CloudKMS #25857

Merged
merged 5 commits into from
Jan 28, 2025

Conversation

cfrantz
Copy link
Contributor

@cfrantz cfrantz commented Jan 14, 2025

Use the CloudKMS REST/json API to perform SPHINCS+ signing.

@cfrantz cfrantz requested a review from a team as a code owner January 14, 2025 03:26
@cfrantz cfrantz removed the request for review from a team January 14, 2025 03:26
@cfrantz cfrantz force-pushed the hsmtool-kms branch 2 times, most recently from 015a62c to 833faa4 Compare January 15, 2025 23:26
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.

This is awesome! Thank you @cfrantz!

@cfrantz cfrantz force-pushed the hsmtool-kms branch 3 times, most recently from 71a27ee to 19a09e0 Compare January 27, 2025 17:11
I typo'ed the formal sphincs+ algorithm names as `SLA-DSA-...` when they
should have been `SLH-DSA-...`.

Signed-off-by: Chris Frantz <[email protected]>
Rename the `spxef` module to `extra::spxef` as we'll be adding more
custom backends into the `extra` module.

Signed-off-by: Chris Frantz <[email protected]>
Some HSMs perform the domain preparation as part of their API, and thus
we should not perform domain preparation on the data sent to the HSM.

1. Remove domain prepration from the `SignData` preparation function.
2. Add domain preparation to the acorn backend.
3. Pass the domain parameter to the sphincsplus reference implementation
   sign/verify functions.

Signed-off-by: Chris Frantz <[email protected]>
1. Use the CloudKMS REST/json API to perform SPHINCS+ signing.

Signed-off-by: Chris Frantz <[email protected]>
@cfrantz cfrantz merged commit 2ce2a91 into lowRISC:earlgrey_1.0.0 Jan 28, 2025
32 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