comparison 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
comparison
equal deleted inserted replaced
2:71aae178f89a 3:a5789a7b3b3b
210 h3 = 0x10325476u; 210 h3 = 0x10325476u;
211 } 211 }
212 212
213 MD5 copy() { 213 MD5 copy() {
214 MD5 h = new MD5(buffer[0..index]); 214 MD5 h = new MD5(buffer[0..index]);
215 h.bytes = bytes;
215 h.h0 = h0; 216 h.h0 = h0;
216 h.h1 = h1; 217 h.h1 = h1;
217 h.h2 = h2; 218 h.h2 = h2;
218 h.h3 = h3; 219 h.h3 = h3;
219 return h; 220 return h;