Trait chacha::KeyStream [] [src]

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

XORs keystream bytes with dest.

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

Implementors