fix(sev_attestation): update SnpReportData
SnpReportData gained new fields according to the AMD documentation.
@@ -48,7 +48,7 @@ struct SnpReportData {
pub image_id: [u8; 16],
pub vmpl: u32,
pub sig_algo: u32,
- pub plat_version: u64,
+ pub current_tcb: u64,
pub plat_info: u64,
pub author_key_en: u32,
rsvd1: u32,
@@ -62,7 +62,17 @@ struct SnpReportData {
pub reported_tcb: u64,
rsvd2: [u8; 24],
pub chip_id: [u8; 64],
- rsvd3: [u8; 192],
+ pub committed_tcb: u64,
+ pub current_build: u8,
+ pub current_minor: u8,
+ pub current_major: u8,
+ rsvd3: u8,
+ pub committed_build: u8,
+ pub committed_minor: u8,
+ pub committed_major: u8,
+ rsvd4: u8,
+ pub launch_tcb: u64,
+ rsvd5: [u8; 168],
pub signature: [u8; 512],
}
@@ -254,7 +264,7 @@ testaso! {
image_id: 0x20,
vmpl: 0x30,
sig_algo: 0x34,
- plat_version: 0x38,
+ current_tcb: 0x38,
plat_info: 0x40,
author_key_en: 0x48,
rsvd1: 0x4C,
@@ -268,7 +278,17 @@ testaso! {
reported_tcb: 0x180,
rsvd2: 0x188,
chip_id: 0x1A0,
- rsvd3: 0x1E0,
+ committed_tcb: 0x1E0,
+ current_build: 0x1E8,
+ current_minor: 0x1E9,
+ current_major: 0x1EA,
+ rsvd3: 0x1EB,
+ committed_build: 0x1EC,
+ committed_minor: 0x1ED,
+ committed_major: 0x1EE,
+ rsvd4: 0x1EF,
+ launch_tcb: 0x1F0,
+ rsvd5: 0x1F8,
signature: 0x2A0
}
