summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@airbus.com>2019-05-20 14:00:07 +0200
committerKévin Le Gouguec <kevin.legouguec@airbus.com>2019-05-20 14:00:07 +0200
commit232e8f67e63dfa71c9bca224857434d62af660ce (patch)
tree37c0dcad69f4eb36c9436a9be3ebedf22748d790
parent4aa9eec23454daf3e8c29234ba451ea081203696 (diff)
downloadlilliput-ae-implem-232e8f67e63dfa71c9bca224857434d62af660ce.tar.xz
Correction du calcul de Fj
Problème introduit par 4aa9eec.
-rw-r--r--src/ref/cipher.c2
1 files changed, 1 insertions, 1 deletions
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])