aboutsummaryrefslogtreecommitdiffstats
path: root/src/block
diff options
context:
space:
mode:
Diffstat (limited to 'src/block')
-rw-r--r--src/block/serpent_simd/serp_simd_sbox.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/block/serpent_simd/serp_simd_sbox.h b/src/block/serpent_simd/serp_simd_sbox.h
index 6e3da7359..fe70f0063 100644
--- a/src/block/serpent_simd/serp_simd_sbox.h
+++ b/src/block/serpent_simd/serp_simd_sbox.h
@@ -76,11 +76,10 @@
B4 ^= B0; \
B1 ^= B3; \
B1 ^= B4; \
- B4 = ~B4; \
B0 = B2; \
B2 = B1; \
B1 = B3; \
- B3 = B4; \
+ B3 = ~B4; \
} while(0);
#define SBoxE4(B0, B1, B2, B3) \
@@ -165,7 +164,7 @@
#define SBoxE7(B0, B1, B2, B3) \
do { \
- B2 = ~B2; \
+ B2 = ~B2; \
SIMD_32 B4 = B3; \
B3 &= B0; \
B0 ^= B4; \