pub trait BlockCipherEncBackend: ParBlocksSizeUser {
// Required method
fn encrypt_block(&self, block: InOut<'_, '_, Block<Self>>);
// Provided methods
fn encrypt_par_blocks(&self, blocks: InOut<'_, '_, ParBlocks<Self>>) { ... }
fn encrypt_tail_blocks(&self, blocks: InOutBuf<'_, '_, Block<Self>>) { ... }
fn encrypt_block_inplace(&self, block: &mut Block<Self>) { ... }
fn encrypt_par_blocks_inplace(&self, blocks: &mut ParBlocks<Self>) { ... }
fn encrypt_tail_blocks_inplace(&self, blocks: &mut [Block<Self>]) { ... }
}Expand description
Trait implemented by block cipher mode encryption backends.
Required Methods§
Sourcefn encrypt_block(&self, block: InOut<'_, '_, Block<Self>>)
fn encrypt_block(&self, block: InOut<'_, '_, Block<Self>>)
Encrypt single inout block.
Provided Methods§
Sourcefn encrypt_par_blocks(&self, blocks: InOut<'_, '_, ParBlocks<Self>>)
fn encrypt_par_blocks(&self, blocks: InOut<'_, '_, ParBlocks<Self>>)
Encrypt inout blocks in parallel.
Sourcefn encrypt_tail_blocks(&self, blocks: InOutBuf<'_, '_, Block<Self>>)
fn encrypt_tail_blocks(&self, blocks: InOutBuf<'_, '_, Block<Self>>)
Encrypt buffer of inout blocks. Length of the buffer MUST be smaller
than Self::ParBlocksSize.
Sourcefn encrypt_block_inplace(&self, block: &mut Block<Self>)
fn encrypt_block_inplace(&self, block: &mut Block<Self>)
Encrypt single block in-place.
Sourcefn encrypt_par_blocks_inplace(&self, blocks: &mut ParBlocks<Self>)
fn encrypt_par_blocks_inplace(&self, blocks: &mut ParBlocks<Self>)
Encrypt blocks in parallel in-place.
Sourcefn encrypt_tail_blocks_inplace(&self, blocks: &mut [Block<Self>])
fn encrypt_tail_blocks_inplace(&self, blocks: &mut [Block<Self>])
Encrypt 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.