From: Nikos Mavrogiannopoulos Date: Wed, 7 Mar 2012 21:20:48 +0000 (+0100) Subject: add more space to dst to allow GCM mode tests in cryptodev. X-Git-Tag: gnutls_3_0_16~34 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1c30249626109a32c8be144d2dd577f77c5bccaf;p=thirdparty%2Fgnutls.git add more space to dst to allow GCM mode tests in cryptodev. --- diff --git a/src/benchmark-cipher.c b/src/benchmark-cipher.c index e15211f851..c0695153a5 100644 --- a/src/benchmark-cipher.c +++ b/src/benchmark-cipher.c @@ -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);