/rev/bd8cf1987411
changeset: 1258:bd8cf1987411
user:      Marcel Keller <[email protected]>
date:      Tue Sep 29 14:56:57 2009 +0200
summary:   Increment the program counter for every input.

diffstat:

 viff/paillier.py |  3 +++
 viff/passive.py  |  3 +++
 2 files changed, 6 insertions(+), 0 deletions(-)

diffs (26 lines):

diff -r 1754fd1e0d9f -r bd8cf1987411 viff/paillier.py
--- a/viff/paillier.py  Tue Sep 29 14:19:43 2009 +0200
+++ b/viff/paillier.py  Tue Sep 29 14:56:57 2009 +0200
@@ -99,6 +99,9 @@
 
         results = []
         for peer_id in inputters:
+            # Unique program counter per input.
+            self.increment_pc()
+
             if peer_id == self.id:
                 a = field(rand.randint(0, field.modulus - 1))
                 b = number - a
diff -r 1754fd1e0d9f -r bd8cf1987411 viff/passive.py
--- a/viff/passive.py   Tue Sep 29 14:19:43 2009 +0200
+++ b/viff/passive.py   Tue Sep 29 14:56:57 2009 +0200
@@ -525,6 +525,9 @@
 
         results = []
         for peer_id in inputters:
+            # Unique program counter per input.
+            self.increment_pc()
+
             if peer_id == self.id:
                 pc = tuple(self.program_counter)
                 shares = shamir.share(field(number), threshold,
_______________________________________________
viff-commits mailing list
[email protected]
http://lists.viff.dk/listinfo.cgi/viff-commits-viff.dk

Reply via email to