Skip to content

Commit

Permalink
set default iterations to 3 in case of argon2 kdf
Browse files Browse the repository at this point in the history
fix: #214
  • Loading branch information
jaromil committed May 12, 2024
1 parent 803e747 commit 0d2d4e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tomb
Original file line number Diff line number Diff line change
Expand Up @@ -1602,6 +1602,8 @@ gen_key() {
kdfmem="`option_value --kdfmem`"
kdfmem=${kdfmem:-18}
_message "memory used: 2^::1 kdfmemory::" $kdfmem
itertime="`option_value --kdf`"
itertime=${itertime:-3}
kdfsalt=`tomb-kdb-pbkdf2-gensalt`
_message "kdf salt: ::1 kdfsalt::" $kdfsalt
_message "kdf iterations: ::1 kdfiterations::" $itertime
Expand Down

0 comments on commit 0d2d4e8

Please sign in to comment.