lowRISC / opentitan

OpenTitan: Open source silicon root of trust
https://www.opentitan.org
Apache License 2.0
2.59k stars 782 forks source link

[kmac/dv] Extend DV to cover sideload key becoming invalid in all states #22956

Open vogelpi opened 7 months ago

vogelpi commented 7 months ago

Description

Factored out from #22794 and #16855. We should extend DV to cover the sideload key becoming invalid during operation in all possible states.

@andreaskurth and I discussed that this is not ultra critical (thus M5 rather than M4) but that it's still relevant because KEYMGR may clear sideload keys anytime it enters the invalid state / during an escalation. We should make sure this is covered sufficiently in DV to verify that KMAC does the right thing in this case.

vogelpi commented 5 months ago

It would be good to get more coverage for this. But in the grand scheme, it's probably more like a V3 issue? To discuss with @andreaskurth when he is back (he implemented the RTL changes and previous DV for this).

johngt commented 5 months ago

@vogelpi has already highlighted that this should not gate M5 as it is more of a V3 item, so should possibly move to M7. Labelling for triage

moidx commented 5 months ago

Moving to M7 as a V3 issue.

vogelpi commented 3 months ago

I noted that due to the PR which led us opening this issue ( #22794) the FSM coverage dropped from ~94% to 76%. With this issue here in mind, this drop can be explained. For reference:

vogelpi commented 1 month ago

@nasahlpa prepared a PR to cover most of the state transitions here: #24724.

There are some transitions which are not covered yet as outlined in this issue: #24741.