Mercurial > projects > dcrypt
comparison 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 |
comparison
equal
deleted
inserted
replaced
1:483e4467b5f6 | 2:71aae178f89a |
---|---|
10 | 10 |
11 public import dcrypt.crypto.Cipher; | 11 public import dcrypt.crypto.Cipher; |
12 public import dcrypt.crypto.params.SymmetricKey; | 12 public import dcrypt.crypto.params.SymmetricKey; |
13 | 13 |
14 /** Interface for a standard block cipher. */ | 14 /** Interface for a standard block cipher. */ |
15 abstract class BlockCipher : Cipher { | 15 interface BlockCipher : Cipher { |
16 | 16 |
17 /** Returns: The block size in bytes that this cipher will operate on. */ | 17 /** Returns: The block size in bytes that this cipher will operate on. */ |
18 uint blockSize(); | 18 uint blockSize(); |
19 | 19 |
20 /** | 20 /** |
30 * Returns: The number of bytes processed (typically blockSize). | 30 * Returns: The number of bytes processed (typically blockSize). |
31 * | 31 * |
32 * Throws: dcrypt.crypto.errors.NotInitializedError if cipher | 32 * Throws: dcrypt.crypto.errors.NotInitializedError if cipher |
33 * was not initialized. | 33 * was not initialized. |
34 */ | 34 */ |
35 uint processBlock(void[] input_, | 35 uint processBlock(void[] input_, uint inOff, void[] output_, uint outOff); |
36 uint inOff, void[] output_, uint outOff); | |
37 | |
38 } | 36 } |