diff dcrypt/crypto/MAC.d @ 28:ad687db713a4

Further reworked the code for hash padding. Replaced all instances of 'char[]' with 'string' and removed a few 'const' modifiers as per Glenn Haecker's patch for D2 compatibility. Updated CONTRIBUTORS file.
author Thomas Dixon <reikon@reikon.us>
date Sun, 10 May 2009 22:38:48 -0400
parents 8b5eaf3c2979
children b9ba770b8f16
line wrap: on
line diff
--- a/dcrypt/crypto/MAC.d	Sat May 09 23:29:20 2009 -0400
+++ b/dcrypt/crypto/MAC.d	Sun May 10 22:38:48 2009 -0400
@@ -33,7 +33,7 @@
     void update(void[] input_);
     
     /** Returns: The name of this MAC. */
-    char[] name();
+    string name();
     
     /** Reset MAC to its state immediately subsequent the last init. */
     void reset();
@@ -48,7 +48,7 @@
     ubyte[] digest();
     
     /** Returns: The computed MAC in hexadecimal. */
-    char[] hexDigest()
+    string hexDigest()
     {
         return ByteConverter.hexEncode(digest());
     }