/rev/6d2179a15b42
changeset: 1381:6d2179a15b42
user:      Marcel Keller <[email protected]>
date:      Wed Nov 04 12:43:18 2009 +0100
summary:   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.

diffstat:

 viff/prss.py |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (13 lines):

diff -r a466288e9280 -r 6d2179a15b42 viff/prss.py
--- a/viff/prss.py      Wed Nov 04 12:28:53 2009 +0100
+++ b/viff/prss.py      Wed Nov 04 12:43:18 2009 +0100
@@ -201,6 +201,9 @@
     all = frozenset(range(1, n+1))
     modulus = field.modulus
 
+    # This is needed for correct exponentiation.
+    j = field(j)
+
     for subset, shares in rep_shares:
         try:
             f_in_j = _f_in_j_cache[(field, n, j, subset)]
_______________________________________________
viff-commits mailing list
[email protected]
http://lists.viff.dk/listinfo.cgi/viff-commits-viff.dk

Reply via email to