diff dcrypt/crypto/hashes/MD5.d @ 3:a5789a7b3b3b

Fixed error in hash copy() functions where I forgot to copy the length of the message. Now, twice as jank! =)
author Thomas Dixon <reikon@reikon.us>
date Thu, 14 Aug 2008 01:13:26 -0400
parents 71aae178f89a
children 5cb17e09d685
line wrap: on
line diff
--- a/dcrypt/crypto/hashes/MD5.d	Wed Aug 13 22:01:19 2008 -0400
+++ b/dcrypt/crypto/hashes/MD5.d	Thu Aug 14 01:13:26 2008 -0400
@@ -212,6 +212,7 @@
     
     MD5 copy() {
         MD5 h = new MD5(buffer[0..index]);
+        h.bytes = bytes;
         h.h0 = h0;
         h.h1 = h1;
         h.h2 = h2;