diff dcrypt/crypto/PRNG.d @ 15:0de48552be35

Added LimitReachedError and PBKDF2. Fixed some errors with the previous commit in PRNGFromHash, etc. Re-implemented HMAC. Changed the name() format of HMAC and PBKDF2.
author Thomas Dixon <reikon@reikon.us>
date Wed, 19 Nov 2008 19:30:52 -0500
parents 5ce3012f1def
children 8b5eaf3c2979
line wrap: on
line diff
--- a/dcrypt/crypto/PRNG.d	Tue Nov 18 18:03:40 2008 -0500
+++ b/dcrypt/crypto/PRNG.d	Wed Nov 19 19:30:52 2008 -0500
@@ -18,9 +18,6 @@
     
     protected bool _initialized;
     
-    /** Returns: The name of the PRNG. */
-    char[] name();
-    
     /** Returns: Whether or not the PRNG has been initialized. */
     bool initialized() {
         return _initialized;
@@ -42,4 +39,7 @@
      *     output = Array to fill with the next bytes of the keystream
      */
     uint read(ubyte[] output);
+    
+    /** Returns: The name of the PRNG algorithm */
+    char[] name();
 }