[keymgr_dpe, dv] fix `check_invalid_key` function
Open
Component:DV
IP:keymgr_dpe
- Dominant language
- SystemVerilog
- Stars
- 3.6k
- Forks
- 1.1k
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 141
Description
### Description
In **keymgr_dpe_if.sv**:
`keys_a_array` stored keys truncated to `KeyWidth`, but OTBN sideloads
the full `WideHwKeyWidth` digest, so its invalid-key check ignored the
upper bits.
See [here](https://github.com/lowRISC/opentitan/blob/119f86a224419c5317ef7158da5bd89a3631f772/hw/ip/keymgr_dpe/dv/env/keymgr_dpe_if.sv#L585).
Contributor guide
Assessment
This issue has not been assessed yet.