Function lesspass::generate_entropy[][src]

pub fn generate_entropy(
    master_password: &str,
    salt: &[u8],
    algorithm: Algorithm,
    iterations: u32
) -> Vec<u8>
Expand description

Same as generate_entropy_to, but directly returns the entropy buffer instead of requiring a mutable output buffer.

The length of the resulting buffer is:

  • 32 bytes for SHA-256,
  • 48 bytes for SHA-384,
  • 64 bytes for SHA-512.