官方白皮书:
Intel® Advanced Encryption Standard (AES) New Instructions Set.pdf
https://software.intel.com/zh-cn/articles/intel-advanced-encryption-standard-aes-instructions
测试结论:
其中ecb 加解密、cbc解密、ctr加解密由于可以并行是cbc加密速度的3-4倍。密钥扩展开销大约是加密分组的5倍。
openssl speed 实测启用aesni性能比较(speed 不支持ecb):
openssl speed -evp aes-128-cbc
openssl speed aes-128-cbc
intel 酷睿 i5处理器使用aesni指令比不使用性能提升8倍。