Trait BlkCipher

Source
pub(crate) trait BlkCipher:
    BlockCipher
    + KeyInit
    + BlockSizeUser<BlockSize = U16>
    + Clone {
    const KEY_LEN: usize;
}
Available on crate feature counter-galois-onion only.
Expand description

Helper trait to define the features we need from a block cipher, and make our “where” declarations smaller.

Not sealed because it is never used outside of this crate.

Required Associated Constants§

Source

const KEY_LEN: usize

Length of the key used by this block cipher.

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

Source§

const KEY_LEN: usize = 16usize

Source§

impl BlkCipher for Aes256

Source§

const KEY_LEN: usize = 32usize

Source§

impl BlkCipher for Aes128Dec

Source§

const KEY_LEN: usize = 16usize

Source§

impl BlkCipher for Aes128Enc

Source§

const KEY_LEN: usize = 16usize

Source§

impl BlkCipher for Aes256Dec

Source§

const KEY_LEN: usize = 32usize

Source§

impl BlkCipher for Aes256Enc

Source§

const KEY_LEN: usize = 32usize

Implementors§