summaryrefslogtreecommitdiff
path: root/src/tweakey.c
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@airbus.com>2018-12-11 16:20:36 +0100
committerKévin Le Gouguec <kevin.legouguec@airbus.com>2018-12-11 16:21:06 +0100
commit96c711433a6ac9529d2f205b75c4c5bcd49f9419 (patch)
tree5ba013357efe4bbb57014dfeb20c5e297dfe3881 /src/tweakey.c
parentc800899400f179dde4960ef945336f4ce0e24d89 (diff)
downloadlilliput-ae-implem-96c711433a6ac9529d2f205b75c4c5bcd49f9419.tar.xz
Correction d'un shift dans M³ (spec et implem)
Diffstat (limited to 'src/tweakey.c')
-rw-r--r--src/tweakey.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tweakey.c b/src/tweakey.c
index e6f3c36..9f67ed6 100644
--- a/src/tweakey.c
+++ b/src/tweakey.c
@@ -144,7 +144,7 @@ static void _multiply_M3(const uint8_t X[LANE_BYTES], uint8_t Y[LANE_BYTES])
Y[5] = M_2[X[4]] ^ M_1[X[3]] ^ X[2];
Y[4] = X[6]<<2 ^ X[3]>>6 ^ X[2]>>3 ^ X[1];
Y[3] = X[5]<<2 ^ X[0];
- Y[2] = X[7] ^ X[5]<<6 ^ X[4]<<2;
+ Y[2] = X[7] ^ X[5]<<5 ^ X[4]<<2;
Y[1] = X[6];
Y[0] = X[5];
}