Do I have to change some codes for using AES_NI?

468 views Asked by At

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,

  1. First, I have codes using AES from Openssl.
  2. I want to apply AES-NI to my original code.
  3. I checked out my computer support AES-NI. I ran sample code from Intel website using AES-NI and It works.
  4. In my original code, AES function is like this. -> AES_cbc_encrypt(inbuf, outbuf, inlength, key, iv, AES_ENCRYPT);
  5. 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?

0

There are 0 answers