diff options
| author | Kévin Le Gouguec <kevin.legouguec@airbus.com> | 2019-06-12 16:38:19 +0200 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@airbus.com> | 2019-07-02 10:35:26 +0200 |
| commit | 9e7ac850ec26dadc1c4c3da610ffda569a2f9e2f (patch) | |
| tree | 12a5b166d44fcb9d7eac3a5b3fe3818092d53d11 | |
| parent | e52d2c96531789fee70c1f1c5995c356ccbf9474 (diff) | |
| download | lilliput-ae-implem-9e7ac850ec26dadc1c4c3da610ffda569a2f9e2f.tar.xz | |
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)
| -rw-r--r-- | src/add_felicsref/tweakey.c | 2 | ||||
| -rw-r--r-- | src/add_tweakeyloop/multiplications.h | 2 | ||||
| -rw-r--r-- | src/ref/multiplications.h | 2 | ||||
| -rw-r--r-- | src/ref/tweakey.c | 2 |
4 files changed, 6 insertions, 2 deletions
diff --git a/src/add_felicsref/tweakey.c b/src/add_felicsref/tweakey.c index 1057565..18a7792 100644 --- 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 index 36e3c72..45b9eaa 100644 --- 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 index 32327f2..4de1848 100644 --- 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 index bae09d3..2f357ca 100644 --- 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( |
