comparison dcrypt/crypto/ciphers/Blowfish.d @ 6:5cb17e09d685

Minor edits to the unittests of hash functions and ciphers. Added AES and test vectors.
author Thomas Dixon <reikon@reikon.us>
date Sat, 16 Aug 2008 22:43:22 -0400
parents 71aae178f89a
children 23c62e28b3a4
comparison
equal deleted inserted replaced
5:cff9960a019c 6:5cb17e09d685
386 // Decryption 386 // Decryption
387 t.init(false, key); 387 t.init(false, key);
388 t.processBlock(Util.hexToUbytes(test_ciphertexts[i]), 0, buffer, 0); 388 t.processBlock(Util.hexToUbytes(test_ciphertexts[i]), 0, buffer, 0);
389 result = Util.ubytesToHex(buffer); 389 result = Util.ubytesToHex(buffer);
390 assert(result == test_plaintexts[i], 390 assert(result == test_plaintexts[i],
391 t.name~": ("~result~") != ("~test_ciphertexts[i]~")"); 391 t.name~": ("~result~") != ("~test_plaintexts[i]~")");
392 } 392 }
393 } 393 }
394 } 394 }
395 } 395 }