From: Nikos Mavrogiannopoulos Date: Wed, 1 Jun 2011 14:52:09 +0000 (+0200) Subject: Added benchmark on GCM ciphersuites and arcfour for comparison. X-Git-Tag: gnutls_2_99_3~68 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a039caa12418bda113f0cc6fd0457b1ea194b9e2;p=thirdparty%2Fgnutls.git Added benchmark on GCM ciphersuites and arcfour for comparison. --- diff --git a/src/benchmark-tls.c b/src/benchmark-tls.c index fc20f2ab65..84c69fc739 100644 --- a/src/benchmark-tls.c +++ b/src/benchmark-tls.c @@ -44,6 +44,8 @@ #define PRIO_ECDH "NONE:+VERS-TLS1.0:+AES-128-CBC:+SHA1:+SIGN-ALL:+COMP-NULL:+ANON-ECDH:+CURVE-SECP224R1" #define PRIO_AES_CBC_SHA1 "NONE:+VERS-TLS1.0:+AES-128-CBC:+SHA1:+SIGN-ALL:+COMP-NULL:+ANON-DH" +#define PRIO_ARCFOUR_128_MD5 "NONE:+VERS-TLS1.0:+ARCFOUR-128:+MD5:+SIGN-ALL:+COMP-NULL:+ANON-DH" +#define PRIO_AES_GCM "NONE:+VERS-TLS1.2:+AES-128-GCM:+AEAD:+SIGN-ALL:+COMP-NULL:+ANON-DH" #define PRIO_CAMELLIA_CBC_SHA1 "NONE:+VERS-TLS1.0:+CAMELLIA-128-CBC:+SHA1:+SIGN-ALL:+COMP-NULL:+ANON-DH" /* DH of 2432 bits that is pretty equivalent to 224 bits of ECDH. @@ -270,11 +272,17 @@ main (int argc, char **argv) } gnutls_global_init (); - printf("Testing key exchanges:\n"); - test_ciphersuite_kx (PRIO_DH); - test_ciphersuite_kx (PRIO_ECDH); + printf("Testing throughput in cipher/MAC combinations:\n"); + test_ciphersuite (PRIO_ARCFOUR_128_MD5, 1024); + test_ciphersuite (PRIO_ARCFOUR_128_MD5, 4096); + test_ciphersuite (PRIO_ARCFOUR_128_MD5, 8*1024); + test_ciphersuite (PRIO_ARCFOUR_128_MD5, 15*1024); + + test_ciphersuite (PRIO_AES_GCM, 1024); + test_ciphersuite (PRIO_AES_GCM, 4096); + test_ciphersuite (PRIO_AES_GCM, 8*1024); + test_ciphersuite (PRIO_AES_GCM, 15*1024); - printf("\nTesting throughput in cipher/MAC combinations:\n"); test_ciphersuite (PRIO_AES_CBC_SHA1, 1024); test_ciphersuite (PRIO_AES_CBC_SHA1, 4096); test_ciphersuite (PRIO_AES_CBC_SHA1, 8*1024); @@ -285,6 +293,10 @@ main (int argc, char **argv) test_ciphersuite (PRIO_CAMELLIA_CBC_SHA1, 8*1024); test_ciphersuite (PRIO_CAMELLIA_CBC_SHA1, 15*1024); + printf("\nTesting key exchanges:\n"); + test_ciphersuite_kx (PRIO_DH); + test_ciphersuite_kx (PRIO_ECDH); + gnutls_global_deinit (); }