Mercurial > projects > dcrypt
diff dcrypt/crypto/ciphers/RC4.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/RC4.d Sun Aug 10 14:20:17 2008 -0400 +++ b/dcrypt/crypto/ciphers/RC4.d Tue Aug 12 05:48:06 2008 -0400 @@ -16,10 +16,12 @@ /** Implementation of RC4 designed by Ron Rivest of RSA Security. */ class RC4 : StreamCipher { - private ubyte[] state, - workingKey; - private ubyte x, y; - private bool initialized; + private { + ubyte[] state, + workingKey; + ubyte x, y; + bool initialized; + } void init(bool encrypt, CipherParameters params) { SymmetricKey keyParams = cast(SymmetricKey)params;