Mercurial > projects > dcrypt
diff dcrypt/crypto/ciphers/XTEA.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/XTEA.d Sun Aug 10 14:20:17 2008 -0400 +++ b/dcrypt/crypto/ciphers/XTEA.d Tue Aug 12 05:48:06 2008 -0400 @@ -14,15 +14,17 @@ /** Implementation of the XTEA cipher designed by David Wheeler and Roger Needham. */ class XTEA : BlockCipher { - private const uint ROUNDS = 32, - KEY_SIZE = 16, - BLOCK_SIZE = 8, - DELTA = 0x9e3779b9; - private uint[] subkeys, - sum0, - sum1; - private bool initialized, - encrypt; + private { + const uint ROUNDS = 32, + KEY_SIZE = 16, + BLOCK_SIZE = 8, + DELTA = 0x9e3779b9; + uint[] subkeys, + sum0, + sum1; + bool initialized, + encrypt; + } void reset(){}