Mercurial > projects > dcrypt
diff dcrypt/crypto/BlockCipher.d @ 2:71aae178f89a
Added copy() to hash functions. Modified some code style.
author | Thomas Dixon <reikon@reikon.us> |
---|---|
date | Wed, 13 Aug 2008 22:01:19 -0400 |
parents | 0e08791a1418 |
children | 23c62e28b3a4 |
line wrap: on
line diff
--- a/dcrypt/crypto/BlockCipher.d Tue Aug 12 05:48:06 2008 -0400 +++ b/dcrypt/crypto/BlockCipher.d Wed Aug 13 22:01:19 2008 -0400 @@ -12,7 +12,7 @@ public import dcrypt.crypto.params.SymmetricKey; /** Interface for a standard block cipher. */ -abstract class BlockCipher : Cipher { +interface BlockCipher : Cipher { /** Returns: The block size in bytes that this cipher will operate on. */ uint blockSize(); @@ -32,7 +32,5 @@ * Throws: dcrypt.crypto.errors.NotInitializedError if cipher * was not initialized. */ - uint processBlock(void[] input_, - uint inOff, void[] output_, uint outOff); - + uint processBlock(void[] input_, uint inOff, void[] output_, uint outOff); }