Skip to content

Commit

Permalink
snp: add init_data to TCB Claims
Browse files Browse the repository at this point in the history
Since the SNP verifier also checks the init data, include the init_data
field in the tcb claims.

This will allow EAR tokens to contain the init_data_claims.

Signed-off-by: Tobin Feldman-Fitzthum <[email protected]>
  • Loading branch information
fitzthum committed Jan 12, 2025
1 parent 7dc980c commit 68e2a8d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions deps/verifier/src/snp/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -317,11 +317,10 @@ pub(crate) fn parse_tee_evidence(report: &AttestationReport) -> TeeEvidenceParse
"platform_tsme_enabled": format!("{}", report.plat_info.tsme_enabled()),
"platform_smt_enabled": format!("{}", report.plat_info.smt_enabled()),

// measurement
// measurements
"measurement": format!("{}", STANDARD.encode(report.measurement)),

// report data
"report_data": format!("{}", STANDARD.encode(report.report_data)),
"init_data": format!("{}", STANDARD.encode(report.host_data)),
});

claims_map as TeeEvidenceParsedClaim
Expand Down

0 comments on commit 68e2a8d

Please sign in to comment.