javacryptographyaesinstruction-setaes-ni

Does Java use AES-NI when available?


I just heard of the instruction set extension AES-NI. Does Java's JIT compiler compile the application to use AES-NI if it is available to enhance performance?

And if yes, does it also do so if it is not sure that AES will be used (like when using TLS)?


Solution

  • I think it's not bundled with JDK, you have to download and build it yourself

    See https://software.intel.com/en-us/articles/intel-aes-ni-performance-testing-on-linuxjava-stack#enable-intel-eas-ni-in-oracle-jvm