summaryrefslogtreecommitdiff
path: root/src/ref
diff options
context:
space:
mode:
Diffstat (limited to 'src/ref')
-rw-r--r--src/ref/tweakey.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ref/tweakey.c b/src/ref/tweakey.c
index 319ca49..45d938f 100644
--- a/src/ref/tweakey.c
+++ b/src/ref/tweakey.c
@@ -69,7 +69,7 @@ static uint8_t _M1(uint8_t x)
static uint8_t _M2(uint8_t x)
{
- return x<<6 ^ (x & 0xf8) ^ x>>6;
+ return x<<6 ^ (x>>3)<<3 ^ x>>6;
}
static uint8_t _M3(uint8_t x)