[−][src]Struct enclave_runner::EnclaveBuilder
Implementations
impl<'a> EnclaveBuilder<'a>
[src]
pub fn new(enclave_path: &'a Path) -> EnclaveBuilder<'a>
[src]
pub fn new_from_memory(enclave_data: &'a [u8]) -> EnclaveBuilder<'a>
[src]
pub fn dummy_signature(&mut self) -> &mut Self
[src]
pub fn with_dummy_signature_signer<H, S, F, E, T>(&mut self, load_key: F) where
H: SgxHashOps,
E: Error + Send + Sync + 'static,
S: SgxRsaOps<Error = E>,
T: AsRef<S>,
F: 'static + FnOnce(&[u8]) -> T,
[src]
H: SgxHashOps,
E: Error + Send + Sync + 'static,
S: SgxRsaOps<Error = E>,
T: AsRef<S>,
F: 'static + FnOnce(&[u8]) -> T,
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>
[src]
pub fn signature<P: AsRef<Path>>(&mut self, path: P) -> IoResult<&mut Self>
[src]
pub fn sigstruct(&mut self, sigstruct: Sigstruct) -> &mut Self
[src]
pub fn attributes(&mut self, attributes: Attributes) -> &mut Self
[src]
pub fn miscselect(&mut self, miscselect: Miscselect) -> &mut Self
[src]
pub fn usercall_extension<T: Into<Box<dyn UsercallExtension>>>(
&mut self,
extension: T
)
[src]
&mut self,
extension: T
)
pub fn forward_panics(&mut self, fp: bool) -> &mut Self
[src]
Whether to panic the runner if any enclave thread panics.
Defaults to false
.
Note: If multiple enclaves are loaded, and an enclave with this set to
true panics, then all enclaves handled by this runner will exit because
the runner itself will panic.
pub fn args<I, S>(&mut self, args: I) -> &mut Self where
I: IntoIterator<Item = S>,
S: AsRef<[u8]>,
[src]
I: IntoIterator<Item = S>,
S: AsRef<[u8]>,
Adds multiple arguments to pass to enclave's fn main
.
NOTE: This is not an appropriate channel for passing secrets or
security configurations to the enclave.
NOTE: This is only applicable to Command
enclaves.
Adding command arguments and then calling build_library
will cause
a panic.
pub fn arg<S: AsRef<[u8]>>(&mut self, arg: S) -> &mut Self
[src]
Adds an argument to pass to enclave's fn main
.
NOTE: This is not an appropriate channel for passing secrets or
security configurations to the enclave.
NOTE: This is only applicable to Command
enclaves.
Adding command arguments and then calling build_library
will cause
a panic.
pub fn build<T: Load>(self, loader: &mut T) -> Result<Command, Error>
[src]
pub fn build_library<T: Load>(self, loader: &mut T) -> Result<Library, Error>
[src]
Auto Trait Implementations
impl<'a> !RefUnwindSafe for EnclaveBuilder<'a>
impl<'a> !Send for EnclaveBuilder<'a>
impl<'a> !Sync for EnclaveBuilder<'a>
impl<'a> Unpin for EnclaveBuilder<'a>
impl<'a> !UnwindSafe for EnclaveBuilder<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,