-
Notifications
You must be signed in to change notification settings - Fork 771
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dif, keymgr] Add CDI type option to dif_keymgr
The keymgr IP supports both the sealing and attestation CDI flows, which is controlled by the `CDI_SEL` field in the `CONTROL_SHADOWED` register. So far, this field was hardcoded to the sealing type in the keymgr DIF. This commit parametrizes the field, making it possible to also invoke the attestation flow through the DIF. In particular, the commit comprises the following changes: - A new `dif_keymgr_cdi_type_t` enumeration type. - A new `dif_keymgr_identity_seed_params_t` struct such that the CDI flow can be chosen for the identity derivations. - A new `cdi_type` field in `dif_keymgr_versioned_key_params_t` to chose the CDI flow for software and sideload key derivations. - Added unit tests pertaining to the CDI type. - Updated some calls to this new API in other files. Signed-off-by: Andrea Caforio <[email protected]> (cherry picked from commit 24bbbe6)
- Loading branch information
1 parent
da7695a
commit ed9a230
Showing
7 changed files
with
135 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters