pub trait KeyStream { // Required method 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
XORs keystream bytes with dest.
dest
If the end of the keystream is reached, this returns an error and the contents of dest are undefined.