Skip to content

Commit

Permalink
remove commented code in KDF section
Browse files Browse the repository at this point in the history
The check if the argument of --kdfiter is an integer is unnecessary.
Neither argon2 nor tomb-kdb-pbkdf2-getiter care about float input.
  • Loading branch information
Narrat committed Jul 26, 2024
1 parent d8b91d9 commit d4f4667
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions tomb
Original file line number Diff line number Diff line change
Expand Up @@ -1612,15 +1612,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`
Expand Down

0 comments on commit d4f4667

Please sign in to comment.