1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
//! Stream cryptosystems pub mod chacha20; pub trait StreamEncrypt { fn encrypt_stream<I, O>(&mut self, input: I, output: O) where I: AsRef<[u8]>, O: AsMut<[u8]>; } pub trait StreamDecrypt { fn decrypt_stream<I, O>(&mut self, input: I, output: O) where I: AsRef<[u8]>, O: AsMut<[u8]>; }