changeset 1567:3bf0533ed32c

BeDOZa: Changed unfortunate naming.
author Thomas P Jakobsen <tpj@cs.au.dk>
date Thu, 30 Sep 2010 11:47:57 +0200
parents 4ec457693fe8
children cec0ff157247
files viff/bedoza/bedoza_triple.py viff/bedoza/share.py
diffstat 2 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/viff/bedoza/bedoza_triple.py	Thu Sep 30 11:16:19 2010 +0200
+++ b/viff/bedoza/bedoza_triple.py	Thu Sep 30 11:47:57 2010 +0200
@@ -23,7 +23,7 @@
 
 from twisted.internet.defer import Deferred, gatherResults, succeed
 
-from viff.runtime import Runtime, Share, ShareList, gather_shares
+from viff.runtime import Runtime, ShareList, gather_shares
 from viff.field import FieldElement, GF
 from viff.constants import TEXT
 from viff.util import rand
@@ -36,7 +36,7 @@
 from viff.bedoza.modified_paillier import ModifiedPaillier
 from viff.bedoza.util import fast_pow
 from viff.bedoza.util import _convolute
-from viff.bedoza.share import Share
+from viff.bedoza.share import generate_partial_share_contents
 
 from viff.triple import Triple
 
@@ -296,7 +296,8 @@
                     s.callback(v)
                 return None
             
-            d.addCallback(lambda values: Share(values, self.runtime, self.paillier))
+            d.addCallback(lambda values: generate_partial_share_contents(
+                    values, self.runtime, self.paillier))
             d.addCallback(callBackPartialShareContents, result_shares)
             return d
         result_shares = [PartialShare(self.runtime, self.Zp) for _ in a]
--- a/viff/bedoza/share.py	Thu Sep 30 11:16:19 2010 +0200
+++ b/viff/bedoza/share.py	Thu Sep 30 11:47:57 2010 +0200
@@ -20,7 +20,7 @@
 from viff.bedoza.shares import PartialShareContents
 from viff.bedoza.util import _convolute
 
-def Share(field_elements, runtime, paillier):
+def generate_partial_share_contents(field_elements, runtime, paillier):
     """Each party input a list of field elements *field_elements*.
     The value of the field elements are encrypted and the encrypted
     values are exchanged.