mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2025-01-22 22:48:24 +00:00
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:
parent
7f323ef6ee
commit
88e04b9177
9
tomb
9
tomb
@ -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`
|
||||
|
Loading…
x
Reference in New Issue
Block a user