[SCM] GNU gnutls branch, master, updated. gnutls_3_0_9-60-ga58f394

"Nikos Mavrogiannopoulos" <[email protected]>
Newsgroups gmane.comp.encryption.gpg.gnutls.cvs
Message-ID <[email protected]>
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU gnutls".

http://git.savannah.gnu.org/cgit/gnutls.git/commit/?id=a58f394e8dab0f309f340d743a5992213a748e0c

The branch, master has been updated
       via  a58f394e8dab0f309f340d743a5992213a748e0c (commit)
      from  ac62c8900d2f87c4232165ab1e294b4c65ce4db1 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit a58f394e8dab0f309f340d743a5992213a748e0c
Author: Nikos Mavrogiannopoulos <[email protected]>
Date:   Tue Jan 3 00:52:52 2012 +0200

    print the RSA and DH bits as well as EC bits for comparison.

-----------------------------------------------------------------------

Summary of changes:
 src/benchmark-tls.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/src/benchmark-tls.c b/src/benchmark-tls.c
index d0bbfdd..4528b77 100644
--- a/src/benchmark-tls.c
+++ b/src/benchmark-tls.c
@@ -53,6 +53,9 @@
 // #define PARAMS_1024 
 
 #ifdef PARAMS_1024
+
+static const int rsa_bits = 1024, ec_bits = 192;
+
 const char *pkcs3 = 
   "-----BEGIN DH PARAMETERS-----\n"
   "MIIBCwKBgQCsIrA9BK23OUVIwrC4c65YJ2t8bqoGpJpuISjO07lAbWHWa47Kf9/t\n"
@@ -97,6 +100,9 @@ static unsigned char server_key_pem[] =
   "-----END RSA PRIVATE KEY-----\n";
 
 #else
+
+static const int rsa_bits = 1840, ec_bits = 192;
+
 /* DH of 1840 bits that is pretty close equivalent to 192 bits of ECDH.
  */
 const char *pkcs3 =
@@ -423,7 +429,7 @@ void benchmark_tls(int debug_level)
     test_ciphersuite(PRIO_CAMELLIA_CBC_SHA1, 8 * 1024);
     test_ciphersuite(PRIO_CAMELLIA_CBC_SHA1, 15 * 1024);
 
-    printf("\nTesting key exchanges:\n");
+    printf("\nTesting key exchanges (RSA/DH bits: %d, EC bits: %d):\n", rsa_bits, ec_bits);
     test_ciphersuite_kx(PRIO_DH);
     test_ciphersuite_kx(PRIO_ECDH);
     test_ciphersuite_kx(PRIO_ECDHE_ECDSA);


hooks/post-receive
-- 
GNU gnutls
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.