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

[pa,spm] enhance DeriveSymmetricKeys to gen multiple keys and hashed OT LC tokens #32

Merged
merged 6 commits into from
Oct 8, 2024

Conversation

timothytrippel
Copy link
Collaborator

This enhances the DeriveSymmetricKey RPC function (and renames it to DeriveSymmetricKeys) to be able to:

  • generate multiple keys with one invocation, and
  • generate cSHAKE128 hashed OT LC tokens.

Overall this will increase the performance of the provisioning system as a whole by reducing the number of round-trips between the tester and PA/SPM.

Note: this depends on #31. Only review the last two commits.

This SKU string is required in order to retrieve the SE session that
backs the SPM service.

Signed-off-by: Tim Trippel <[email protected]>
This updates the PA and SPM to implement the `DeriveSymmetricKey` key
RPC function. This partially addresses lowRISC#4.

Signed-off-by: Tim Trippel <[email protected]>
This adds a `sival` OpenTitan Earlgrey SKU configuration for testing.
Additionally this removes the execute privilege bits on the SKU YAML
config files.

Signed-off-by: Tim Trippel <[email protected]>
This updates the PA loadtest and integration test script to enable
testing the sival SKU provisioning sequence that now includes invoking
the DeriveSymmetricKey function on the PA and SPM.

Part of refactoring the loadtest will enable testing additional SKUs in
the future as well.

Signed-off-by: Tim Trippel <[email protected]>
This enhances the `DeriveSymmetricKey` RPC function (and renames it to
`DeriveSymmetricKeys`) to be able to generate multiple keys with one
invocation. This will increase the performance of the provisioning
system as a whole by reducing the number of round-trips between the
tester and PA/SPM.

Signed-off-by: Tim Trippel <[email protected]>
This updates the SPM to enable generating cSHAKE128 hashed OpenTitan
lifecycle tokens using the DeriveSymmetricKeys RPC function.

This partially addresses lowRISC#4.

Signed-off-by: Tim Trippel <[email protected]>
@timothytrippel timothytrippel merged commit 892487b into lowRISC:main Oct 8, 2024
4 checks passed
@timothytrippel timothytrippel deleted the impl-derrive-seed-pt2 branch October 8, 2024 16:24
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