Trait eax::KeySizeUser

source ·
pub trait KeySizeUser {
    type KeySize: ArrayLength<u8> + 'static;

    // Provided method
    fn key_size() -> usize { ... }
}
Expand description

Types which use key for initialization.

Generally it’s used indirectly via KeyInit or KeyIvInit.

Required Associated Types§

source

type KeySize: ArrayLength<u8> + 'static

Key size in bytes.

Provided Methods§

source

fn key_size() -> usize

Return key size in bytes.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T> KeySizeUser for StreamCipherCoreWrapper<T>

source§

impl<T> KeySizeUser for CoreWrapper<T>

Implementors§

source§

impl<Cipher, M> KeySizeUser for Eax<Cipher, M>
where Cipher: BlockCipher<BlockSize = U16> + BlockEncrypt + Clone + KeyInit, M: TagSize,

source§

type KeySize = <Cipher as KeySizeUser>::KeySize

source§

impl<T> KeySizeUser for T
where T: InnerUser, <T as InnerUser>::Inner: KeySizeUser,