Trait sgxs::einittoken::EinittokenProvider [−][src]
pub trait EinittokenProvider: Debug {
fn token(
&mut self,
sigstruct: &Sigstruct,
attributes: Attributes,
retry: bool
) -> Result<Einittoken, Error>;
fn can_retry(&self) -> bool;
}Required methods
fn token(
&mut self,
sigstruct: &Sigstruct,
attributes: Attributes,
retry: bool
) -> Result<Einittoken, Error>
fn token(
&mut self,
sigstruct: &Sigstruct,
attributes: Attributes,
retry: bool
) -> Result<Einittoken, Error>
Obtain an EINITTOKEN for the enclave specified by this SIGSTRUCT
and ATTRIBUTES.
The provider may maintain a cache and may return results from the cache
if retry is false. A caching provider should recompute the token if
retry is true.