Struct aesm_client::AesmClient[][src]

pub struct AesmClient { /* fields omitted */ }

Implementations

impl AesmClient[src]

pub fn new() -> Self[src]

pub fn try_connect(&self) -> Result<()>[src]

Test the connection with AESM.

This should only be used for diagnostic purposes. This method returning Ok is not a guarantee that any of the other methods will function correctly.

pub fn init_quote(&self) -> Result<QuoteInfo>[src]

Obtain target info from QE.

pub fn get_quote(
    &self,
    report: Vec<u8>,
    spid: Vec<u8>,
    sig_rl: Vec<u8>,
    quote_type: QuoteType,
    nonce: Vec<u8>
) -> Result<QuoteResult>
[src]

Obtain remote attestation quote from QE.

pub fn get_supported_att_key_ids(&self) -> Result<Vec<Vec<u8>>>[src]

Returns all keys supported by AESM service.

pub fn init_quote_ex(&self, att_key_id: Vec<u8>) -> Result<QuoteInfo>[src]

Obtain target info from QE.

Like init_quote, but allows specifying the attestation key id.

pub fn get_quote_ex(
    &self,
    att_key_id: Vec<u8>,
    report: Vec<u8>,
    target_info: Option<Vec<u8>>,
    nonce: Vec<u8>
) -> Result<QuoteResult>
[src]

Obtain remote attestation quote from QE.

Like get_quote, but allows specifying the attestation key id.

If target_info is not supplied, it’s determined from report so that the quote may be verified by the enclave it’s for.

Trait Implementations

impl AesmClientExt for AesmClient[src]

impl Clone for AesmClient[src]

impl Debug for AesmClient[src]

impl Default for AesmClient[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.