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

    // Provided method
    fn key_size() -> usize { ... }
}
Available on crate feature aead only.
Expand description

Types which use key for initialization.

Generally it’s used indirectly via KeyInit or [KeyIvInit].

Required Associated Types§

type KeySize: ArrayLength<u8> + 'static

Key size in bytes.

Provided Methods§

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 CoreWrapper<T>where T: BufferKindUser + KeySizeUser, <T as BlockSizeUser>::BlockSize: IsLess<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>, <<T as BlockSizeUser>::BlockSize as IsLess<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>>::Output: NonZero,

Implementors§

source§

impl KeySizeUser for Aes128Gcm

source§

impl KeySizeUser for Aes256Gcm

source§

impl KeySizeUser for ChaCha20Poly1305

§

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

§

type KeySize = <<T as InnerUser>::Inner as KeySizeUser>::KeySize