viff

changeset 1381:6d2179a15b42

prss: Fixed bug in PRSS zero sharing. j**i was not be computed correctly if the field was GF256 and the threshold was higher than 1.
author Marcel Keller <mkeller@cs.au.dk>
date Wed, 04 Nov 2009 12:43:18 +0100
parents a466288e9280
children aac9e1798f87
files viff/prss.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line diff
     1.1 --- a/viff/prss.py	Wed Nov 04 12:28:53 2009 +0100
     1.2 +++ b/viff/prss.py	Wed Nov 04 12:43:18 2009 +0100
     1.3 @@ -201,6 +201,9 @@
     1.4      all = frozenset(range(1, n+1))
     1.5      modulus = field.modulus
     1.6  
     1.7 +    # This is needed for correct exponentiation.
     1.8 +    j = field(j)
     1.9 +
    1.10      for subset, shares in rep_shares:
    1.11          try:
    1.12              f_in_j = _f_in_j_cache[(field, n, j, subset)]