diff dcrypt/crypto/ciphers/TEA.d @ 1:483e4467b5f6

Added Blowfish with test vectors. Minor cleanup of other cipher classes (should probably clean more). Continued work on high-level cipher API (didn't get very far).
author Thomas Dixon <reikon@reikon.us>
date Tue, 12 Aug 2008 05:48:06 -0400
parents 0e08791a1418
children 71aae178f89a
line wrap: on
line diff
--- a/dcrypt/crypto/ciphers/TEA.d	Sun Aug 10 14:20:17 2008 -0400
+++ b/dcrypt/crypto/ciphers/TEA.d	Tue Aug 12 05:48:06 2008 -0400
@@ -14,14 +14,16 @@
 /** Implementation of the TEA cipher designed by
     David Wheeler and Roger Needham. */
 class TEA : BlockCipher {
-    private const uint ROUNDS = 32,
-                       KEY_SIZE = 16,
-                       BLOCK_SIZE = 8,
-                       DELTA = 0x9e3779b9,
-                       DECRYPT_SUM = 0xc6ef3720;
-    private uint sk0, sk1, sk2, sk3, sum;
-    private bool initialized,
-                 encrypt;
+    private {
+        const uint ROUNDS = 32,
+                   KEY_SIZE = 16,
+                   BLOCK_SIZE = 8,
+                   DELTA = 0x9e3779b9,
+                   DECRYPT_SUM = 0xc6ef3720;
+        uint sk0, sk1, sk2, sk3, sum;
+        bool initialized,
+             encrypt;
+    }
     
     void reset(){}