Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Has support for the Intel AES-NI hardware crypto acceleration been added to Ubuntu (LUKS, kernel, OpenSSL libs, etc)? If so, starting with which version?

Here is a list of Intel processors supporting AES-NI:

More about AES-NI:

I am mostly interested in finding out if this effectively suppresses / diminishes any performance penalties of using full disk encryption in Ubuntu.

share|improve this question
    
Is this still valid with Ubuntu 12.04? –  freddyb Aug 13 '12 at 13:32
add comment

3 Answers

It is supported at least since Karmic Koala on the amd64 architecture and since Natty Narwhal it is supported also on the i386 architecture.

You can find that out by looking at the kernel configuration files found here. Search for the term CONFIG_CRYPTO_AES_NI_INTEL.

share|improve this answer
add comment

If your root partition is LUKS-encrypted you should add aesni-intel to /etc/initramfs-tools/modules (and run update-initramfs afterwards).

Otherwise the module will be loaded too late in the boot process.

share|improve this answer
    
Is it necessary to blacklist the default aes module ? –  warl0ck Apr 24 '12 at 15:50
    
I don't think that blacklisting is needed, at least not on Oneiric. By default AES is compiled into the kernel on Oneiric (CONFIG_CRYPTO_AES=y), only the NI-extensions are available as modules (CONFIG_CRYPTO_AES_X86_64=m and CONFIG_CRYPTO_AES_NI_INTEL=m). –  exo_cw Apr 25 '12 at 16:47
add comment

Block level kernel encryption (dm-crypt) already full supports AES-NI cryptographic acceleration.

File level kernel encryption (eCryptfs) support for AES-NI was recently merged into the Linux upstream kernel tree, and should make its way into the Ubuntu kernel soon. Perhaps 13.10?

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.