Trait cipher::StreamBackend

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

    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§

Generate keystream block.

Provided Methods§

Generate keystream blocks in parallel.

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

Implementors§