Trait cipher::block::BlockModeDecBackend
source · pub trait BlockModeDecBackend: ParBlocksSizeUser {
// Required method
fn decrypt_block(&mut self, block: InOut<'_, '_, Block<Self>>);
// Provided methods
fn decrypt_par_blocks(&mut self, blocks: InOut<'_, '_, ParBlocks<Self>>) { ... }
fn decrypt_tail_blocks(&mut self, blocks: InOutBuf<'_, '_, Block<Self>>) { ... }
fn decrypt_block_inplace(&mut self, block: &mut Block<Self>) { ... }
fn decrypt_par_blocks_inplace(&mut self, blocks: &mut ParBlocks<Self>) { ... }
fn decrypt_tail_blocks_inplace(&mut self, blocks: &mut [Block<Self>]) { ... }
}
Expand description
Trait implemented by block cipher mode decryption backends.
Required Methods§
sourcefn decrypt_block(&mut self, block: InOut<'_, '_, Block<Self>>)
fn decrypt_block(&mut self, block: InOut<'_, '_, Block<Self>>)
Decrypt single inout block.
Provided Methods§
sourcefn decrypt_par_blocks(&mut self, blocks: InOut<'_, '_, ParBlocks<Self>>)
fn decrypt_par_blocks(&mut self, blocks: InOut<'_, '_, ParBlocks<Self>>)
Decrypt inout blocks in parallel.
sourcefn decrypt_tail_blocks(&mut self, blocks: InOutBuf<'_, '_, Block<Self>>)
fn decrypt_tail_blocks(&mut self, blocks: InOutBuf<'_, '_, Block<Self>>)
Decrypt buffer of inout blocks. Length of the buffer MUST be smaller
than Self::ParBlocksSize
.
sourcefn decrypt_block_inplace(&mut self, block: &mut Block<Self>)
fn decrypt_block_inplace(&mut self, block: &mut Block<Self>)
Decrypt single block in-place.
sourcefn decrypt_par_blocks_inplace(&mut self, blocks: &mut ParBlocks<Self>)
fn decrypt_par_blocks_inplace(&mut self, blocks: &mut ParBlocks<Self>)
Decrypt blocks in parallel in-place.
sourcefn decrypt_tail_blocks_inplace(&mut self, blocks: &mut [Block<Self>])
fn decrypt_tail_blocks_inplace(&mut self, blocks: &mut [Block<Self>])
Decrypt buffer of blocks in-place. Length of the buffer MUST be smaller
than Self::ParBlocksSize
.
Object Safety§
This trait is not object safe.