Re:Creepy Crawlies
by radlad on Sunday August 30, 2026 @12:54PM
(#49500384)
I'm reminded of LUKS Argon2 implementation, which is much slower than userspace. Therefore a sufficiently difficult challenge that may take less than a second in userspace Linux can take 20 or more seconds at boot.
[ Parent
| on HN ]
Huh? Are you saying there's an Argon2 implementation in the kernel?
Re:Creepy Crawlies
by minimaltom on Sunday August 30, 2026 @02:31PM
(#49501423)
Its not in the kernel but in the userspace tool that goes from password to key (the key is handed to the kernel).
You can see the implementation here: https://gitlab.com/cryptsetup/cryptsetup/-/blob/main/lib/cry...
I got this wrong yesterday. While LUKS2 and GRUB now support Argon2, I configured LUKS1, which uses PBKDF2-SHA512.
In any case, it is GRUB which behaves slowly during boot. While I haven't tested Argon2, I believe it is affected in the same way as PBKDF2.