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

Method to_report_data

dstack-attest/src/attestation.rs:246–249  ·  view source on GitHub ↗

Convert the content to the report data.

(&self, content: &[u8])

Source from the content-addressed store, hash-verified

244
245 /// Convert the content to the report data.
246 pub fn to_report_data(&self, content: &[u8]) -> [u8; 64] {
247 self.to_report_data_with_hash(content, "")
248 .or_panic("sha512 hash should not fail")
249 }
250
251 /// Convert the content to the report data with a specific hash algorithm.
252 pub fn to_report_data_with_hash(&self, content: &[u8], hash: &str) -> Result<[u8; 64]> {

Callers 15

verify_with_timeMethod · 0.80
verify_with_ra_pubkeyMethod · 0.80
from_keysMethod · 0.80
gen_ra_certFunction · 0.80
cmd_gen_ca_certFunction · 0.80
make_app_keysFunction · 0.80
sign_cert_requestFunction · 0.80

Calls 1

Tested by

no test coverage detected