commit 5f3ec68c383c7e09aefe37eefdd4c750d63dd7dc
parent bc458825336851102181c97d5a0d1fcf25ac911a
Author: boyska <piuttosto@logorroici.org>
Date: Fri, 20 Feb 2015 12:37:03 +0100
FIX kdf iteration count
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tomb b/tomb
@@ -1140,8 +1140,8 @@ gen_key() {
fi
# --kdf takes one parameter: iter time (on present machine) in seconds
local -i microseconds
- microseconds=$(( itertime * 10000 ))
- _success "Using KDF, iterations: ::1 microseconds::" $microseconds
+ microseconds=$(( itertime * 1000000 ))
+ _success "Using KDF, iteration time: ::1 microseconds::" $microseconds
_message "generating salt"
pbkdf2_salt=`tomb-kdb-pbkdf2-gensalt`
_message "calculating iterations"