comparison dcrypt/crypto/ciphers/Blowfish.d @ 21:ec23779ee794

Removed redundant test vector from Blowfish unittest.
author Thomas Dixon <reikon@reikon.us>
date Sat, 10 Jan 2009 13:15:14 -0500
parents 3a57367afe34
children 4589f8c5eb3c
comparison
equal deleted inserted replaced
20:3a57367afe34 21:ec23779ee794
342 "ffffffffffffffff", 342 "ffffffffffffffff",
343 "57686f206973204a6f686e2047616c743f", // I don't know, do you? 343 "57686f206973204a6f686e2047616c743f", // I don't know, do you?
344 "1111111111111111", 344 "1111111111111111",
345 "0123456789abcdef", 345 "0123456789abcdef",
346 "1111111111111111", 346 "1111111111111111",
347 "0000000000000000",
348 "fedcba9876543210" 347 "fedcba9876543210"
349 ]; 348 ];
350 349
351 static const char[][] test_plaintexts = [ 350 static const char[][] test_plaintexts = [
352 "0000000000000000", 351 "0000000000000000",
353 "ffffffffffffffff", 352 "ffffffffffffffff",
354 "fedcba9876543210", 353 "fedcba9876543210",
355 "1111111111111111", 354 "1111111111111111",
356 "1111111111111111", 355 "1111111111111111",
357 "0123456789abcdef", 356 "0123456789abcdef",
358 "0000000000000000",
359 "0123456789abcdef" 357 "0123456789abcdef"
360 ]; 358 ];
361 359
362 static const char[][] test_ciphertexts = [ 360 static const char[][] test_ciphertexts = [
363 "4ef997456198dd78", 361 "4ef997456198dd78",
364 "51866fd5b85ecb8a", 362 "51866fd5b85ecb8a",
365 "cc91732b8022f684", 363 "cc91732b8022f684",
366 "2466dd878b963c9d", 364 "2466dd878b963c9d",
367 "61f9c3802281b096", 365 "61f9c3802281b096",
368 "7d0cc630afda1ec7", 366 "7d0cc630afda1ec7",
369 "4ef997456198dd78",
370 "0aceab0fc6a0a28d" 367 "0aceab0fc6a0a28d"
371 ]; 368 ];
372 369
373 Blowfish t = new Blowfish(); 370 Blowfish t = new Blowfish();
374 foreach (uint i, char[] test_key; test_keys) { 371 foreach (uint i, char[] test_key; test_keys) {