Trait ockam_vault_core::SymmetricVault[][src]

pub trait SymmetricVault {
    fn aead_aes_gcm_encrypt<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
        &'life0 mut self,
        context: &'life1 Secret,
        plaintext: &'life2 [u8],
        nonce: &'life3 [u8],
        aad: &'life4 [u8]
    ) -> Pin<Box<dyn Future<Output = Result<Buffer<u8>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        'life4: 'async_trait,
        Self: 'async_trait
;
fn aead_aes_gcm_decrypt<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
        &'life0 mut self,
        context: &'life1 Secret,
        cipher_text: &'life2 [u8],
        nonce: &'life3 [u8],
        aad: &'life4 [u8]
    ) -> Pin<Box<dyn Future<Output = Result<Buffer<u8>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        'life4: 'async_trait,
        Self: 'async_trait
; }
Expand description

Trait with symmetric encryption

Required methods

Encrypt a payload using AES-GCM

Decrypt a payload using AES-GCM

Implementors