[][src]Trait chacha::KeyStream

pub trait KeyStream {
    fn xor_read(&mut self, dest: &mut [u8]) -> Result<(), Error>;
}

Types that encapsulate a stream of bytes that to be combined with a cryptographic plaintext or ciphertext

Required methods

fn xor_read(&mut self, dest: &mut [u8]) -> Result<(), Error>

XORs keystream bytes with dest.

If the end of the keystream is reached, this returns an error and the contents of dest are undefined.

Loading content...

Implementors

impl KeyStream for ChaCha
[src]

Loading content...