pub struct SgxInfo { /* 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 SgxInfo
impl SgxInfo
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 ⓘ
pub fn iter(&self) -> SgxSectionIter ⓘ
Iterator over SGX sub-leafs.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SgxInfo
impl RefUnwindSafe for SgxInfo
impl Send for SgxInfo
impl Sync for SgxInfo
impl Unpin for SgxInfo
impl UnwindSafe for SgxInfo
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