Skip to main content

StreamCipher

Trait StreamCipher 

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

Traits

Required Methods§

Source

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

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl StreamCipher for Aes128Ctr

Source§

impl StreamCipher for Aes256Ctr

Source§

impl<const ROUNDS: usize, const IS_IETF: bool> StreamCipher for ChaCha<ROUNDS, IS_IETF>

Source§

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