]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Set correct iv in GCM.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Mon, 7 Feb 2011 13:17:01 +0000 (14:17 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Mon, 7 Feb 2011 13:17:01 +0000 (14:17 +0100)
src/benchmark.c

index d8196d71b45b274dbb45fe29c5012b1ea0feb34a..1bc0dd8687ad6157e11eb6b707b6c9338a68d337 100644 (file)
@@ -194,7 +194,8 @@ cipher_bench (int algo, int size, int aead)
   memset (_iv, 0xf0, blocksize);
 
   iv.data = _iv;
-  iv.size = blocksize;
+  if (aead) iv.size = 12;
+  else iv.size = blocksize;
 
   key.data = _key;
   key.size = keysize;