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§
Sourcefn gen_ks_block(&mut self, block: &mut Block<Self>)
fn gen_ks_block(&mut self, block: &mut Block<Self>)
Generate keystream block.
Provided Methods§
Sourcefn gen_par_ks_blocks(&mut self, blocks: &mut ParBlocks<Self>)
fn gen_par_ks_blocks(&mut self, blocks: &mut ParBlocks<Self>)
Generate keystream blocks in parallel.
Sourcefn gen_tail_blocks(&mut self, blocks: &mut [Block<Self>])
fn gen_tail_blocks(&mut self, blocks: &mut [Block<Self>])
Generate keystream blocks. Length of the buffer MUST be smaller
than Self::ParBlocksSize
.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.