viff

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 diff
     1.1 --- a/viff/field.py	Wed May 14 15:16:41 2008 +0200
     1.2 +++ b/viff/field.py	Wed May 14 16:08:38 2008 +0200
     1.3 @@ -112,7 +112,7 @@
     1.4      _log_table[0] = 0
     1.5  
     1.6      #_inv_table[0] = 0
     1.7 -    for c in range(1, 255):
     1.8 +    for c in range(1, 256):
     1.9          _inv_table[c] = _exp_table[255 - _log_table[c]]
    1.10  
    1.11  _generate_tables()