pub trait CipherMode {
const REQUIRES_IV: bool;
const IS_AUTHENTICATED: bool;
const IV_SIZE: usize;
const TAG_SIZE: Option<usize>;
// Required method
fn name() -> &'static str;
}Expand description
Marker trait for block cipher operating modes
Required Associated Constants§
Sourceconst REQUIRES_IV: bool
const REQUIRES_IV: bool
Whether the mode requires initialization vector/nonce
Sourceconst IS_AUTHENTICATED: bool
const IS_AUTHENTICATED: bool
Whether this is an authenticated mode
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".