Trait cipher::BlockClosure

source ·
pub trait BlockClosure: BlockSizeUser {
    // Required method
    fn call<B: BlockBackend<BlockSize = Self::BlockSize>>(self, backend: &mut B);
}
Expand description

Trait for BlockBackend users.

This trait is used to define rank-2 closures.

Required Methods§

source

fn call<B: BlockBackend<BlockSize = Self::BlockSize>>(self, backend: &mut B)

Execute closure with the provided block cipher backend.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'inp, 'out, BS: ArrayLength<u8>> BlockClosure for BlockCtx<'inp, 'out, BS>

source§

impl<'inp, 'out, BS: ArrayLength<u8>> BlockClosure for BlocksCtx<'inp, 'out, BS>