Mercurial > projects > dcrypt
comparison dcrypt/crypto/Cipher.d @ 12:8c7f8fecdd75
Added ManagedBlockCipher, changed Crypto to just import everything, made Hash.update() return itself (for chaining) and ditched BlockCipherWrapper.
author | Thomas Dixon <reikon@reikon.us> |
---|---|
date | Sat, 30 Aug 2008 14:38:23 -0400 |
parents | cd376996cdb3 |
children | 5ce3012f1def |
comparison
equal
deleted
inserted
replaced
11:02970e63257d | 12:8c7f8fecdd75 |
---|---|
29 */ | 29 */ |
30 void init(bool encrypt, CipherParameters params); | 30 void init(bool encrypt, CipherParameters params); |
31 | 31 |
32 /** | 32 /** |
33 * Process a block of plaintext data from the input array | 33 * Process a block of plaintext data from the input array |
34 * and return the encrypted data. | 34 * and place it in the output array. |
35 * | 35 * |
36 * Params: | 36 * Params: |
37 * input_ = Array containing input data. | 37 * input_ = Array containing input data. |
38 * output_ = Array to hold the output data. | |
38 * | 39 * |
39 * Returns: The encrypted data. | 40 * Returns: The amount of encrypted data processed. |
40 */ | 41 */ |
41 ubyte[] process(void[] input_); | 42 uint update(void[] input_, void[] output_); |
42 | 43 |
43 /** Returns: The name of the algorithm of this cipher. */ | 44 /** Returns: The name of the algorithm of this cipher. */ |
44 char[] name(); | 45 char[] name(); |
45 | 46 |
46 /** Reset cipher to its state immediately subsequent the last init. */ | 47 /** Reset cipher to its state immediately subsequent the last init. */ |