Struct crypto::chacha20poly1305::ChaCha20Poly1305 [-] [+] [src]

pub struct ChaCha20Poly1305 {
    // some fields omitted
}

Methods

impl ChaCha20Poly1305

fn new(key: &[u8], nonce: &[u8], aad: &[u8]) -> ChaCha20Poly1305

Trait Implementations

impl AeadEncryptor for ChaCha20Poly1305

fn encrypt(&mut self, input: &[u8], output: &mut [u8], out_tag: &mut [u8])

impl AeadDecryptor for ChaCha20Poly1305

fn decrypt(&mut self, input: &[u8], output: &mut [u8], tag: &[u8]) -> bool

Derived Implementations

impl Copy for ChaCha20Poly1305