comparison dcrypt/crypto/hashes/SHA256.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
160 h.h6 = h6; 160 h.h6 = h6;
161 h.h7 = h7; 161 h.h7 = h7;
162 return h; 162 return h;
163 } 163 }
164 164
165 version (UnitTest) { 165 debug (UnitTest) {
166 unittest { 166 unittest {
167 static const char[][] test_inputs = [ 167 static const char[][] test_inputs = [
168 "", 168 "",
169 "abc", 169 "abc",
170 "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", 170 "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",