(&self, report_data: [u8; 64], vm_config: &str)
| 34 | } |
| 35 | |
| 36 | fn quote_response(&self, report_data: [u8; 64], vm_config: &str) -> Result<GetQuoteResponse> { |
| 37 | let attestation = Attestation::quote(&report_data).context("Failed to get quote")?; |
| 38 | let tdx_quote = attestation.get_tdx_quote_bytes(); |
| 39 | let tdx_event_log = attestation.get_tdx_event_log_string(); |
| 40 | Ok(GetQuoteResponse { |
| 41 | quote: tdx_quote.unwrap_or_default(), |
| 42 | event_log: tdx_event_log.unwrap_or_default(), |
| 43 | report_data: report_data.to_vec(), |
| 44 | vm_config: vm_config.to_string(), |
| 45 | }) |
| 46 | } |
| 47 | |
| 48 | fn attest_response(&self, report_data: [u8; 64]) -> Result<AttestResponse> { |
| 49 | let attestation = Attestation::quote(&report_data).context("Failed to get attestation")?; |
nothing calls this directly
no test coverage detected