Fix formatting in various code to match spacing from coding style
diff --git a/library/blowfish.c b/library/blowfish.c
index 1ac01ca..d8b0c36 100644
--- a/library/blowfish.c
+++ b/library/blowfish.c
@@ -75,7 +75,7 @@
/* declarations of data at the end of this file */
static const uint32_t S[4][256];
-static uint32_t F(blowfish_context *ctx, uint32_t x)
+static uint32_t F( blowfish_context *ctx, uint32_t x )
{
unsigned short a, b, c, d;
uint32_t y;
@@ -94,7 +94,7 @@
return( y );
}
-static void blowfish_enc(blowfish_context *ctx, uint32_t *xl, uint32_t *xr)
+static void blowfish_enc( blowfish_context *ctx, uint32_t *xl, uint32_t *xr )
{
uint32_t Xl, Xr, temp;
short i;
@@ -102,10 +102,10 @@
Xl = *xl;
Xr = *xr;
- for (i = 0; i < BLOWFISH_ROUNDS; ++i)
+ for( i = 0; i < BLOWFISH_ROUNDS; ++i )
{
Xl = Xl ^ ctx->P[i];
- Xr = F(ctx, Xl) ^ Xr;
+ Xr = F( ctx, Xl ) ^ Xr;
temp = Xl;
Xl = Xr;
@@ -123,7 +123,7 @@
*xr = Xr;
}
-static void blowfish_dec(blowfish_context *ctx, uint32_t *xl, uint32_t *xr)
+static void blowfish_dec( blowfish_context *ctx, uint32_t *xl, uint32_t *xr )
{
uint32_t Xl, Xr, temp;
short i;
@@ -131,10 +131,10 @@
Xl = *xl;
Xr = *xr;
- for (i = BLOWFISH_ROUNDS + 1; i > 1; --i)
+ for( i = BLOWFISH_ROUNDS + 1; i > 1; --i )
{
Xl = Xl ^ ctx->P[i];
- Xr = F(ctx, Xl) ^ Xr;
+ Xr = F( ctx, Xl ) ^ Xr;
temp = Xl;
Xl = Xr;
@@ -225,11 +225,11 @@
if( mode == BLOWFISH_DECRYPT )
{
- blowfish_dec(ctx, &X0, &X1);
+ blowfish_dec( ctx, &X0, &X1 );
}
else /* BLOWFISH_ENCRYPT */
{
- blowfish_enc(ctx, &X0, &X1);
+ blowfish_enc( ctx, &X0, &X1 );
}
PUT_UINT32_BE( X0, output, 0 );
@@ -318,7 +318,7 @@
*output++ = (unsigned char)( c ^ iv[n] );
iv[n] = (unsigned char) c;
- n = (n + 1) % BLOWFISH_BLOCKSIZE;
+ n = ( n + 1 ) % BLOWFISH_BLOCKSIZE;
}
}
else
@@ -330,7 +330,7 @@
iv[n] = *output++ = (unsigned char)( iv[n] ^ *input++ );
- n = (n + 1) % BLOWFISH_BLOCKSIZE;
+ n = ( n + 1 ) % BLOWFISH_BLOCKSIZE;
}
}
@@ -368,7 +368,7 @@
c = *input++;
*output++ = (unsigned char)( c ^ stream_block[n] );
- n = (n + 1) % BLOWFISH_BLOCKSIZE;
+ n = ( n + 1 ) % BLOWFISH_BLOCKSIZE;
}
*nc_off = n;