commit 9e7ac850ec26dadc1c4c3da610ffda569a2f9e2f
parent e52d2c96531789fee70c1f1c5995c356ccbf9474
Author: Kévin Le Gouguec <kevin.legouguec@airbus.com>
Date: Wed, 12 Jun 2019 16:38:19 +0200
Homogénéisation de l'espacement du code
- 2 lignes entre le dernier #include et le début du code,
- 2 lignes avant le #endif final,
- pas d'espaces superflus pour LANES_NB (résidu d'alignement avec
d'autres variables)
Diffstat:
4 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/add_felicsref/tweakey.c b/src/add_felicsref/tweakey.c
@@ -34,7 +34,7 @@ to the compilation unit.
#include "tweakey.h"
-#define LANES_NB (TWEAKEY_BYTES/LANE_BYTES)
+#define LANES_NB (TWEAKEY_BYTES/LANE_BYTES)
void tweakey_state_init(
diff --git a/src/add_tweakeyloop/multiplications.h b/src/add_tweakeyloop/multiplications.h
@@ -26,6 +26,7 @@ implemented by applying functions for M and M_R n times.
#include "constants.h"
+
static void _multiply_M(const uint8_t x[LANE_BYTES], uint8_t y[LANE_BYTES])
{
y[7] = x[6];
@@ -82,4 +83,5 @@ static void _multiply_MR3(const uint8_t x[LANE_BYTES], uint8_t y[LANE_BYTES])
_multiply_MR(MR2_x, y);
}
+
#endif /* MULTIPLICATIONS_H */
diff --git a/src/ref/multiplications.h b/src/ref/multiplications.h
@@ -26,6 +26,7 @@ implemented in distinct functions with shifts and XORs.
#include "constants.h"
+
static void _multiply_M(const uint8_t x[LANE_BYTES], uint8_t y[LANE_BYTES])
{
y[7] = x[6];
@@ -111,4 +112,5 @@ static void _multiply_MR3(const uint8_t x[LANE_BYTES], uint8_t y[LANE_BYTES])
y[7] = x[2];
}
+
#endif /* MULTIPLICATIONS_H */
diff --git a/src/ref/tweakey.c b/src/ref/tweakey.c
@@ -25,7 +25,7 @@ This file provides the implementation of Lilliput-TBC's tweakey schedule.
#include "tweakey.h"
-#define LANES_NB (TWEAKEY_BYTES/LANE_BYTES)
+#define LANES_NB (TWEAKEY_BYTES/LANE_BYTES)
void tweakey_state_init(