pub trait BlockBackend: ParBlocksSizeUser {
// Required method
fn proc_block(&mut self, block: InOut<'_, '_, Block<Self>>);
// Provided methods
fn proc_par_blocks(&mut self, blocks: InOut<'_, '_, ParBlocks<Self>>) { ... }
fn proc_tail_blocks(&mut self, blocks: InOutBuf<'_, '_, Block<Self>>) { ... }
fn proc_block_inplace(&mut self, block: &mut Block<Self>) { ... }
fn proc_par_blocks_inplace(&mut self, blocks: &mut ParBlocks<Self>) { ... }
fn proc_tail_blocks_inplace(&mut self, blocks: &mut [Block<Self>]) { ... }
}
Expand description
Trait implemented by block cipher encryption and decryption backends.
Required Methods§
Sourcefn proc_block(&mut self, block: InOut<'_, '_, Block<Self>>)
fn proc_block(&mut self, block: InOut<'_, '_, Block<Self>>)
Process single inout block.
Provided Methods§
Sourcefn proc_par_blocks(&mut self, blocks: InOut<'_, '_, ParBlocks<Self>>)
fn proc_par_blocks(&mut self, blocks: InOut<'_, '_, ParBlocks<Self>>)
Process inout blocks in parallel.
Sourcefn proc_tail_blocks(&mut self, blocks: InOutBuf<'_, '_, Block<Self>>)
fn proc_tail_blocks(&mut self, blocks: InOutBuf<'_, '_, Block<Self>>)
Process buffer of inout blocks. Length of the buffer MUST be smaller
than Self::ParBlocksSize
.
Sourcefn proc_block_inplace(&mut self, block: &mut Block<Self>)
fn proc_block_inplace(&mut self, block: &mut Block<Self>)
Process single block in-place.
Sourcefn proc_par_blocks_inplace(&mut self, blocks: &mut ParBlocks<Self>)
fn proc_par_blocks_inplace(&mut self, blocks: &mut ParBlocks<Self>)
Process blocks in parallel in-place.
Sourcefn proc_tail_blocks_inplace(&mut self, blocks: &mut [Block<Self>])
fn proc_tail_blocks_inplace(&mut self, blocks: &mut [Block<Self>])
Process buffer of blocks in-place. 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.