aboutsummaryrefslogtreecommitdiffstats
path: root/lib/siphash.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/siphash.c')
-rw-r--r--lib/siphash.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/siphash.c b/lib/siphash.c
index 3ae58b4edad6..5290649c71d3 100644
--- a/lib/siphash.c
+++ b/lib/siphash.c
@@ -403,8 +403,8 @@ EXPORT_SYMBOL(hsiphash_4u32);
u32 v2 = 0x6c796765U; \
u32 v3 = 0x74656462U; \
u32 b = ((u32)(len)) << 24; \
- v3 ^= key->key[1]; \
- v2 ^= key->key[0]; \
+ v3 ^= key->key[3]; \
+ v2 ^= key->key[2]; \
v1 ^= key->key[1]; \
v0 ^= key->key[0];
@@ -413,6 +413,10 @@ EXPORT_SYMBOL(hsiphash_4u32);
HSIPROUND; \
v0 ^= b; \
v2 ^= 0xff; \
+ v3 ^= key->key[3]; \
+ v2 ^= key->key[2]; \
+ v1 ^= key->key[1]; \
+ v0 ^= key->key[0]; \
HSIPROUND; \
HSIPROUND; \
HSIPROUND; \