summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tweakey.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tweakey.c b/src/tweakey.c
index 6905372..8f2f7dd 100644
--- a/src/tweakey.c
+++ b/src/tweakey.c
@@ -115,10 +115,10 @@ static void _multiply_MR(const uint8_t X[LANE_BYTES], uint8_t Y[LANE_BYTES])
{
Y[0] = X[1];
Y[1] = X[2];
- Y[2] = X[3] ^ X[4]<<3;
+ Y[2] = X[3] ^ X[4]>>3;
Y[3] = X[4];
- Y[4] = X[5] ^ X[6]>>3;
- Y[5] = X[6] ^ X[3]>>2;
+ Y[4] = X[5] ^ X[6]<<3;
+ Y[5] = X[6] ^ X[3]<<2;
Y[6] = X[7];
Y[7] = X[0];
}