summaryrefslogtreecommitdiff
path: root/src/ref/cipher.c
diff options
context:
space:
mode:
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])