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