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 wrap: on
line diff
--- a/viff/field.py	Fri May 23 10:24:14 2008 +0200
+++ b/viff/field.py	Fri May 23 10:28:02 2008 +0200
@@ -274,7 +274,6 @@
         a ^= exp_table[c]
         log_table[exp_table[c]] = c
     exp_table[255] = exp_table[0]
-    log_table[0] = 0
 
     for x in range(256):
         for y in range(256):
@@ -285,7 +284,6 @@
                 z = exp_table[log_product]
             _mul_table[(x,y)] = GF256(z)
 
-    #_inv_table[0] = 0
     for c in range(1, 256):
         _inv_table[c] = GF256(exp_table[255 - log_table[c]])