aboutsummaryrefslogtreecommitdiffstats
path: root/src/cipher
diff options
context:
space:
mode:
Diffstat (limited to 'src/cipher')
-rw-r--r--src/cipher/turing/turing.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/cipher/turing/turing.cpp b/src/cipher/turing/turing.cpp
index 51473f49d..f71a0c761 100644
--- a/src/cipher/turing/turing.cpp
+++ b/src/cipher/turing/turing.cpp
@@ -143,7 +143,10 @@ void Turing::generate()
u32bit E = R1;
E += A + B + C + D;
- A += E; B += E; C += E; D += E;
+ A += E;
+ B += E;
+ C += E;
+ D += E;
A = S0[get_byte(0, A)] ^ S1[get_byte(1, A)] ^
S2[get_byte(2, A)] ^ S3[get_byte(3, A)];
@@ -157,7 +160,11 @@ void Turing::generate()
S2[get_byte(2, E)] ^ S3[get_byte(3, E)];
E += A + B + C + D;
- A += E; B += E; C += E; D += E;
+
+ A += E;
+ B += E;
+ C += E;
+ D += E;
R[R_off[1]] = R1 =
((R1 << 8) ^ MULT_TAB[(R1 >> 24) & 0xFF]) ^ R12 ^ R5;