pub fn evpkdf<D: Default + FixedOutputReset + HashMarker>(
pass: &[u8],
salt: &[u8],
count: usize,
output: &mut [u8]
)
Expand description
Derives key from the given arguments.
use evpkdf::evpkdf;
use hex_literal::hex;
use md5::Md5; // from md-5 crate
let mut output = [0; 128 / 8]; // key size, 128 bits
evpkdf::<Md5>(
b"password", // password
b"saltsalt", // salt
1000, // iteration count
&mut output
);