-
Notifications
You must be signed in to change notification settings - Fork 772
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
[dice] Refactor the dice
library to support multiple implementations
#24609
Conversation
ca72c15
to
d24528c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of suggestions, otherwise this LGTM. Thanks @tommychiu-github !
// UDS (Creator) attestation key diverisfier constants. | ||
// Note: versions are always set to 0 so these keys are always valid from the | ||
// perspective of the keymgr hardware. | ||
const sc_keymgr_diversification_t kUdsKeymgrDiversifier = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since these diversifiers are the same between both DICE libs (dice.c and dice_cwt.c), perhaps these should move to a separate lib that is included in both dice.c and dice_cwt.c so we don't repeat ourselves here. (OK to do in a follow up PR/commit).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea. Will push a commit for that later.
dice_cwt
lib for generating DICE CWT certs
@tommychiu-github for future reference, please update the title and descriptions of your PRs to be more descriptive and formatted like commit message. Thanks! |
d24528c
to
97e6027
Compare
We are having multiple DICE implementations for different SKUs. Declare multiple ft_personalize_base* lib to link the related implementations. Bug: 356532759 Bug: lowRISC/opentitan:lowRISC#24281 Test: ft_provision_dice_cwt_fpga_cw340_rom_with_fake_keys Signed-off-by: Tommy Chiu <[email protected]>
667b8b7
to
b1aad6b
Compare
dice_cwt
lib for generating DICE CWT certs dice
library to support multiple implementations
Updated. |
For dice_lib to support different formats including X509 and CWT(CBOR). Bug: 356532759 Bug: lowRISC/opentitan:lowRISC#24281 Test: ft_provision_dice_cwt_fpga_cw340_rom_with_fake_keys Signed-off-by: Tommy Chiu <[email protected]>
b1aad6b
to
a471a83
Compare
Successfully created backport PR for |
Successfully created backport PR for |
Git push to origin failed for earlgrey_1.0.0 with exitcode 1 |
To support mutliple DICE implementation (X.509 with ASN.1, and CWT with CBOR), it'll require to refactor current dice lib implementation.
dice_cwt
lib (implementation details to be added later)open_dice
library to generate UDS_Pub structure