-
Notifications
You must be signed in to change notification settings - Fork 814
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
[keymgr_dpe] Port keymgr_dpe_key_derivation
test from integrated_dev
#26350
base: master
Are you sure you want to change the base?
Conversation
d77fef9
to
7214899
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.
Looks good to me
7214899
to
12a5e28
Compare
Rebased |
12a5e28
to
9505277
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.
It seems that the otp_ctrl is missing some secret3 stuff which is present on integrated_dev.
Ports the otp_ctrl DIF to support Darjeeling as well as Earlgrey by pulling in all the changes from the `integrated_dev` branch related to Darjeeling's new partitions, wrapping them in conditional compilation based on the current top being built for. In particular almost all of the code ported over from the `integrated_dev` branch can be traced back to commit bb4e9b0. Co-authored-by: Guillermo Maturana <[email protected]> Signed-off-by: Alex Jones <[email protected]>
This commit adds a top-level key derivation test, loosely derived from `chip_sw_keymgr_key_derivation` for the non-DPE `keymgr`. In a nutshell, the test goes through multiple key derivations from boot stage 0 to 3 and checks that `keymgr_dpe` correctly takes the various inputs from hardware (e.g., `otp_ctrl`, `rom_ctrl`) and software into account when deriving its internal keys as well as when generating versioned keys for SW or sideloading to HW (AES, OTBN, and KMAC). This commit is a squash of the following four commits which do not make sense individually on this branch: (cherry picked from commit 51622c5) (cherry picked from commit eafb436) (cherry picked from commit edef349) (cherry picked from commit 14bdf72) Co-authored-by: James Wainwright <[email protected]> Signed-off-by: Miguel Osorio <[email protected]> Signed-off-by: Andreas Kurth <[email protected]> Signed-off-by: Ravi Sahita <[email protected]> Signed-off-by: James Wainwright <[email protected]>
Signed-off-by: James Wainwright <[email protected]>
Signed-off-by: James Wainwright <[email protected]>
Signed-off-by: James Wainwright <[email protected]>
9505277
to
5db622f
Compare
@nbdd0121 I have swapped my OTP dif patch for @AlexJones0's which is much more comprehensive. The |
I have not yet ported to device tables, this is more or less a straight cherry pick with only superficial fixes to paths etc.
I have had to squash the four commits that added this test (and testutils) into one because individually they do not compile.
This PR also includes a partial fix to allow
dif_otp_ctrl
to be used on Darjeeling. The real fix may involve generating parts of this DIF instead.edit: now includes the DT changes