]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
add more space to dst to allow GCM mode tests in cryptodev.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Wed, 7 Mar 2012 21:20:48 +0000 (22:20 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Wed, 7 Mar 2012 21:20:48 +0000 (22:20 +0100)
src/benchmark-cipher.c

index e15211f851c71bb3490f95b477a45ac332ff6d3c..c0695153a53ba244a6956b0cc0d4adfb50779054 100644 (file)
@@ -94,7 +94,7 @@ cipher_mac_bench (int algo, int mac_algo, int size)
   do
     {
       gnutls_hmac(mac_ctx, data, step);
-      gnutls_cipher_encrypt (ctx, data, step);
+      gnutls_cipher_encrypt2 (ctx, data, step, data, step+64);
       st.size += step;
     }
   while (benchmark_must_finish == 0);
@@ -158,7 +158,7 @@ cipher_bench (int algo, int size, int aead)
 
   do
     {
-      gnutls_cipher_encrypt (ctx, data, step);
+      gnutls_cipher_encrypt2 (ctx, data, step, data, step+64);
       st.size += step;
     }
   while (benchmark_must_finish == 0);