diff options
| author | Kévin Le Gouguec <kevin.legouguec@airbus.com> | 2019-05-20 14:00:07 +0200 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@airbus.com> | 2019-05-20 14:00:07 +0200 |
| commit | c411641afd681d086a9595e9f82618246afbca0b (patch) | |
| tree | 37c0dcad69f4eb36c9436a9be3ebedf22748d790 /src/ref/cipher.c | |
| parent | 3a570315f28ea52e277bdeb7790e35fd11661592 (diff) | |
| download | lilliput-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.c | 2 |
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]) |
