aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-11-03 19:02:27 +0000
committerlloyd <[email protected]>2008-11-03 19:02:27 +0000
commit5cde310b3cd29a5ff3bc96d6644ced613920f838 (patch)
treeb6499d89f1bb0e2495907278961f214fa43aca27 /src
parent8efcfc120b82a5851ae1ac14da19893519d5717d (diff)
Remove old commented out code
Diffstat (limited to 'src')
-rw-r--r--src/cipher/turing/turing.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/cipher/turing/turing.cpp b/src/cipher/turing/turing.cpp
index 04b9d2439..f8f098329 100644
--- a/src/cipher/turing/turing.cpp
+++ b/src/cipher/turing/turing.cpp
@@ -128,7 +128,6 @@ void Turing::generate()
const byte idx_15 = OFFSETS[16*j+11];
const byte idx_16 = OFFSETS[16*j+12];
- // mul(X) == return (X << 8) ^ MULT_TAB[(X >> 24) & 0xFF];
R[idx_0] = ((R[idx_0] << 8) ^ MULT_TAB[(R[idx_0] >> 24) & 0xFF]) ^
R[idx_15] ^ R[idx_4];
@@ -155,7 +154,6 @@ void Turing::generate()
E += A + B + C + D;
A += E; B += E; C += E; D += E;
- // mul(X) == return (X << 8) ^ MULT_TAB[(X >> 24) & 0xFF];
R[idx_1] = ((R[idx_1] << 8) ^ MULT_TAB[(R[idx_1] >> 24) & 0xFF]) ^
R[idx_16] ^ R[idx_5];
R[idx_2] = ((R[idx_2] << 8) ^ MULT_TAB[(R[idx_2] >> 24) & 0xFF]) ^
@@ -163,15 +161,8 @@ void Turing::generate()
R[idx_3] = ((R[idx_3] << 8) ^ MULT_TAB[(R[idx_3] >> 24) & 0xFF]) ^
R[idx_1] ^ R[idx_7];
-#if 0
- R[idx_1] = mul(R[idx_1]) ^ R[idx_16] ^ R[idx_5];
- R[idx_2] = mul(R[idx_2]) ^ R[idx_0] ^ R[idx_6];
- R[idx_3] = mul(R[idx_3]) ^ R[idx_1] ^ R[idx_7];
-#endif
-
E += R[idx_4];
- //R[idx_4] = mul(R[idx_4]) ^ R[idx_2] ^ R[idx_8];
R[idx_4] = ((R[idx_4] << 8) ^ MULT_TAB[(R[idx_4] >> 24) & 0xFF]) ^
R[idx_2] ^ R[idx_8];