Hi I am trying to run aesni on latest openssl from head on a freebsd machine with cpu ( xeon 5620 , which supports AESNI ).
running the command "openssl speed -evp aes256 -engine aesni It doesn't look like the aesni engine is being used as I see no performance improvement. I found the check for enabling engine wasn't triggered and so bypassed it as below --- eng_aesni.c.orig 2010-10-03 23:18:09.000000000 -0700 +++ eng_aesni.c 2010-10-03 23:03:45.000000000 -0700 @@ -329,6 +329,7 @@ IA32CAP OPENSSL_ia32_cpuid(void); engage = (OPENSSL_ia32_cpuid() >> 57) & 1; } + engage=1; /* Register everything or return with an error */ if (!ENGINE_set_id(e, aesni_id) || However am hitting following error aesni engine added To get the most accurate results, try to run this program when this computer is idle. Doing aes-256-cbc for 3s on 16 size blocks: Illegal instruction Any ideas. the os is freebsd 8.0, gcc is 4.4 and as is 2.19 thanks jeseem
