Remix.run Logo
radlad 4 hours ago

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.

jwilk 3 hours ago | parent [-]

Huh? Are you saying there's an Argon2 implementation in the kernel?

minimaltom 3 hours ago | parent [-]

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