Hi Jeseem,
are you sure that the cpu you are using has AESNI enabled?
The toolchain you are using is definitly correct, but the fact that the engine check was not triggered sounds like your SKU has the instraction disabled.
You can do a check on the CPU with the below code:
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <cpuid.h>
int Check_CPU_support_AES()
{
#if defined(__INTEL_COMPILER)
int CPUInfo[4] = {-1};
__cpuid(CPUInfo, 1);
return (CPUInfo[2] & 0x2000000);
#else
unsigned int a=1,b,c,d;
__cpuid(1, a,b,c,d);
return (c & 0x2000000);
#endif
}
int main()
{
printf("AESNI support: %X \n", Check_CPU_support_AES());
return 0;
}
Hope this helps
Best Regards
Sergio
--
preferisco ammazzare il tempo,
preferisco sparare cazzate,
preferisco fare esplodere una moda,
preferisco morire d'amore.
(Caparezza)