MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / quote_response

Method quote_response

guest-agent/src/backend.rs:36–46  ·  view source on GitHub ↗
(&self, report_data: [u8; 64], vm_config: &str)

Source from the content-addressed store, hash-verified

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")?;

Callers

nothing calls this directly

Calls 3

get_tdx_quote_bytesMethod · 0.80
to_vecMethod · 0.80

Tested by

no test coverage detected