From 4a89a70f14703e9a45eb490b44ca7621a516da71 Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Mon, 3 Dec 2018 15:28:58 +0100 Subject: Nettoyage des indices dans l'implémentation du key schedule MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Idéalement, il faudrait que j ne soit plus utilisé comme indice d'octet dans la spécification. --- src/tweakey.c | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) (limited to 'src/tweakey.c') diff --git a/src/tweakey.c b/src/tweakey.c index d1893e0..648bd54 100644 --- a/src/tweakey.c +++ b/src/tweakey.c @@ -8,7 +8,7 @@ #define LANE_BITS 64 #define LANE_BYTES (LANE_BITS/8) -#define LANES_NB (TWEAKEY_BYTES/LANE_BYTES) +#define LANES_NB (TWEAKEY_BYTES/LANE_BYTES) void tweakey_state_init( @@ -30,11 +30,13 @@ void tweakey_state_extract( { memset(round_tweakey, 0, ROUND_TWEAKEY_BYTES); - for (const uint8_t *lane=TK; lane