comparison dcrypt/crypto/ciphers/RC4.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
196 196
197 // Decryption 197 // Decryption
198 r.processBytes(Util.hexToUbytes(test_ciphertexts[i]), 0, buffer.length, buffer, 0); 198 r.processBytes(Util.hexToUbytes(test_ciphertexts[i]), 0, buffer.length, buffer, 0);
199 result = Util.ubytesToHex(buffer); 199 result = Util.ubytesToHex(buffer);
200 assert(result == test_plaintexts[i], 200 assert(result == test_plaintexts[i],
201 r.name~": ("~result~") != ("~test_ciphertexts[i]~")"); 201 r.name~": ("~result~") != ("~test_plaintexts[i]~")");
202 } 202 }
203 } 203 }
204 } 204 }
205 } 205 }