struct BackendWrapper<'a, BS: ArraySize, B> {
backend: &'a B,
_pd: PhantomData<BS>,
}Expand description
Wrapper around tweakable block cipher backend which implements non-tweakable block cipher backend traits using zero tweak.
Fields§
§backend: &'a B§_pd: PhantomData<BS>Trait Implementations§
Source§impl<BS: ArraySize, B> BlockCipherDecBackend for BackendWrapper<'_, BS, B>where
B: TweakBlockCipherDecBackend<BlockSize = BS>,
impl<BS: ArraySize, B> BlockCipherDecBackend for BackendWrapper<'_, BS, B>where
B: TweakBlockCipherDecBackend<BlockSize = BS>,
Source§fn decrypt_block(&self, block: InOut<'_, '_, Block<Self>>)
fn decrypt_block(&self, block: InOut<'_, '_, Block<Self>>)
Decrypt single inout block.
Source§fn decrypt_par_blocks(&self, blocks: InOut<'_, '_, ParBlocks<Self>>)
fn decrypt_par_blocks(&self, blocks: InOut<'_, '_, ParBlocks<Self>>)
Decrypt inout blocks in parallel.
Source§fn decrypt_tail_blocks(&self, blocks: InOutBuf<'_, '_, Block<Self>>)
fn decrypt_tail_blocks(&self, blocks: InOutBuf<'_, '_, Block<Self>>)
Decrypt buffer of inout blocks. Length of the buffer MUST be smaller
than
Self::ParBlocksSize.Source§fn decrypt_block_inplace(&self, block: &mut Block<Self>)
fn decrypt_block_inplace(&self, block: &mut Block<Self>)
Decrypt single block in-place.
Source§fn decrypt_par_blocks_inplace(&self, blocks: &mut ParBlocks<Self>)
fn decrypt_par_blocks_inplace(&self, blocks: &mut ParBlocks<Self>)
Decrypt blocks in parallel in-place.
Source§fn decrypt_tail_blocks_inplace(&self, blocks: &mut [Block<Self>])
fn decrypt_tail_blocks_inplace(&self, blocks: &mut [Block<Self>])
Decrypt buffer of blocks in-place. Length of the buffer MUST be smaller
than
Self::ParBlocksSize.Source§impl<BS: ArraySize, B> BlockCipherEncBackend for BackendWrapper<'_, BS, B>where
B: TweakBlockCipherEncBackend<BlockSize = BS>,
impl<BS: ArraySize, B> BlockCipherEncBackend for BackendWrapper<'_, BS, B>where
B: TweakBlockCipherEncBackend<BlockSize = BS>,
Source§fn encrypt_block(&self, block: InOut<'_, '_, Block<Self>>)
fn encrypt_block(&self, block: InOut<'_, '_, Block<Self>>)
Encrypt single inout block.
Source§fn encrypt_par_blocks(&self, blocks: InOut<'_, '_, ParBlocks<Self>>)
fn encrypt_par_blocks(&self, blocks: InOut<'_, '_, ParBlocks<Self>>)
Encrypt inout blocks in parallel.
Source§fn 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.Source§fn encrypt_block_inplace(&self, block: &mut Block<Self>)
fn encrypt_block_inplace(&self, block: &mut Block<Self>)
Encrypt single block in-place.
Source§fn 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.
Source§fn 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.Source§impl<BS: ArraySize, B> BlockSizeUser for BackendWrapper<'_, BS, B>
impl<BS: ArraySize, B> BlockSizeUser for BackendWrapper<'_, BS, B>
Source§impl<BS: ArraySize, B> ParBlocksSizeUser for BackendWrapper<'_, BS, B>
impl<BS: ArraySize, B> ParBlocksSizeUser for BackendWrapper<'_, BS, B>
Auto Trait Implementations§
impl<'a, BS, B> Freeze for BackendWrapper<'a, BS, B>
impl<'a, BS, B> RefUnwindSafe for BackendWrapper<'a, BS, B>where
B: RefUnwindSafe,
BS: RefUnwindSafe,
impl<'a, BS, B> Send for BackendWrapper<'a, BS, B>
impl<'a, BS, B> Sync for BackendWrapper<'a, BS, B>
impl<'a, BS, B> Unpin for BackendWrapper<'a, BS, B>where
BS: Unpin,
impl<'a, BS, B> UnsafeUnpin for BackendWrapper<'a, BS, B>
impl<'a, BS, B> UnwindSafe for BackendWrapper<'a, BS, B>where
B: RefUnwindSafe,
BS: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more