Mercurial > projects > dcrypt
comparison dcrypt/crypto/hashes/SHA512.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 |
---|---|
151 h7 = 0x5be0cd19137e2179u; | 151 h7 = 0x5be0cd19137e2179u; |
152 } | 152 } |
153 | 153 |
154 SHA512 copy() { | 154 SHA512 copy() { |
155 SHA512 h = new SHA512(buffer[0..index]); | 155 SHA512 h = new SHA512(buffer[0..index]); |
156 h.bytes = bytes; | |
156 h.h0 = h0; | 157 h.h0 = h0; |
157 h.h1 = h1; | 158 h.h1 = h1; |
158 h.h2 = h2; | 159 h.h2 = h2; |
159 h.h3 = h3; | 160 h.h3 = h3; |
160 h.h4 = h4; | 161 h.h4 = h4; |