Struct teaclave_attestation::report::AttestationReport
source · [−]pub struct AttestationReport {
pub freshness: Duration,
pub sgx_quote_status: SgxQuoteStatus,
pub sgx_quote_body: SgxQuote,
}
Expand description
A report that can be signed by Intel EPID (which generates
EndorsedAttestationReport
) and then sent off of the platform to be
verified by remote client.
Fields
freshness: Duration
The freshness of the report, i.e., elapsed time after acquiring the report in seconds.
sgx_quote_status: SgxQuoteStatus
Quote status
sgx_quote_body: SgxQuote
Content of the quote
Implementations
sourceimpl AttestationReport
impl AttestationReport
sourcepub fn from_cert(certs: &[Certificate], report_ca_cert: &[u8]) -> Result<Self>
pub fn from_cert(certs: &[Certificate], report_ca_cert: &[u8]) -> Result<Self>
Construct a AttestationReport from a X509 certificate and verify attestation report with the report_ca_cert which is from the attestation service provider.
Trait Implementations
sourceimpl Debug for AttestationReport
impl Debug for AttestationReport
Auto Trait Implementations
impl RefUnwindSafe for AttestationReport
impl Send for AttestationReport
impl Sync for AttestationReport
impl Unpin for AttestationReport
impl UnwindSafe for AttestationReport
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request