comparison dcrypt/crypto/ciphers/TEA.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
129 // Decryption 129 // Decryption
130 t.init(false, key); 130 t.init(false, key);
131 t.processBlock(Util.hexToUbytes(test_ciphertexts[i]), 0, buffer, 0); 131 t.processBlock(Util.hexToUbytes(test_ciphertexts[i]), 0, buffer, 0);
132 result = Util.ubytesToHex(buffer); 132 result = Util.ubytesToHex(buffer);
133 assert(result == test_plaintexts[i], 133 assert(result == test_plaintexts[i],
134 t.name~": ("~result~") != ("~test_ciphertexts[i]~")"); 134 t.name~": ("~result~") != ("~test_plaintexts[i]~")");
135 } 135 }
136 } 136 }
137 } 137 }