diff options
author | lloyd <[email protected]> | 2008-11-03 19:36:32 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-11-03 19:36:32 +0000 |
commit | 25ea515a3682a52cab416e93c4a5c9890f2a668a (patch) | |
tree | d47d269170f62b35e25eb6c0bd609ff2fd10a7f3 | |
parent | cf4cac9527bc11cbc65c4f483a9a76418be78d7e (diff) |
Formatting
-rw-r--r-- | src/cipher/turing/turing.cpp | 11 |
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; |