4 Nov 12:44
viff: prss: Fixed bug in PRSS zero sharing.
<viff-devel <at> viff.dk>
2009-11-04 11:44:34 GMT
2009-11-04 11:44:34 GMT
/rev/6d2179a15b42
changeset: 1381:6d2179a15b42
user: Marcel Keller <mkeller <at> cs.au.dk>
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)]
(Continue reading)
RSS Feed