viff

changeset 1474:0ed03fae3f6a

Orlandi: Use the mul method in SimpleArithmetic.
author Janus Dam Nielsen <janus.nielsen@alexandra.dk>
date Wed, 07 Jul 2010 16:06:42 +0200
parents bf36d63d33cb
children 04d59fc3e12e
files viff/orlandi.py
diffstat 1 files changed, 0 insertions(+), 15 deletions(-) [+]
line diff
     1.1 --- a/viff/orlandi.py	Wed Jul 07 16:06:41 2010 +0200
     1.2 +++ b/viff/orlandi.py	Wed Jul 07 16:06:42 2010 +0200
     1.3 @@ -571,21 +571,6 @@
     1.4               return results[0]
     1.5          return results
     1.6  
     1.7 -    def mul(self, share_x, share_y):
     1.8 -        """Multiplication of shares."""
     1.9 -        assert isinstance(share_x, Share) or isinstance(share_y, Share), \
    1.10 -            "At least one of share_x and share_y must be a Share."
    1.11 -
    1.12 -        self.increment_pc()
    1.13 -
    1.14 -        field = getattr(share_x, "field", getattr(share_y, "field", None))
    1.15 -
    1.16 -        triple, prep = self._get_triple(field)
    1.17 -        if prep:
    1.18 -            # The data from the pool must be wrapped in Shares.
    1.19 -            triple = [Share(self, field, i) for i in triple]
    1.20 -        return self._basic_multiplication(share_x, share_y, *triple)
    1.21 -
    1.22      def _cmul(self, share_x, share_y, field):
    1.23          """Multiplication of a share with a constant.
    1.24