Skip to main content

TweakBlockCipherDecrypt

Trait TweakBlockCipherDecrypt 

Source
pub trait TweakBlockCipherDecrypt:
    BlockSizeUser
    + TweakSizeUser
    + Sized {
    // Required method
    fn decrypt_with_backend(
        &self,
        f: impl TweakBlockCipherDecClosure<BlockSize = Self::BlockSize, TweakSize = Self::TweakSize>,
    );

    // Provided methods
    fn decrypt_block_inout(
        &self,
        tweak: &Tweak<Self>,
        block: InOut<'_, '_, Block<Self>>,
    ) { ... }
    fn decrypt_block(&self, tweak: &Tweak<Self>, block: &mut Block<Self>) { ... }
    fn decrypt_block_b2b(
        &self,
        tweak: &Tweak<Self>,
        in_block: &Block<Self>,
        out_block: &mut Block<Self>,
    ) { ... }
}
Expand description

Decrypt-only functionality for tweakable block ciphers.

Required Methods§

Source

fn decrypt_with_backend( &self, f: impl TweakBlockCipherDecClosure<BlockSize = Self::BlockSize, TweakSize = Self::TweakSize>, )

Decrypt data using backend provided to the rank-2 closure.

Provided Methods§

Source

fn decrypt_block_inout( &self, tweak: &Tweak<Self>, block: InOut<'_, '_, Block<Self>>, )

Decrypt single inout block.

Source

fn decrypt_block(&self, tweak: &Tweak<Self>, block: &mut Block<Self>)

Decrypt single block in-place.

Source

fn decrypt_block_b2b( &self, tweak: &Tweak<Self>, in_block: &Block<Self>, out_block: &mut Block<Self>, )

Decrypt in_block and write result to out_block.

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.

Implementors§