Struct aesm_client::AesmClient
source · [−]pub struct AesmClient { /* private fields */ }
Implementations
sourceimpl AesmClient
impl AesmClient
pub fn new() -> Self
sourcepub fn try_connect(&self) -> Result<()>
pub fn try_connect(&self) -> Result<()>
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.
sourcepub fn init_quote(&self) -> Result<QuoteInfo>
pub fn init_quote(&self) -> Result<QuoteInfo>
Obtain target info from QE.
sourcepub fn get_quote(
&self,
report: Vec<u8>,
spid: Vec<u8>,
sig_rl: Vec<u8>,
quote_type: QuoteType,
nonce: Vec<u8>
) -> Result<QuoteResult>
pub fn get_quote(
&self,
report: Vec<u8>,
spid: Vec<u8>,
sig_rl: Vec<u8>,
quote_type: QuoteType,
nonce: Vec<u8>
) -> Result<QuoteResult>
Obtain remote attestation quote from QE.
sourcepub fn get_supported_att_key_ids(&self) -> Result<Vec<Vec<u8>>>
pub fn get_supported_att_key_ids(&self) -> Result<Vec<Vec<u8>>>
Returns all keys supported by AESM service.
sourcepub fn init_quote_ex(&self, att_key_id: Vec<u8>) -> Result<QuoteInfo>
pub fn init_quote_ex(&self, att_key_id: Vec<u8>) -> Result<QuoteInfo>
Obtain target info from QE.
Like init_quote
, but allows specifying the attestation key id.
sourcepub fn get_quote_ex(
&self,
att_key_id: Vec<u8>,
report: Vec<u8>,
target_info: Option<Vec<u8>>,
nonce: Vec<u8>
) -> Result<QuoteResult>
pub fn get_quote_ex(
&self,
att_key_id: Vec<u8>,
report: Vec<u8>,
target_info: Option<Vec<u8>>,
nonce: Vec<u8>
) -> Result<QuoteResult>
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
sourceimpl AesmClientExt for AesmClient
impl AesmClientExt for AesmClient
sourceimpl Clone for AesmClient
impl Clone for AesmClient
sourcefn clone(&self) -> AesmClient
fn clone(&self) -> AesmClient
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AesmClient
impl Debug for AesmClient
sourceimpl Default for AesmClient
impl Default for AesmClient
sourcefn default() -> AesmClient
fn default() -> AesmClient
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for AesmClient
impl Send for AesmClient
impl Sync for AesmClient
impl Unpin for AesmClient
impl UnwindSafe for AesmClient
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more