summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2014-08-11 17:18:14 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2014-08-11 17:18:14 +0200
commit703799abc4b1669ec94aa604ea4bfca24197ff51 (patch)
treedf25b6816d3e044e3695ea2bfc40797d8a1df166 /src
parent784c1c2ac83a87785c6772fd641464cb6c7274f1 (diff)
downloadgnutls-703799abc4b1669ec94aa604ea4bfca24197ff51.tar.gz
gnutls-cli: more organized printing of cipher benchmark output
Diffstat (limited to 'src')
-rw-r--r--src/benchmark-cipher.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/benchmark-cipher.c b/src/benchmark-cipher.c
index 0886dbb494..61ec5e248a 100644
--- a/src/benchmark-cipher.c
+++ b/src/benchmark-cipher.c
@@ -199,17 +199,19 @@ void benchmark_cipher(int debug_level)
gnutls_rnd(GNUTLS_RND_NONCE, data, sizeof(data));
- printf("Checking ciphers, payload size: %u\n", size * 1024);
+ printf("Checking cipher-MAC combinations, payload size: %u\n", size * 1024);
cipher_mac_bench(GNUTLS_CIPHER_SALSA20_256, GNUTLS_MAC_SHA1, size);
cipher_mac_bench(GNUTLS_CIPHER_AES_128_CBC, GNUTLS_MAC_SHA1, size);
cipher_mac_bench(GNUTLS_CIPHER_AES_128_CBC, GNUTLS_MAC_SHA256,
size);
cipher_bench(GNUTLS_CIPHER_AES_128_GCM, size, 1);
+ printf("\nChecking MAC algorithms, payload size: %u\n", size * 1024);
mac_bench(GNUTLS_MAC_SHA1, size);
mac_bench(GNUTLS_MAC_SHA256, size);
mac_bench(GNUTLS_MAC_SHA512, size);
+ printf("\nChecking ciphers, payload size: %u\n", size * 1024);
cipher_bench(GNUTLS_CIPHER_3DES_CBC, size, 0);
cipher_bench(GNUTLS_CIPHER_AES_128_CBC, size, 0);