viff

changeset 779:13b7521daf43

Removed zero from logarithm table. It was not used and it would have been a mistake to use it anyway since log(0) is undefined.
author Martin Geisler <mg@daimi.au.dk>
date Fri, 23 May 2008 10:28:02 +0200
parents d1f1b8da12bb
children 70b74e887726
files viff/field.py
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
line diff
     1.1 --- a/viff/field.py	Fri May 23 10:24:14 2008 +0200
     1.2 +++ b/viff/field.py	Fri May 23 10:28:02 2008 +0200
     1.3 @@ -274,7 +274,6 @@
     1.4          a ^= exp_table[c]
     1.5          log_table[exp_table[c]] = c
     1.6      exp_table[255] = exp_table[0]
     1.7 -    log_table[0] = 0
     1.8  
     1.9      for x in range(256):
    1.10          for y in range(256):
    1.11 @@ -285,7 +284,6 @@
    1.12                  z = exp_table[log_product]
    1.13              _mul_table[(x,y)] = GF256(z)
    1.14  
    1.15 -    #_inv_table[0] = 0
    1.16      for c in range(1, 256):
    1.17          _inv_table[c] = GF256(exp_table[255 - log_table[c]])
    1.18