pub trait KdfAlgorithm {
const MIN_SALT_SIZE: usize;
const DEFAULT_OUTPUT_SIZE: usize;
const ALGORITHM_ID: &'static str;
// Required method
fn security_level() -> SecurityLevel;
// Provided method
fn name() -> String { ... }
}Expand description
Marker trait for KDF algorithms
Required Associated Constants§
Sourceconst MIN_SALT_SIZE: usize
const MIN_SALT_SIZE: usize
Minimum salt size in bytes
Sourceconst DEFAULT_OUTPUT_SIZE: usize
const DEFAULT_OUTPUT_SIZE: usize
Default output size in bytes
Sourceconst ALGORITHM_ID: &'static str
const ALGORITHM_ID: &'static str
Static algorithm identifier for compile-time checking
Required Methods§
Sourcefn security_level() -> SecurityLevel
fn security_level() -> SecurityLevel
Security level provided by this KDF
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".