From c503996bd990dfb5331786f123e3c1f1a60beb0b Mon Sep 17 00:00:00 2001 From: Jiale Zhang Date: Tue, 28 Nov 2023 11:38:49 +0800 Subject: [PATCH] Attester: Update CSV evidence format Signed-off-by: Jiale Zhang --- attestation-agent/attester/src/csv/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/attestation-agent/attester/src/csv/mod.rs b/attestation-agent/attester/src/csv/mod.rs index b3418a0cf..bdf5a7eed 100644 --- a/attestation-agent/attester/src/csv/mod.rs +++ b/attestation-agent/attester/src/csv/mod.rs @@ -32,6 +32,8 @@ struct CertificateChain { struct CsvEvidence { attestation_report: AttestationReport, cert_chain: CertificateChain, + // Base64 Encoded CSV Serial Number (Used to identify HYGON chip ID) + serial_number: Vec, } #[derive(Debug, Default)] @@ -59,6 +61,7 @@ impl Attester for CsvAttester { let evidence = CsvEvidence { attestation_report, cert_chain: CertificateChain { hsk, cek, pek }, + serial_number: report_signer.sn.to_vec(), }; serde_json::to_string(&evidence).context("Serialize CSV evidence failed") }