darkwing::server::services::database_encryption_services

Trait DatabaseEncryptionTrait

source
pub trait DatabaseEncryptionTrait {
    // Required methods
    fn decrypt_string<'life0, 'async_trait>(
        &'life0 self,
        key_id: usize,
        encrypted_string: String,
    ) -> Pin<Box<dyn Future<Output = AppResult<String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn decrypt_data<'life0, 'async_trait>(
        &'life0 self,
        key_id: usize,
        encrypted_data: Vec<u8>,
    ) -> Pin<Box<dyn Future<Output = AppResult<String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

source

fn decrypt_string<'life0, 'async_trait>( &'life0 self, key_id: usize, encrypted_string: String, ) -> Pin<Box<dyn Future<Output = AppResult<String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn decrypt_data<'life0, 'async_trait>( &'life0 self, key_id: usize, encrypted_data: Vec<u8>, ) -> Pin<Box<dyn Future<Output = AppResult<String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§