-
Notifications
You must be signed in to change notification settings - Fork 82
Milestone
Description
- Caliptra Version : 1.x, 2.x latest
During Caliptra update-reset, it seems to hand over wrong value to the DPE(RT TCI)
For the tci_current, RT_FW_CURRENT_PCR must be assigned, but RT_FW_JOURNEY_PCR is being assigned.
Please check if this is intended.
Corresponding codes:
let latest_pcr = <[u8; 48]>::from(drivers.pcr_bank.read_pcr(RT_FW_JOURNEY_PCR));
dpe.contexts[root_idx].tci.tci_current = TciMeasurement(latest_pcr);
dpe.contexts[root_idx].tci.tci_cumulative = TciMeasurement(latest_pcr);
1.x:
caliptra-sw/runtime/src/drivers.rs
Lines 282 to 284 in f25760f
| let latest_pcr = <[u8; 48]>::from(drivers.pcr_bank.read_pcr(RT_FW_JOURNEY_PCR)); | |
| dpe.contexts[root_idx].tci.tci_current = TciMeasurement(latest_pcr); | |
| dpe.contexts[root_idx].tci.tci_cumulative = TciMeasurement(latest_pcr); |
2.x:
caliptra-sw/runtime/src/drivers.rs
Lines 341 to 343 in 962e12b
| let latest_pcr = <[u8; 48]>::from(drivers.pcr_bank.read_pcr(RT_FW_JOURNEY_PCR)); | |
| dpe.contexts[root_idx].tci.tci_current = TciMeasurement(latest_pcr); | |
| dpe.contexts[root_idx].tci.tci_cumulative = TciMeasurement(latest_pcr); |
Metadata
Metadata
Assignees
Labels
No labels