Mercurial > projects > dcrypt
comparison dcrypt/crypto/hashes/SHA512.d @ 26:176c933827a8
Implemented MD4. Refactored MD5. Replaced all instances of 'version (UnitTest)' with 'debug (UnitTest)'.
author | Thomas Dixon <reikon@reikon.us> |
---|---|
date | Sun, 01 Mar 2009 13:06:48 -0500 |
parents | 4589f8c5eb3c |
children | 8b5eaf3c2979 |
comparison
equal
deleted
inserted
replaced
25:528676d20398 | 26:176c933827a8 |
---|---|
168 h.h6 = h6; | 168 h.h6 = h6; |
169 h.h7 = h7; | 169 h.h7 = h7; |
170 return h; | 170 return h; |
171 } | 171 } |
172 | 172 |
173 version (UnitTest) { | 173 debug (UnitTest) { |
174 unittest { | 174 unittest { |
175 static const char[][] test_inputs = [ | 175 static const char[][] test_inputs = [ |
176 "", | 176 "", |
177 "abc", | 177 "abc", |
178 "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn"~ | 178 "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn"~ |