pub trait TweakBlockCipherDecBackend: BlockSizeUser + TweakSizeUser {
// Required method
fn decrypt_block_inout(
&self,
tweak: &Tweak<Self>,
block: InOut<'_, '_, Block<Self>>,
);
// Provided methods
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
Trait implemented by block cipher mode decryption backends.
Required Methods§
Sourcefn decrypt_block_inout(
&self,
tweak: &Tweak<Self>,
block: InOut<'_, '_, Block<Self>>,
)
fn decrypt_block_inout( &self, tweak: &Tweak<Self>, block: InOut<'_, '_, Block<Self>>, )
Decrypt single inout block.
Provided Methods§
Sourcefn decrypt_block(&self, tweak: &Tweak<Self>, block: &mut Block<Self>)
fn decrypt_block(&self, tweak: &Tweak<Self>, block: &mut Block<Self>)
Decrypt single block in-place.
Sourcefn decrypt_block_b2b(
&self,
tweak: &Tweak<Self>,
in_block: &Block<Self>,
out_block: &mut Block<Self>,
)
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.