From c411641afd681d086a9595e9f82618246afbca0b Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Mon, 20 May 2019 14:00:07 +0200 Subject: Correction du calcul de Fj MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problème introduit par 3a57031. --- src/ref/cipher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ref/cipher.c b/src/ref/cipher.c index 5822575..6f1b4b5 100644 --- a/src/ref/cipher.c +++ b/src/ref/cipher.c @@ -85,7 +85,7 @@ static void _compute_round_tweakeys( static uint8_t _Fj(uint8_t Xj, uint8_t RTKj) { - return S[Xj] ^ RTK[j]; + return S[Xj ^ RTKj]; } static void _nonlinear_layer(uint8_t X[BLOCK_BYTES], const uint8_t RTK[ROUND_TWEAKEY_BYTES]) -- cgit v1.2.3