Fix formatting: remove trailing spaces, #endif with comments (> 10 lines)
diff --git a/library/aes.c b/library/aes.c
index f0a25bc..7fc7af4 100644
--- a/library/aes.c
+++ b/library/aes.c
@@ -346,16 +346,16 @@
0x0000001B, 0x00000036
};
-#else
+#else /* POLARSSL_AES_ROM_TABLES */
/*
* Forward S-box & tables
*/
static unsigned char FSb[256];
-static uint32_t FT0[256];
-static uint32_t FT1[256];
-static uint32_t FT2[256];
-static uint32_t FT3[256];
+static uint32_t FT0[256];
+static uint32_t FT1[256];
+static uint32_t FT2[256];
+static uint32_t FT3[256];
/*
* Reverse S-box & tables
@@ -456,7 +456,7 @@
}
}
-#endif
+#endif /* POLARSSL_AES_ROM_TABLES */
/*
* AES key schedule (encryption)
@@ -826,7 +826,7 @@
{
if( padlock_xcryptcbc( ctx, mode, length, iv, input, output ) == 0 )
return( 0 );
-
+
// If padlock data misaligned, we just fall back to
// unaccelerated mode
//
@@ -1424,6 +1424,6 @@
return( 0 );
}
-#endif
+#endif /* POLARSSL_SELF_TEST */
-#endif
+#endif /* POLARSSL_AES_C */