From: Milan Broz <gmazyland@gmail.com>
To: "doffloster@gmail.com" <doffloster@gmail.com>,
cryptsetup@lists.linux.dev
Subject: Re: cryptsetup LUKS: Too low iteration count: only 14
Date: Sat, 13 Aug 2022 18:11:48 +0200 [thread overview]
Message-ID: <de150ba2-46fe-36f6-86b5-37411af760e6@gmail.com> (raw)
In-Reply-To: <CACHosL-U7pWY95fHP08D7FGoCk7=kZfRTudfSs4E1h8buxjaLQ@mail.gmail.com>
On 13/08/2022 17:50, doffloster@gmail.com 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.
next prev parent reply other threads:[~2022-08-13 16:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-13 15:50 cryptsetup LUKS: Too low iteration count: only 14 doffloster
2022-08-13 16:11 ` Milan Broz [this message]
2022-08-13 16:24 ` Michael Kjörling
2022-08-13 16:48 ` Arno Wagner
2022-08-13 19:35 ` Michael Kjörling
2022-08-13 20:00 ` Milan Broz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=de150ba2-46fe-36f6-86b5-37411af760e6@gmail.com \
--to=gmazyland@gmail.com \
--cc=cryptsetup@lists.linux.dev \
--cc=doffloster@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox