Trait cipher::block::BlockBackend

source ·
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§

source

fn proc_block(&mut self, block: InOut<'_, '_, Block<Self>>)

Process single inout block.

Provided Methods§

source

fn proc_par_blocks(&mut self, blocks: InOut<'_, '_, ParBlocks<Self>>)

Process inout blocks in parallel.

source

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.

source

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

Process single block in-place.

source

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

Process blocks in parallel in-place.

source

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.

Object Safety§

This trait is not object safe.

Implementors§