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 BlockSizeUser for Aes128

Source§

impl BlockSizeUser for Aes128Dec

Source§

impl BlockSizeUser for Aes128Enc

Source§

impl BlockSizeUser for Aes192

Source§

impl BlockSizeUser for Aes192Dec

Source§

impl BlockSizeUser for Aes192Enc

Source§

impl BlockSizeUser for Aes256

Source§

impl BlockSizeUser for Aes256Dec

Source§

impl BlockSizeUser for Aes256Enc

Source§

impl BlockSizeUser for Sha1Core

Source§

impl<D> BlockSizeUser for HmacCore<D>

Source§

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

Source§

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

Implementors§