comparison dcrypt/crypto/hashes/SHA224.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
54 h7 = 0xbefa4fa4u; 54 h7 = 0xbefa4fa4u;
55 } 55 }
56 56
57 SHA224 copy() { 57 SHA224 copy() {
58 SHA224 h = new SHA224(buffer[0..index]); 58 SHA224 h = new SHA224(buffer[0..index]);
59 h.bytes = bytes;
59 h.h0 = h0; 60 h.h0 = h0;
60 h.h1 = h1; 61 h.h1 = h1;
61 h.h2 = h2; 62 h.h2 = h2;
62 h.h3 = h3; 63 h.h3 = h3;
63 h.h4 = h4; 64 h.h4 = h4;