Code style fix
Signed-off-by: Mateusz Starzyk <mateusz.starzyk@mobica.com>
diff --git a/library/gcm.c b/library/gcm.c
index be72f994..a3a3e48 100644
--- a/library/gcm.c
+++ b/library/gcm.c
@@ -363,7 +363,7 @@
if( use_len > add_len )
use_len = add_len;
- for (i = 0; i < use_len; i++)
+ for ( i = 0; i < use_len; i++ )
ctx->buf[i+offset] ^= p[i];
if( offset + use_len == 16 )
@@ -378,15 +378,13 @@
while( add_len >= 16 )
{
- use_len = 16;
-
- for( i = 0; i < use_len; i++ )
+ for( i = 0; i < 16; i++ )
ctx->buf[i] ^= p[i];
gcm_mult( ctx, ctx->buf, ctx->buf );
- add_len -= use_len;
- p += use_len;
+ add_len -= 16;
+ p += 16;
}
if( add_len > 0 )