viff

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 diff
     1.1 --- a/viff/bedoza/bedoza_triple.py	Thu Sep 30 11:16:19 2010 +0200
     1.2 +++ b/viff/bedoza/bedoza_triple.py	Thu Sep 30 11:47:57 2010 +0200
     1.3 @@ -23,7 +23,7 @@
     1.4  
     1.5  from twisted.internet.defer import Deferred, gatherResults, succeed
     1.6  
     1.7 -from viff.runtime import Runtime, Share, ShareList, gather_shares
     1.8 +from viff.runtime import Runtime, ShareList, gather_shares
     1.9  from viff.field import FieldElement, GF
    1.10  from viff.constants import TEXT
    1.11  from viff.util import rand
    1.12 @@ -36,7 +36,7 @@
    1.13  from viff.bedoza.modified_paillier import ModifiedPaillier
    1.14  from viff.bedoza.util import fast_pow
    1.15  from viff.bedoza.util import _convolute
    1.16 -from viff.bedoza.share import Share
    1.17 +from viff.bedoza.share import generate_partial_share_contents
    1.18  
    1.19  from viff.triple import Triple
    1.20  
    1.21 @@ -296,7 +296,8 @@
    1.22                      s.callback(v)
    1.23                  return None
    1.24              
    1.25 -            d.addCallback(lambda values: Share(values, self.runtime, self.paillier))
    1.26 +            d.addCallback(lambda values: generate_partial_share_contents(
    1.27 +                    values, self.runtime, self.paillier))
    1.28              d.addCallback(callBackPartialShareContents, result_shares)
    1.29              return d
    1.30          result_shares = [PartialShare(self.runtime, self.Zp) for _ in a]
     2.1 --- a/viff/bedoza/share.py	Thu Sep 30 11:16:19 2010 +0200
     2.2 +++ b/viff/bedoza/share.py	Thu Sep 30 11:47:57 2010 +0200
     2.3 @@ -20,7 +20,7 @@
     2.4  from viff.bedoza.shares import PartialShareContents
     2.5  from viff.bedoza.util import _convolute
     2.6  
     2.7 -def Share(field_elements, runtime, paillier):
     2.8 +def generate_partial_share_contents(field_elements, runtime, paillier):
     2.9      """Each party input a list of field elements *field_elements*.
    2.10      The value of the field elements are encrypted and the encrypted
    2.11      values are exchanged.