Trait crypto_secretbox::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 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§