pub trait StreamCipher {
const STATE_SIZE: usize;
const ALGORITHM_ID: &'static str;
// Provided method
fn name() -> String { ... }
}
Expand description
Marker trait for stream cipher algorithms
Required Associated Constants§
Sourceconst STATE_SIZE: usize
const STATE_SIZE: usize
State size in bytes
Sourceconst ALGORITHM_ID: &'static str
const ALGORITHM_ID: &'static str
Static algorithm identifier for compile-time checking
Provided Methods§
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.