changeset 1060:81b22c71a13e

Added output methods to PassiveRuntime and PaillierRuntime.
author Martin Geisler <mg@daimi.au.dk>
date Tue, 16 Dec 2008 13:21:28 +0100
parents 476bac16b2d9
children 92705c83533a
files viff/paillier.py viff/passive.py
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/viff/paillier.py	Tue Dec 16 13:21:27 2008 +0100
+++ b/viff/paillier.py	Tue Dec 16 13:21:28 2008 +0100
@@ -114,6 +114,9 @@
         else:
             return results
 
+    def output(self, share, receivers=None):
+        return self.open(share, receivers)
+
     @increment_pc
     def open(self, share, receivers=None):
         """Open *share* to *receivers* (defaults to both players)."""
--- a/viff/passive.py	Tue Dec 16 13:21:27 2008 +0100
+++ b/viff/passive.py	Tue Dec 16 13:21:28 2008 +0100
@@ -49,6 +49,9 @@
         """Initialize runtime."""
         Runtime.__init__(self, player, threshold, options)
 
+    def output(self, share, receivers=None, threshold=None):
+        return self.open(share, receivers, threshold)
+
     @increment_pc
     def open(self, share, receivers=None, threshold=None):
         """Open a secret sharing.