summaryrefslogtreecommitdiff
path: root/src/ref/cipher.c
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
commitc411641afd681d086a9595e9f82618246afbca0b (patch)
tree37c0dcad69f4eb36c9436a9be3ebedf22748d790 /src/ref/cipher.c
parent3a570315f28ea52e277bdeb7790e35fd11661592 (diff)
downloadlilliput-ae-implem-c411641afd681d086a9595e9f82618246afbca0b.tar.xz
Correction du calcul de Fj
Problème introduit par 3a57031.
Diffstat (limited to 'src/ref/cipher.c')
-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])