Is it possible to hardware accelerate LUKS encryption?
Solution 1:
Beginning with Kernel 2.6.32 the AES-NI instructions on newer Intel processors are supported by dm-crypt. You might want to check /proc/cpuinfo if your processor supports these instructions. Otherwise, upgrading your processor will speed up your harddisk encryption (provided you are actually using AES encryption)
More info: http://en.wikipedia.org/wiki/AES_instruction_set
Solution 2:
AESNI is hardware acceleration for AES encryption. As long as your LUKS/dmcrypt is setup to use AES, which it most likely is, and so long that your processor supports it, you can add the AESNI kernel module manually or automatically.
Manual (test to make sure it works/is supported)
sudo modprobe aesni-intel
Automatic
-
sudo vim /etc/initramfs-tools/modules
- Add aesni_intel
sudo update-initramfs -u
You want to add it to your initramfs, and not just your normal kernel because you want it to be available before you decrypt your drive and load your main kernel.