pub struct EnclaveBuilder<'a, L> { /* private fields */ }Implementations§
Source§impl<'a, L> EnclaveBuilder<'a, L>
impl<'a, L> EnclaveBuilder<'a, L>
pub fn new(enclave_path: &'a Path) -> EnclaveBuilder<'a, L>
pub fn new_from_memory(enclave_data: &'a [u8]) -> EnclaveBuilder<'a, L>
pub fn dummy_signature(&mut self) -> &mut Self
Sourcepub fn with_dummy_signature_signer<H, S, F, E, T>(&mut self, load_key: F)
pub fn with_dummy_signature_signer<H, S, F, E, T>(&mut self, load_key: F)
Use custom implemetations of SgxHashOps and SgxRsaOps for producing dummy signature.
The hasher is specified through type parameter H, and the signer through S.
load_key is used to parse an RSA private key in DER format and should return a type T
that implements AsRef<S> where S is a type that implements SgxRsaOps. E is the
associated Error type of S when implementing SgxRsaOps.
pub fn coresident_signature(&mut self) -> IoResult<&mut Self>
pub fn signature<P: AsRef<Path>>(&mut self, path: P) -> IoResult<&mut Self>
pub fn sigstruct(&mut self, sigstruct: Sigstruct) -> &mut Self
pub fn attributes(&mut self, attributes: Attributes) -> &mut Self
pub fn miscselect(&mut self, miscselect: Miscselect) -> &mut Self
Sourcepub fn force_insecure_time_usercalls(
&mut self,
force_time_usercalls: bool,
) -> &mut Self
pub fn force_insecure_time_usercalls( &mut self, force_time_usercalls: bool, ) -> &mut Self
SGXv2 platforms allow enclaves to use the rdtsc instruction. This can speed up
performance significantly as enclave no longer need to call out to userspace to request the
current time. Unfortunately, older enclaves are not compatible with new enclave runners.
Also, sometimes the behavior of enclaves always calling out the userspace needs to be
simulated. This setting enforces the old behavior.