comparison dcrypt/crypto/hashes/SHA1.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
176 h.h3 = h3; 176 h.h3 = h3;
177 h.h4 = h4; 177 h.h4 = h4;
178 return h; 178 return h;
179 } 179 }
180 180
181 version (UnitTest) { 181 debug (UnitTest) {
182 unittest { 182 unittest {
183 static const char[][] test_inputs = [ 183 static const char[][] test_inputs = [
184 "", 184 "",
185 "abc", 185 "abc",
186 "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", 186 "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",