pub trait TeeCall: Send + Sync {
// Required methods
fn get_attestation_report(
&self,
report_data: &[u8; 64],
) -> Result<GetAttestationReportResult, Error>;
fn supports_get_derived_key(&self) -> Option<&dyn TeeCallGetDerivedKey>;
fn tee_type(&self) -> TeeType;
}
Expand description
Trait that defines the get attestation report interface for TEE.
Required Methods§
Sourcefn get_attestation_report(
&self,
report_data: &[u8; 64],
) -> Result<GetAttestationReportResult, Error>
fn get_attestation_report( &self, report_data: &[u8; 64], ) -> Result<GetAttestationReportResult, Error>
Get the hardware-backed attestation report.
Sourcefn supports_get_derived_key(&self) -> Option<&dyn TeeCallGetDerivedKey>
fn supports_get_derived_key(&self) -> Option<&dyn TeeCallGetDerivedKey>
Whether TeeCallGetDerivedKey
is implemented.