comparison dcrypt/crypto/ciphers/Blowfish.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
334 S3[i++] = ByteConverter.BigEndian.to!(uint)(t[4..8]); 334 S3[i++] = ByteConverter.BigEndian.to!(uint)(t[4..8]);
335 } 335 }
336 } 336 }
337 337
338 /** Some Blowfish test vectors from Schneier's site. */ 338 /** Some Blowfish test vectors from Schneier's site. */
339 version (UnitTest) { 339 debug (UnitTest) {
340 unittest { 340 unittest {
341 static const char[][] test_keys = [ 341 static const char[][] test_keys = [
342 "0000000000000000", 342 "0000000000000000",
343 "ffffffffffffffff", 343 "ffffffffffffffff",
344 "57686f206973204a6f686e2047616c743f", // I don't know, do you? 344 "57686f206973204a6f686e2047616c743f", // I don't know, do you?