Download the Intel AESNI Sample Library


The Intel® AES New Instructions (AES-NI) Sample Library demonstrates how one might implement a high performance Advanced Encryption Standard (AES) block cipher using the new AES-NI instructions available in Intel® Core™ i5, Intel® Core™ i7, Intel® Xeon® 5600 series and newer processors. All code samples can be compiled and run as native 32-bit or 64-bit binaries for both Microsoft Windows* and Linux* operating systems. This package is divided into three parts; The Intel® AES sample library, an AES example implementation using the library, and an application that compares Dr. Brian Gladman’s AES performance with that of the AES-NI optimized library.

For more complete information about compiler optimizations, see our Optimization Notice.


Hi Scott,

Functionally and performance wise, the code is essentially the same. Both libs supports the same AES modes (ECB, CTR, CBC) and yields essentially the same cycle/byte effciency results.



How does this library compare with Gueron's whitepaper assembly listings? (found at )