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

pub struct ChaCha20Poly1305 {
    // some fields omitted
}

Methods

impl ChaCha20Poly1305
[src]

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

Trait Implementations

impl Copy for ChaCha20Poly1305
[src]

impl Clone for ChaCha20Poly1305
[src]

fn clone(&self) -> ChaCha20Poly1305

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl AeadEncryptor for ChaCha20Poly1305
[src]

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

impl AeadDecryptor for ChaCha20Poly1305
[src]

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