Skip to content
Snippets Groups Projects
Commit 5c78bb73 authored by Daniel P. Berrange's avatar Daniel P. Berrange Committed by Niels Möller
Browse files

examples: convert nettle-benchmark to use openssl EVP APIs


The nettle-benchmark program currently uses the openssl low level
cipher APIs for benchmarking. This means it always runs the generic
software implementation, never able to take advantage of impls
optimized for new hardware (eg AES-NI).

Rewriting it to use the higher EVP APIs means we can use the same
code for all ciphers, and automatically trigger hardware optimized
versions, giving a fairer comparison against openssl as commonly
used in applications.

Use of the generic openssl impl can still be forced by setting an
env variable  OPENSSL_ia32cap="~0x200000200000000"

Signed-off-by: default avatarDaniel P. Berrange <berrange@redhat.com>
parent dcda81d7
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment