Mercurial > projects > dcrypt
comparison dcrypt/crypto/Cipher.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 |
comparison
equal
deleted
inserted
replaced
1:483e4467b5f6 | 2:71aae178f89a |
---|---|
25 * | 25 * |
26 * Params: | 26 * Params: |
27 * encrypt = True if we are encrypting. | 27 * encrypt = True if we are encrypting. |
28 * params = Parameters to be passed to the cipher. (Key, rounds, etc.) | 28 * params = Parameters to be passed to the cipher. (Key, rounds, etc.) |
29 */ | 29 */ |
30 abstract void init(bool encrypt, CipherParameters params); | 30 void init(bool encrypt, CipherParameters params); |
31 | 31 |
32 /** Returns: The name of the algorithm of this cipher. */ | 32 /** Returns: The name of the algorithm of this cipher. */ |
33 abstract char[] name(); | 33 char[] name(); |
34 | 34 |
35 /** Reset cipher to its state immediately subsequent the last init. */ | 35 /** Reset cipher to its state immediately subsequent the last init. */ |
36 abstract void reset(); | 36 void reset(); |
37 | |
38 } | 37 } |