Trait encryption::master_key::kms::KmsProvider[][src]

pub trait KmsProvider: Sync + Send + 'static + Debug {
    fn generate_data_key<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<DataKeyPair>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn decrypt_data_key<'life0, 'life1, 'async_trait>(
        &'life0 self,
        data_key: &'life1 EncryptedKey
    ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
fn name(&self) -> &str; }

Required methods

fn generate_data_key<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = Result<DataKeyPair>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

fn decrypt_data_key<'life0, 'life1, 'async_trait>(
    &'life0 self,
    data_key: &'life1 EncryptedKey
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn name(&self) -> &str[src]

Loading content...

Implementors

Loading content...