diff 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
line wrap: on
line diff
--- a/dcrypt/crypto/Cipher.d	Wed Aug 20 23:33:02 2008 -0400
+++ b/dcrypt/crypto/Cipher.d	Sat Aug 30 14:38:23 2008 -0400
@@ -31,14 +31,15 @@
     
     /**
      * Process a block of plaintext data from the input array
-     * and return the encrypted data.
+     * and place it in the output array.
      *
      * Params:
      *     input_  = Array containing input data.
+     *     output_  = Array to hold the output data.
      *
-     * Returns: The encrypted data.
+     * Returns: The amount of encrypted data processed.
      */
-    ubyte[] process(void[] input_);
+    uint update(void[] input_, void[] output_);
     
     /** Returns: The name of the algorithm of this cipher. */
     char[] name();