On Wed, Aug 02, 2017 at 05:30:48PM +0200, Niels Möller wrote:
"Daniel P. Berrange" berrange@redhat.com writes:
FYI, that benchmark program is somewhat misleading, because it directly uses the openssl AES APIs, which always go to the generic software version, and thus make openssl look real slow by comparison. To exercise the AESNI impls in openssl, it would need to be rewritten to use the openssl EVP APIs which dynamically choose the best impl.
Thanks, I wasn't aware of that. (It's more than a decade since I last wrote any real code using ssleay/openssl).
I only learnt it when I was investigating why it reported such different results than the 'openssl speed' command :-)
Would you like to help fix that?
Sure, I can look at providing a patch
Regards, Daniel