cipher

Trait IvSizeUser

Source
pub trait IvSizeUser {
    type IvSize: ArrayLength<u8> + 'static;

    // Provided method
    fn iv_size() -> usize { ... }
}
Expand description

Types which use initialization vector (nonce) for initialization.

Generally it’s used indirectly via KeyIvInit or InnerIvInit.

Required Associated Types§

Source

type IvSize: ArrayLength<u8> + 'static

Initialization vector size in bytes.

Provided Methods§

Source

fn iv_size() -> usize

Return IV 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.

Implementors§