-
-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adiantum crypto module for CPUs without AES-NI #1475
Comments
It might seem like the following is enough: |
@natterangell : Heads uses cryptsetup for two things and is unrelated to what the final OS is providing:
To change those LUKS OS installer defaults, the user either has to:
Now my opinions:
So my question really is: does it really impact real life performances as opposed to memory benchmark tests? Nothing stops you from hacking your way into installing OS with those cryptsetup customized options to install and add those kernel modules into Heads in local modifications to see if there is real gains. Afterall, as noted above, cryptsetup is used to add TPM disk unlock key on default boot option, otherwise leaving the user to type the disk recovery key on OS prompt. If all that work seems relevant, including creating some documentation in heads-wiki for OS installation to instructs users to support that LUKS container creation prior of continuing with installer defaults for others to follow as well, then I'm willing to go in that direction. Thoughts? PR welcome and prompt testing needed in the future if you are the sole x230i board owner known out there using that customized setup. |
Completely fine with me not to create a separate x230i board. I suspected as much that few (if anyone) use this system, this is a laptop I got more or less for free, and not my main system anyway. I'll experiment a litte when I get around to it and document in fork whether it works. |
The Thinkpad x230i is supported by the x230* roms, and only differs from the regular x230 in that it shipped with a non-upgradable Ivy Bridge i3 CPU which doesn't support AES-NI.
LUKS v2 is compatible with adiantum, developed by Google primarily for low-powered devices that cannot do hardware accelerated AES encryption. It is included from kernel 5.0 and cryptsetup 2.x (not sure what version) supports it.
This software cipher is a lot faster on CPUs without AES-NI.
While this might be an edge case, given that most Heads users will not see much difference due to AES-NI support, it might be worth considering for the x230i, and maybe other boards (i3 x220/t420, others?)
I can build my own rom to test, but I wonder what options must be set for building kernel (and maybe cryptsetup?) with support included? With #1398 merged it should be possible.
The text was updated successfully, but these errors were encountered: