diff dcrypt/crypto/ciphers/RC6.d @ 2:71aae178f89a

Added copy() to hash functions. Modified some code style.
author Thomas Dixon <reikon@reikon.us>
date Wed, 13 Aug 2008 22:01:19 -0400
parents 483e4467b5f6
children 5cb17e09d685
line wrap: on
line diff
--- a/dcrypt/crypto/ciphers/RC6.d	Tue Aug 12 05:48:06 2008 -0400
+++ b/dcrypt/crypto/ciphers/RC6.d	Wed Aug 13 22:01:19 2008 -0400
@@ -196,14 +196,14 @@
                 t.processBlock(Util.hexToUbytes(test_plaintexts[i]), 0, buffer, 0);
                 result = Util.ubytesToHex(buffer);
                 assert(result == test_ciphertexts[i],
-                        t.name()~": ("~result~") != ("~test_ciphertexts[i]~")");
+                        t.name~": ("~result~") != ("~test_ciphertexts[i]~")");
             
                 // Decryption
                 t.init(false, key);
                 t.processBlock(Util.hexToUbytes(test_ciphertexts[i]), 0, buffer, 0);
                 result = Util.ubytesToHex(buffer);
                 assert(result == test_plaintexts[i],
-                        t.name()~": ("~result~") != ("~test_ciphertexts[i]~")");
+                        t.name~": ("~result~") != ("~test_ciphertexts[i]~")");
             }
         }
     }