Struct sgx::ReportBody
source · [−]#[repr(C)]pub struct ReportBody {
pub cpusvn: [u8; 16],
pub mrenclave: [u8; 32],
pub mrsigner: [u8; 32],
pub reportdata: [u8; 64],
/* private fields */
}
Expand description
The enclave report body.
For more information see the following documents:
Table 5, A.4. Quote Format
Table 38-21. Layout of REPORT
Fields
cpusvn: [u8; 16]
mrenclave: [u8; 32]
mrsigner: [u8; 32]
reportdata: [u8; 64]
Implementations
sourceimpl ReportBody
impl ReportBody
sourcepub fn misc_select(&self) -> MiscSelect
pub fn misc_select(&self) -> MiscSelect
Bit vector specifying which extended features are saved to the MISC region of the SSA frame when an AEX occurs.
If it cannot be parsed the raw little endian bytes will be returned instead.
sourcepub fn attributes(&self) -> Attributes
pub fn attributes(&self) -> Attributes
Set of flags describing attributes of the enclave.
If it cannot be parsed the raw little endian bytes will be returned instead.
The raw bytes returned are the 64 bit features and xfrm respectively.
sourcepub fn enclave_product_id(&self) -> u16
pub fn enclave_product_id(&self) -> u16
ISV assigned Product ID of the enclave.
sourcepub fn enclave_security_version(&self) -> u16
pub fn enclave_security_version(&self) -> u16
ISV assigned SVN (security version number) of the enclave.
Trait Implementations
sourceimpl Clone for ReportBody
impl Clone for ReportBody
sourcefn clone(&self) -> ReportBody
fn clone(&self) -> ReportBody
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ReportBody
impl Debug for ReportBody
sourceimpl From<ReportBody> for [u8; 384]
impl From<ReportBody> for [u8; 384]
sourcefn from(value: ReportBody) -> Self
fn from(value: ReportBody) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for ReportBody
impl Send for ReportBody
impl Sync for ReportBody
impl Unpin for ReportBody
impl UnwindSafe for ReportBody
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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