diff options
Diffstat (limited to 'src')
| -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( |
