Trait cipher::StreamBackend

source ·
pub trait StreamBackend: ParBlocksSizeUser {
    // Required method
    fn gen_ks_block(&mut self, block: &mut Block<Self>);

    // Provided methods
    fn gen_par_ks_blocks(&mut self, blocks: &mut ParBlocks<Self>) { ... }
    fn gen_tail_blocks(&mut self, blocks: &mut [Block<Self>]) { ... }
}
Expand description

Trait implemented by stream cipher backends.

Required Methods§

source

fn gen_ks_block(&mut self, block: &mut Block<Self>)

Generate keystream block.

Provided Methods§

source

fn gen_par_ks_blocks(&mut self, blocks: &mut ParBlocks<Self>)

Generate keystream blocks in parallel.

source

fn gen_tail_blocks(&mut self, blocks: &mut [Block<Self>])

Generate keystream blocks. Length of the buffer MUST be smaller than Self::ParBlocksSize.

Object Safety§

This trait is not object safe.

Implementors§