crypto_secretbox

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

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§

Source§

impl KeySizeUser for Poly1305

Source§

impl<R> KeySizeUser for SalsaCore<R>
where R: Unsigned,

Source§

impl<R> KeySizeUser for XSalsaCore<R>
where R: Unsigned,

Source§

impl<T> KeySizeUser for StreamCipherCoreWrapper<T>

Implementors§