commit 38d6d6338c53f0bd4c9731158d3f97004760c6de parent ea1a522320d48eea79634167a67d962a5fa53659 Author: Stefan Koch <programming@stefan-koch.name> Date: Sun, 24 Nov 2019 00:01:37 +0100 use created Key k directly Diffstat:
M | src/crypto.rs | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/crypto.rs b/src/crypto.rs @@ -30,7 +30,7 @@ pub fn gen_key_from_pw(password: &str) -> SaltedKey { pwhash::MEMLIMIT_INTERACTIVE).unwrap(); SaltedKey { - key: Key::from_slice(kb).unwrap(), + key: k, pwsalt: salt } }