Trait xxxdh::Aead[][src]

pub trait Aead {
    const NONCE_LEN: usize;

    fn new(key: &[u8]) -> Self;
fn encrypt(&self, nonce: &[u8], data: &[u8]) -> Result<Vec<u8>, AeadError>;
fn decrypt(&self, nonce: &[u8], data: &[u8]) -> Result<Vec<u8>, AeadError>; }

Associated Constants

Required methods

Implementors