-
Notifications
You must be signed in to change notification settings - Fork 781
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, rtl] Reorganize keymgr advance payloads #22878
Conversation
fae8593
to
cee92c6
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.
Thx @ballifatih, RTL and DV change LGTM.
In the RTL, this is as simple as adding the revision seed to the material used for advancing into the OwnerIntermediate key and the Owner key.
DV seems to have been properly updated to cover this change: I ran util/dvsim/dvsim.py hw/ip/keymgr/dv/keymgr_sim_cfg.hjson -i all -rx 0.5
and got the usual pass rates.
That leaves the spec side, where I'd like explicit approval from @moidx and for which we should update doc/security/specs/identities_and_root_keys/identities_and_root_keys_DICE_fig1b.svg
if we decide to merge this
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.
The changes look good to me, thanks @ballifatih for working out the change and making sure DV can deal with this, too. I am supportive of merging this but don't want to make the final call as I don't know the design / relevant spec that well.
A solution to the issue raised in lowRISC#22565, which does the following changes: * Use REVISION_SEED only for 1st advance as the first block. * Use CREATOR_ADV_SEED only for 2nd advance as the first block. * Use OWNER_ADV_SEED only for 3rd advance as the first block. thereby ensuring that domain separation for KDF-KMAC is done correctly. Signed-off-by: Fatih Balli <[email protected]>
cee92c6
to
7d6e790
Compare
revision_seed
in advance calls
Block-level DV results look similar to without this PR.
|
|
Thanks @ballifatih! |
For better alignment with the NIST standards, we have updated how diversification inputs are consumed during advance calls. The RTL/DV change was resolved in lowRISC#22878. This commit updates the identity and keys documentation to match these previously merged changes. Signed-off-by: Fatih Balli <[email protected]>
For better alignment with the NIST standards, we have updated how diversification inputs are consumed during advance calls. The RTL/DV change was resolved in #22878. This commit updates the identity and keys documentation to match these previously merged changes. Signed-off-by: Fatih Balli <[email protected]>
I am having some issues with my environment and I need to runt this through CI.
It basically tries to address to #22565 by: