Commit fef3b347 authored by Niels Möller's avatar Niels Möller

Check WITH_OPENSSL, not

HAVE_LIBCRYPTO. Benchmark openssl's aes and arcfour code.

Rev: src/nettle/examples/nettle-benchmark.c:1.12
parent 402860f3
...@@ -281,7 +281,7 @@ time_cipher(const struct nettle_cipher *cipher) ...@@ -281,7 +281,7 @@ time_cipher(const struct nettle_cipher *cipher)
free(key); free(key);
} }
#if HAVE_LIBCRYPTO #if WITH_OPENSSL
# define OPENSSL(x) x, # define OPENSSL(x) x,
#else #else
# define OPENSSL(x) # define OPENSSL(x)
...@@ -302,9 +302,11 @@ main(int argc UNUSED, char **argv UNUSED) ...@@ -302,9 +302,11 @@ main(int argc UNUSED, char **argv UNUSED)
const struct nettle_cipher *ciphers[] = const struct nettle_cipher *ciphers[] =
{ {
&nettle_aes128, &nettle_aes192, &nettle_aes256, &nettle_aes128, &nettle_aes192, &nettle_aes256,
&nettle_arcfour128, OPENSSL(&nettle_openssl_aes128)
&nettle_blowfish128, OPENSSL(&nettle_openssl_aes192)
OPENSSL(&nettle_openssl_blowfish128) OPENSSL(&nettle_openssl_aes256)
&nettle_arcfour128, OPENSSL(&nettle_openssl_arcfour128)
&nettle_blowfish128, OPENSSL(&nettle_openssl_blowfish128)
&nettle_cast128, OPENSSL(&nettle_openssl_cast128) &nettle_cast128, OPENSSL(&nettle_openssl_cast128)
&nettle_des, OPENSSL(&nettle_openssl_des) &nettle_des, OPENSSL(&nettle_openssl_des)
&nettle_des3, &nettle_des3,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment