Trait 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.

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.

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<T> BlockSizeUser for CoreWrapper<T>

Source§

impl<T, OutSize, O> BlockSizeUser for CtVariableCoreWrapper<T, OutSize, O>
where T: VariableOutputCore, OutSize: ArrayLength<u8> + IsLessOrEqual<T::OutputSize>, LeEq<OutSize, T::OutputSize>: NonZero, T::BlockSize: IsLess<U256>, Le<T::BlockSize, U256>: NonZero,

impl BlockSizeUser for Aes128

impl BlockSizeUser for Aes128Dec

impl BlockSizeUser for Aes128Enc

impl BlockSizeUser for Aes192

impl BlockSizeUser for Aes192Dec

impl BlockSizeUser for Aes192Enc

impl BlockSizeUser for Aes256

impl BlockSizeUser for Aes256Dec

impl BlockSizeUser for Aes256Enc

impl<C> BlockSizeUser for Decryptor<C>
where C: BlockDecryptMut + BlockCipher,

impl<C> BlockSizeUser for Encryptor<C>
where C: BlockEncryptMut + BlockCipher,

impl BlockSizeUser for ChaCha20LegacyCore

impl<R: Unsigned> BlockSizeUser for ChaChaCore<R>

impl<R: Unsigned> BlockSizeUser for XChaChaCore<R>

impl<C> BlockSizeUser for CmacCore<C>
where C: BlockCipher + BlockEncryptMut + Clone, Block<C>: Dbl,

impl<C, F> BlockSizeUser for CtrCore<C, F>