Skip to main content

StreamCipher

Trait StreamCipher 

Source
pub trait StreamCipher: Sized {
    // Required method
    fn xor_keystream(&mut self, in_out: &mut [u8]);
}

Required Methods§

Source

fn xor_keystream(&mut self, in_out: &mut [u8])

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<const ROUNDS: usize> StreamCipher for ChaChaDjb<ROUNDS>