Trait cipher::BlockCipher

source ·
pub trait BlockCipher {
    type BlockSize: ArrayLength<u8>;
    type ParBlocks: ArrayLength<Block<Self>>;
}
Expand description

Trait which marks a type as being a block cipher.

Required Associated Types§

source

type BlockSize: ArrayLength<u8>

Size of the block in bytes

source

type ParBlocks: ArrayLength<Block<Self>>

Number of blocks which can be processed in parallel by cipher implementation

Implementations on Foreign Types§

source§

impl<Alg: BlockCipher> BlockCipher for &Alg

Implementors§