Struct octavo_crypto::stream::chacha20::ChaCha20 [] [src]

pub struct ChaCha20 {
    // some fields omitted
}

Methods

impl ChaCha20
[src]

fn init(key: &[u8], nonce: &[u8], position: u32) -> Self

fn new<Key, Nonce>(key: Key, nonce: Nonce) -> Self where Key: AsRef<[u8]>, Nonce: AsRef<[u8]>

Trait Implementations

impl StreamEncrypt for ChaCha20
[src]

fn encrypt_stream<I, O>(&mut self, input: I, output: O) where I: AsRef<[u8]>, O: AsMut<[u8]>

impl StreamDecrypt for ChaCha20
[src]

fn decrypt_stream<I, O>(&mut self, input: I, output: O) where I: AsRef<[u8]>, O: AsMut<[u8]>