Skip to main content

SyncEncryptor

Trait SyncEncryptor 

Source
pub trait SyncEncryptor: Send + Sync {
    // Required methods
    fn encrypt(&self, plaintext: &[u8]) -> Result<Vec<u8>>;
    fn decrypt(&self, ciphertext: &[u8]) -> Result<Vec<u8>>;
}

Required Methods§

Source

fn encrypt(&self, plaintext: &[u8]) -> Result<Vec<u8>>

Source

fn decrypt(&self, ciphertext: &[u8]) -> Result<Vec<u8>>

Implementors§