diff options
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 6f1b4b5..8ebbbc3 100644 --- a/src/ref/cipher.c +++ b/src/ref/cipher.c @@ -103,7 +103,7 @@ static void _linear_layer(uint8_t X[BLOCK_BYTES]) X[15] ^= X[j]; } - for (size_t j=9; j<15; j++) + for (size_t j=14; j>8; j--) { X[j] ^= X[7]; } |
