[][src]Trait nettle::aead::Aead

pub trait Aead {
    fn update(&mut self, ad: &[u8]);
fn encrypt(&mut self, dst: &mut [u8], src: &[u8]);
fn decrypt(&mut self, dst: &mut [u8], src: &[u8]);
fn digest(&mut self, digest: &mut [u8]);
fn digest_size(&self) -> usize; }

A AEAD mode of operation.

Required methods

fn update(&mut self, ad: &[u8])

Adds associated data ad.

fn encrypt(&mut self, dst: &mut [u8], src: &[u8])

Encrypts one block src to dst.

fn decrypt(&mut self, dst: &mut [u8], src: &[u8])

Decrypts one block src to dst.

fn digest(&mut self, digest: &mut [u8])

Produce the digest.

fn digest_size(&self) -> usize

Length of the digest in bytes.

Loading content...

Implementors

impl Aead for ChaChaPoly1305[src]

impl<C: Cipher + BlockSizeIs16> Aead for Ccm<C>[src]

impl<C: Cipher + BlockSizeIs16> Aead for Gcm<C>[src]

impl<C: Cipher> Aead for Eax<C>[src]

Loading content...