pub struct SgxInfo<R: CpuIdReader> { /* private fields */ }
Expand description
Intel SGX Capability Enumeration Leaf (LEAF=0x12).
Two sub-leafs: (EAX = 12H, ECX = 0 and ECX = 1)
§Platforms
❌ AMD ✅ Intel
Implementations§
source§impl<F: CpuIdReader> SgxInfo<F>
impl<F: CpuIdReader> SgxInfo<F>
sourcepub fn has_enclv_leaves_einvirtchild_edecvirtchild_esetcontext(&self) -> bool
pub fn has_enclv_leaves_einvirtchild_edecvirtchild_esetcontext(&self) -> bool
Supports ENCLV instruction leaves EINCVIRTCHILD, EDECVIRTCHILD, and ESETCONTEXT.
sourcepub fn has_encls_leaves_etrackc_erdinfo_eldbc_elduc(&self) -> bool
pub fn has_encls_leaves_etrackc_erdinfo_eldbc_elduc(&self) -> bool
Supports ENCLS instruction leaves ETRACKC, ERDINFO, ELDBC, and ELDUC.
sourcepub fn miscselect(&self) -> u32
pub fn miscselect(&self) -> u32
Bit vector of supported extended SGX features.
sourcepub fn max_enclave_size_non_64bit(&self) -> u8
pub fn max_enclave_size_non_64bit(&self) -> u8
The maximum supported enclave size in non-64-bit mode is 2^retval.
sourcepub fn max_enclave_size_64bit(&self) -> u8
pub fn max_enclave_size_64bit(&self) -> u8
The maximum supported enclave size in 64-bit mode is 2^retval.
sourcepub fn secs_attributes(&self) -> (u64, u64)
pub fn secs_attributes(&self) -> (u64, u64)
Reports the valid bits of SECS.ATTRIBUTES[127:0] that software can set with ECREATE.
sourcepub fn iter(&self) -> SgxSectionIter<F> ⓘ
pub fn iter(&self) -> SgxSectionIter<F> ⓘ
Iterator over SGX sub-leafs.
Trait Implementations§
Auto Trait Implementations§
impl<R> Freeze for SgxInfo<R>where
R: Freeze,
impl<R> RefUnwindSafe for SgxInfo<R>where
R: RefUnwindSafe,
impl<R> Send for SgxInfo<R>where
R: Send,
impl<R> Sync for SgxInfo<R>where
R: Sync,
impl<R> Unpin for SgxInfo<R>where
R: Unpin,
impl<R> UnwindSafe for SgxInfo<R>where
R: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more