From 9e7ac850ec26dadc1c4c3da610ffda569a2f9e2f Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Wed, 12 Jun 2019 16:38:19 +0200 Subject: Homogénéisation de l'espacement du code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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) --- src/add_felicsref/tweakey.c | 2 +- src/add_tweakeyloop/multiplications.h | 2 ++ src/ref/multiplications.h | 2 ++ src/ref/tweakey.c | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) (limited to 'src') 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( -- cgit v1.2.3