changeset 756:2467d814530c

Fixed off-by-one error which caused ~GF256(-1) to fail.
author Martin Geisler <mg@daimi.au.dk>
date Wed, 14 May 2008 16:08:38 +0200
parents b9c66c527499
children 585e6f4c7c77
files viff/field.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/viff/field.py	Wed May 14 15:16:41 2008 +0200
+++ b/viff/field.py	Wed May 14 16:08:38 2008 +0200
@@ -112,7 +112,7 @@
     _log_table[0] = 0
 
     #_inv_table[0] = 0
-    for c in range(1, 255):
+    for c in range(1, 256):
         _inv_table[c] = _exp_table[255 - _log_table[c]]
 
 _generate_tables()