FIX kdf iteration count

This commit is contained in:
boyska 2015-02-20 12:37:03 +01:00 committed by Jaromil
parent bc45882533
commit 5f3ec68c38

4
tomb
View File

@ -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"