diff 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
line wrap: on
line diff
--- a/dcrypt/crypto/ciphers/RC4.d	Thu Aug 14 23:51:56 2008 -0400
+++ b/dcrypt/crypto/ciphers/RC4.d	Sat Aug 16 22:43:22 2008 -0400
@@ -198,7 +198,7 @@
                 r.processBytes(Util.hexToUbytes(test_ciphertexts[i]), 0, buffer.length, buffer, 0);
                 result = Util.ubytesToHex(buffer);
                 assert(result == test_plaintexts[i],
-                        r.name~": ("~result~") != ("~test_ciphertexts[i]~")");
+                        r.name~": ("~result~") != ("~test_plaintexts[i]~")");
             }
         }
     }