http://hg.viff.dk/viff/rev/249bba0f9ad0
changeset: 1075:249bba0f9ad0
user:      Marcel Keller <[email protected]>
date:      Mon Jan 12 15:19:53 2009 +0100
summary:   Wrong assert in add_round_key corrected.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
viff/aes.py |    2 +-

diffs (12 lines):

diff -r 64052822e204 -r 249bba0f9ad0 viff/aes.py
--- a/viff/aes.py       Sun Jan 11 13:55:47 2009 +0100
+++ b/viff/aes.py       Mon Jan 12 15:19:53 2009 +0100
@@ -166,7 +166,7 @@
         State should be a list of 4 rows and round_key a list of
         4-byte columns (words)."""
 
-        assert len(round_key) == self.n_k, "Wrong key size."
+        assert len(round_key) == self.n_b, "Wrong key size."
         assert len(round_key[0]) == 4, "Key must consist of 4-byte words."
 
         state[:] = (Matrix(state) + Matrix(zip(*round_key))).rows
_______________________________________________
viff-commits mailing list
[email protected]
http://lists.viff.dk/listinfo.cgi/viff-commits-viff.dk

Reply via email to