remove commented code in KDF section

The check if the argument of --kdfiter is an integer is unnecessary.
Neither argon2 nor tomb-kdb-pbkdf2-getiter care about float input.
This commit is contained in:
Narrat 2024-07-26 13:03:57 +02:00
parent 7f323ef6ee
commit 88e04b9177

9
tomb
View File

@ -1495,15 +1495,6 @@ gen_key() {
itertime="`option_value --kdfiter`"
itertime=${itertime:-3}
# removing support of floating points because they can't be type checked well
# if [[ "$itertime" != <-> ]]; then
# unset tombpass
# unset tombpasstmp
# _warning "Wrong argument for --kdfiter: must be an integer number (iteration seconds)."
# _failure "Depending on the speed of machines using this tomb, use 1 to 10, or more"
# return 1
# fi
# Generating salt (either via tomb-kdb-pbkdf2 or a shell fallback)
if $(command -v tomb-kdb-pbkdf2-gensalt 1>/dev/null 2>/dev/null); then
kdfsalt=`tomb-kdb-pbkdf2-gensalt`