Trait cipher::BlockSizeUser

source ·
pub trait BlockSizeUser {
    type BlockSize: ArrayLength<u8> + 'static;

    // Provided method
    fn block_size() -> usize { ... }
}
Expand description

Types which process data in blocks.

Required Associated Types§

source

type BlockSize: ArrayLength<u8> + 'static

Size of the block in bytes.

Provided Methods§

source

fn block_size() -> usize

Return block size in bytes.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T> BlockSizeUser for &T
where T: BlockSizeUser,

source§

impl<T> BlockSizeUser for &mut T
where T: BlockSizeUser,

Implementors§

source§

impl<'a, BS: ArrayLength<u8>> BlockSizeUser for WriteBlockCtx<'a, BS>

§

type BlockSize = BS

source§

impl<'a, BS: ArrayLength<u8>> BlockSizeUser for WriteBlocksCtx<'a, BS>

§

type BlockSize = BS

source§

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

§

type BlockSize = BS

source§

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

§

type BlockSize = BS

source§

impl<'inp, 'out, BS: ArrayLength<u8>> BlockSizeUser for ApplyBlockCtx<'inp, 'out, BS>

§

type BlockSize = BS

source§

impl<'inp, 'out, BS: ArrayLength<u8>> BlockSizeUser for ApplyBlocksCtx<'inp, 'out, BS>

§

type BlockSize = BS