Skip to main content

KeyDerivationFunction

Trait KeyDerivationFunction 

Source
pub trait KeyDerivationFunction {
    const MIN_SALT_SIZE: usize;
    const DEFAULT_OUTPUT_SIZE: usize;
    const ALGORITHM_ID: &'static str;

    // Provided method
    fn name() -> String { ... }
}
Expand description

Marker trait for key derivation functions

Required Associated Constants§

Source

const MIN_SALT_SIZE: usize

Minimum recommended salt size in bytes

Source

const DEFAULT_OUTPUT_SIZE: usize

Default output size in bytes

Source

const ALGORITHM_ID: &'static str

Static algorithm identifier for compile-time checking

Provided Methods§

Source

fn name() -> String

Returns the KDF algorithm name

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§