aes_gcm_siv

Trait KeySizeUser

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§

type KeySize: ArrayLength<u8> + 'static

Key size in bytes.

Provided Methods§

fn key_size() -> usize

Return key size in bytes.

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§

§

impl KeySizeUser for Aes128

§

impl KeySizeUser for Aes192

§

impl KeySizeUser for Aes256

§

impl KeySizeUser for Aes128Dec

§

impl KeySizeUser for Aes128Enc

§

impl KeySizeUser for Aes192Dec

§

impl KeySizeUser for Aes192Enc

§

impl KeySizeUser for Aes256Dec

§

impl KeySizeUser for Aes256Enc

§

impl KeySizeUser for Polyval

§

impl<T> KeySizeUser for StreamCipherCoreWrapper<T>
where T: KeySizeUser + BlockSizeUser, <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<Aes> KeySizeUser for AesGcmSiv<Aes>
where Aes: KeySizeUser,

§

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

§

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