Skip to main content

BlockSizeUser

Trait BlockSizeUser 

Source
pub trait BlockSizeUser {
    type BlockSize: ArraySize;

    // Provided method
    fn block_size() -> usize { ... }
}
Available on crate features aes or tdes only.
Expand description

Types which process data in blocks.

Required Associated Types§

Source

type BlockSize: ArraySize

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

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 Des

Source§

impl BlockSizeUser for TdesEde2

Source§

impl BlockSizeUser for TdesEee2

Source§

impl BlockSizeUser for TdesEee3

Source§

impl BlockSizeUser for GHash

Source§

impl BlockSizeUser for Poly1305

Source§

impl BlockSizeUser for Polyval

Source§

impl<C> BlockSizeUser for ZeroTweak<C>

Source§

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

Source§

impl<R, V> BlockSizeUser for ChaChaCore<R, V>
where R: Rounds, V: Variant,

Available on crate feature cipher only.
Source§

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

Source§

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

Implementors§

Source§

impl BlockSizeUser for Aes

Available on crate feature aes only.
Source§

impl BlockSizeUser for TdesEde3

Source§

impl<C: BlockCipher> BlockSizeUser for Decryptor<C>

Source§

impl<C: BlockCipher> BlockSizeUser for Encryptor<C>