Re: cryptsetup LUKS: Too low iteration count: only 14
Milan Broz <[email protected]>
| Newsgroups | dev.linux.lists.cryptsetup |
|---|---|
| Message-ID | <[email protected]> |
On 13/08/2022 17:50, [email protected] wrote: > Hi all, > > I was playing around with LUKS extension in cryptsetup and noticed > that the iteration count was 14 in my case. > The iteration time that I chose (arbitrarily) is 4123ms which is above > 4 seconds! > So I was astonished to see an iteration count which is very low. > As far as I know, using a modern computer, the iteration count should > be above 100k. Please do not confuse iteration for PBKDF2 (default in LUKS1) and memory-hard Argon2 KDF. These are completely different algorithms, you cannot compare iteration costs here. If you set 100k iteration with 1G memory cost for Argon2, you will get unlocking time that is perhaps in years... :-) m.