Trait aes_gcm::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 KeySizeUser for Aes128

source§

impl KeySizeUser for Aes128Dec

source§

impl KeySizeUser for Aes128Enc

source§

impl KeySizeUser for Aes192

source§

impl KeySizeUser for Aes192Dec

source§

impl KeySizeUser for Aes192Enc

source§

impl KeySizeUser for Aes256

source§

impl KeySizeUser for Aes256Dec

source§

impl KeySizeUser for Aes256Enc

source§

impl KeySizeUser for GHash

source§

impl KeySizeUser for Polyval

source§

impl<T> KeySizeUser for StreamCipherCoreWrapper<T>

Implementors§

source§

impl<Aes, NonceSize, TagSize> KeySizeUser for AesGcm<Aes, NonceSize, TagSize>
where Aes: KeySizeUser, TagSize: TagSize,

§

type KeySize = <Aes as KeySizeUser>::KeySize

source§

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