Function lesspass::generate_entropy_to[][src]

pub fn generate_entropy_to(
    master_password: &str,
    salt: &[u8],
    algorithm: Algorithm,
    iterations: u32,
    output: &mut [u8]
)
Expand description

Generates the entropy needed to render the end password using a previously computed salt and a master password, and writes it to output.

Panics

Panics if output is smaller than MIN_ENTROPY_LEN or greater than MAX_ENTROPY_LEN, or if master_password is empty, or if iterations is 0, or if salt is empty.