Trait KmsAeadRingEncryptionProvider

Source
pub trait KmsAeadRingEncryptionProvider {
    // Required methods
    fn encrypt_data_encryption_key<'life0, 'life1, 'async_trait>(
        &'life0 self,
        encryption_key: &'life1 DataEncryptionKey,
    ) -> Pin<Box<dyn Future<Output = KmsAeadResult<EncryptedDataEncryptionKey>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn decrypt_data_encryption_key<'life0, 'life1, 'async_trait>(
        &'life0 self,
        encrypted_key: &'life1 EncryptedDataEncryptionKey,
    ) -> Pin<Box<dyn Future<Output = KmsAeadResult<DataEncryptionKey>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn generate_encryption_key<'life0, 'life1, 'async_trait>(
        &'life0 self,
        aead_encryption: &'life1 RingAeadEncryption,
    ) -> Pin<Box<dyn Future<Output = KmsAeadResult<DataEncryptionKey>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn encrypt_data_encryption_key<'life0, 'life1, 'async_trait>( &'life0 self, encryption_key: &'life1 DataEncryptionKey, ) -> Pin<Box<dyn Future<Output = KmsAeadResult<EncryptedDataEncryptionKey>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn decrypt_data_encryption_key<'life0, 'life1, 'async_trait>( &'life0 self, encrypted_key: &'life1 EncryptedDataEncryptionKey, ) -> Pin<Box<dyn Future<Output = KmsAeadResult<DataEncryptionKey>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn generate_encryption_key<'life0, 'life1, 'async_trait>( &'life0 self, aead_encryption: &'life1 RingAeadEncryption, ) -> Pin<Box<dyn Future<Output = KmsAeadResult<DataEncryptionKey>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§