set default iterations to 3 in case of argon2 kdf

fix: #214
This commit is contained in:
Jaromil 2024-05-12 23:38:25 +02:00
parent 735d540fe7
commit 4a277c97f2

2
tomb
View File

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