[][src]Trait sgxs::einittoken::EinittokenProvider

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>

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.

fn can_retry(&self) -> bool

Will this provider exhibit different behavior if retry is true?

Loading content...

Implementors

Loading content...