pub trait TweakBlockCipherEncBackend: BlockSizeUser + TweakSizeUser {
// Required method
fn encrypt_block_inout(
&self,
tweak: &Tweak<Self>,
block: InOut<'_, '_, Block<Self>>,
);
// Provided methods
fn encrypt_block(&self, tweak: &Tweak<Self>, block: &mut Block<Self>) { ... }
fn encrypt_block_b2b(
&self,
tweak: &Tweak<Self>,
in_block: &Block<Self>,
out_block: &mut Block<Self>,
) { ... }
}Expand description
Trait implemented by block cipher mode encryption backends.
Required Methods§
Sourcefn encrypt_block_inout(
&self,
tweak: &Tweak<Self>,
block: InOut<'_, '_, Block<Self>>,
)
fn encrypt_block_inout( &self, tweak: &Tweak<Self>, block: InOut<'_, '_, Block<Self>>, )
Encrypt single inout block.
Provided Methods§
Sourcefn encrypt_block(&self, tweak: &Tweak<Self>, block: &mut Block<Self>)
fn encrypt_block(&self, tweak: &Tweak<Self>, block: &mut Block<Self>)
Encrypt single block in-place.
Sourcefn encrypt_block_b2b(
&self,
tweak: &Tweak<Self>,
in_block: &Block<Self>,
out_block: &mut Block<Self>,
)
fn encrypt_block_b2b( &self, tweak: &Tweak<Self>, in_block: &Block<Self>, out_block: &mut Block<Self>, )
Encrypt 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.