aboutsummaryrefslogtreecommitdiff
path: root/library/xtea.c
diff options
context:
space:
mode:
authorPaul Bakker <p.j.bakker@polarssl.org>2014-06-17 16:39:18 +0200
committerPaul Bakker <p.j.bakker@polarssl.org>2014-06-17 17:06:47 +0200
commit66d5d076f754507e1746597a337053e2f7e64cf7 (patch)
treedefe06a26443ff41ca0af7e21283989c356b37ec /library/xtea.c
parentdb20c10423883f357f5cebc12a29cec4b16e95be (diff)
downloadmbedtls-66d5d076f754507e1746597a337053e2f7e64cf7.zip
mbedtls-66d5d076f754507e1746597a337053e2f7e64cf7.tar.gz
mbedtls-66d5d076f754507e1746597a337053e2f7e64cf7.tar.bz2
Fix formatting in various code to match spacing from coding style
Diffstat (limited to 'library/xtea.c')
-rw-r--r--library/xtea.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/xtea.c b/library/xtea.c
index 18a4d46..5ff8a04 100644
--- a/library/xtea.c
+++ b/library/xtea.c
@@ -71,7 +71,7 @@ void xtea_setup( xtea_context *ctx, const unsigned char key[16] )
{
int i;
- memset(ctx, 0, sizeof(xtea_context));
+ memset( ctx, 0, sizeof(xtea_context) );
for( i = 0; i < 4; i++ )
{
@@ -142,7 +142,7 @@ int xtea_crypt_cbc( xtea_context *ctx, int mode, size_t length,
memcpy( temp, input, 8 );
xtea_crypt_ecb( ctx, mode, input, output );
- for(i = 0; i < 8; i++)
+ for( i = 0; i < 8; i++ )
output[i] = (unsigned char)( output[i] ^ iv[i] );
memcpy( iv, temp, 8 );