Mercurial > projects > dcrypt
diff dcrypt/crypto/ciphers/RC6.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/RC6.d Sun Aug 10 14:20:17 2008 -0400 +++ b/dcrypt/crypto/ciphers/RC6.d Tue Aug 12 05:48:06 2008 -0400 @@ -23,15 +23,17 @@ * Note: This algorithm is patented and trademarked. */ class RC6 : BlockCipher { - private const uint ROUNDS = 20, - BLOCK_SIZE = 16, - // Magic constants for a 32 bit word size - P = 0xb7e15163, - Q = 0x9e3779b9; - private uint[] S; - private ubyte[] workingKey; - private bool initialized, - encrypt; + private { + const uint ROUNDS = 20, + BLOCK_SIZE = 16, + // Magic constants for a 32 bit word size + P = 0xb7e15163, + Q = 0x9e3779b9; + uint[] S; + ubyte[] workingKey; + bool initialized, + encrypt; + } char[] name() { return "RC6";