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 wrap: on
line diff
--- a/viff/orlandi.py	Wed Jul 07 16:06:41 2010 +0200
+++ b/viff/orlandi.py	Wed Jul 07 16:06:42 2010 +0200
@@ -571,21 +571,6 @@
              return results[0]
         return results
 
-    def mul(self, share_x, share_y):
-        """Multiplication of shares."""
-        assert isinstance(share_x, Share) or isinstance(share_y, Share), \
-            "At least one of share_x and share_y must be a Share."
-
-        self.increment_pc()
-
-        field = getattr(share_x, "field", getattr(share_y, "field", None))
-
-        triple, prep = self._get_triple(field)
-        if prep:
-            # The data from the pool must be wrapped in Shares.
-            triple = [Share(self, field, i) for i in triple]
-        return self._basic_multiplication(share_x, share_y, *triple)
-
     def _cmul(self, share_x, share_y, field):
         """Multiplication of a share with a constant.