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 | 232e8f67e63dfa71c9bca224857434d62af660ce (patch) | |
| tree | 37c0dcad69f4eb36c9436a9be3ebedf22748d790 /src/ref | |
| parent | 4aa9eec23454daf3e8c29234ba451ea081203696 (diff) | |
| download | lilliput-ae-implem-232e8f67e63dfa71c9bca224857434d62af660ce.tar.xz | |
Correction du calcul de Fj
Problème introduit par 4aa9eec.
Diffstat (limited to 'src/ref')
| -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]) |
