logo
pub trait BlockBackend: ParBlocksSizeUser {
    fn proc_block(&mut self, block: InOut<'_, '_, Block<Self>>);

    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

Process single inout block.

Provided methods

Process inout blocks in parallel.

Process buffer of inout blocks. Length of the buffer MUST be smaller than Self::ParBlocksSize.

Process single block in-place.

Process blocks in parallel in-place.

Process buffer of blocks in-place. Length of the buffer MUST be smaller than Self::ParBlocksSize.

Implementors