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

[spm/se] Add support to wrap/unwrap symmetric keys at the Secure Element se interface level. #76

Merged
merged 2 commits into from
Feb 21, 2025

Conversation

moidx
Copy link
Collaborator

@moidx moidx commented Feb 21, 2025

  1. Add support for generic secret key wrap/unwrap to the kdf package.
  2. Add support for key wrap parameters to the se.GenerateSymmetricKeys interface.

In a future commit, the provisioning appliance and SPM services will implement a separate API for wrapped tokens to make it easier to integrate the ATE C interface.

Add support for wrapping/unwrapping KDF generic secrets using RSA keys.
Update `pk11.rsa.Generate` function to support `ENCRYPT`, `DECRYPT`,
`WRAP` and `UNWRAP` attributes.

Signed-off-by: Miguel Osorio <[email protected]>
@moidx moidx requested a review from timothytrippel February 21, 2025 06:49
Update the `se.GenerateSymmetricKeys` interface to support wrapping of
random keys. This is done to support RMA token wrapping operations.

Implemented key wrap functionality in the `se_pk11` package. Added a
unit test case to ensure it is possible to recreate the token with the
wrapped key.

SoftHsm only supports RSA_PKCS wrap mechanism. We recommend using
RSA_OAEP with real HSMs.

Signed-off-by: Miguel Osorio <[email protected]>
@moidx moidx merged commit 71bcbb6 into lowRISC:main Feb 21, 2025
4 checks passed
@moidx moidx deleted the rma-wrap-token branch February 21, 2025 16:42
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