From fef3b347d091109e2dd19368d557049821773472 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se>
Date: Wed, 28 Sep 2005 12:37:28 +0200
Subject: [PATCH] Check WITH_OPENSSL, not HAVE_LIBCRYPTO. Benchmark openssl's
 aes and arcfour code.

Rev: src/nettle/examples/nettle-benchmark.c:1.12
---
 examples/nettle-benchmark.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/examples/nettle-benchmark.c b/examples/nettle-benchmark.c
index eab21a11..4a9a7163 100644
--- a/examples/nettle-benchmark.c
+++ b/examples/nettle-benchmark.c
@@ -281,7 +281,7 @@ time_cipher(const struct nettle_cipher *cipher)
   free(key);
 }
 
-#if HAVE_LIBCRYPTO
+#if WITH_OPENSSL
 # define OPENSSL(x) x,
 #else
 # define OPENSSL(x)
@@ -302,9 +302,11 @@ main(int argc UNUSED, char **argv UNUSED)
   const struct nettle_cipher *ciphers[] =
     {
       &nettle_aes128, &nettle_aes192, &nettle_aes256,
-      &nettle_arcfour128,
-      &nettle_blowfish128,
-      OPENSSL(&nettle_openssl_blowfish128)
+      OPENSSL(&nettle_openssl_aes128)
+      OPENSSL(&nettle_openssl_aes192)
+      OPENSSL(&nettle_openssl_aes256)
+      &nettle_arcfour128, OPENSSL(&nettle_openssl_arcfour128)
+      &nettle_blowfish128, OPENSSL(&nettle_openssl_blowfish128)
       &nettle_cast128, OPENSSL(&nettle_openssl_cast128)
       &nettle_des, OPENSSL(&nettle_openssl_des)
       &nettle_des3,
-- 
GitLab