From b78c74551f3c0cea35d17a870caf3d3dc65159df Mon Sep 17 00:00:00 2001
From: Paul Bakker
Date: Tue, 20 Mar 2012 15:05:59 +0000
Subject: [PATCH] - Use standard IV of 12
---
programs/test/benchmark.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/programs/test/benchmark.c b/programs/test/benchmark.c
index 0a4309493..55972c9bd 100644
--- a/programs/test/benchmark.c
+++ b/programs/test/benchmark.c
@@ -291,11 +291,11 @@ int main( int argc, char *argv[] )
set_alarm( 1 );
for( i = 1; ! alarmed; i++ )
- gcm_crypt_and_tag( &gcm, GCM_ENCRYPT, BUFSIZE, tmp, 16, NULL, 0, buf, buf, 16, tmp );
+ gcm_crypt_and_tag( &gcm, GCM_ENCRYPT, BUFSIZE, tmp, 12, NULL, 0, buf, buf, 16, tmp );
tsc = hardclock();
for( j = 0; j < 4096; j++ )
- gcm_crypt_and_tag( &gcm, GCM_ENCRYPT, BUFSIZE, tmp, 16, NULL, 0, buf, buf, 16, tmp );
+ gcm_crypt_and_tag( &gcm, GCM_ENCRYPT, BUFSIZE, tmp, 12, NULL, 0, buf, buf, 16, tmp );
printf( "%9lu Kb/s, %9lu cycles/byte\n", i * BUFSIZE / 1024,
( hardclock() - tsc ) / ( j * BUFSIZE ) );