encryption - How do I ensure that openssl is using AES-NI acceleration? - Ask Ubuntu
i running ubuntu 16.04.1 lts, checked processor support aes-ni acceleration on cpus:
johndoe@mycomputer:~$ grep -m1 -o aes /proc/cpuinfo aes johndoe@mycomputer:~$ grep -o aes /proc/cpuinfo | wc -l 4 johndoe@mycomputer:~$ lscpu | grep '^cpu(s):' cpu(s): 4
how can check openssl using aes-ni?
thank you, luckyrings
i found answer myself.
to test if openssl using aes-ni found following information. can't see after compiling aes-ni available openssl, can perform performance tests , without feature.
speed test default settings:
openssl speed -elapsed -evp aes-128-cbc
speed test explicit disabled aes-ni feature:
openssl_ia32cap="~0x200000200000000" openssl speed -elapsed -evp aes-128-cbc
the result first line run faster (almost double on i7 cpu). conclusion aes-ni used default openssl.
Comments
Post a Comment