I got sample codes for using AES_NI from Intel website. (https://software.intel.com/en-us/articles/download-the-intel-aesni-sample-library)
However, I dont know how to configure it.
What I want to do is,
- First, I have codes using AES from Openssl.
- I want to apply AES-NI to my original code.
- I checked out my computer support AES-NI. I ran sample code from Intel website using AES-NI and It works.
- In my original code, AES function is like this. -> AES_cbc_encrypt(inbuf, outbuf, inlength, key, iv, AES_ENCRYPT);
- In Intel sample code for using AES-NI, function is like this. -> intel_AES_enc128_CBC(testVector, testResult, test_key_128, numBlocks, local_test_iv);
I confused I only change the function or change some other things for using AES-NI. Is there any help?