Sitelet https://docs.rs/cipher/latest/cipher/trait.KeySizeUser.html
Skip to main content

KeySizeUser

Trait KeySizeUser 

Source
pub trait KeySizeUser {
    type KeySize: ArraySize;

    // 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: ArraySize

Key size in bytes.

Provided Methods§

Source

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".

Implementors§

Source§

impl<T> KeySizeUser for StreamCipherCoreWrapper<T>

Available on crate feature stream-wrapper only.
Source§

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