changeset 1507:3787ff4776bc

BeDOZa: Added comments.
author Janus Dam Nielsen <janus.nielsen@alexandra.dk>
date Tue, 20 Jul 2010 09:49:59 +0200
parents 5d340ba92fff
children 891df84eb779
files viff/bedoza_triple.py
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/viff/bedoza_triple.py	Tue Jul 20 09:37:36 2010 +0200
+++ b/viff/bedoza_triple.py	Tue Jul 20 09:49:59 2010 +0200
@@ -296,6 +296,11 @@
         #         m^i=Decrypt(c)
     
     def _mul(self, inx, jnx, ais=None, cjs=None):
+        """Multiply each of the field elements in *ais* with the
+        corresponding encrypted elements in *cjs*.
+        
+        Returns a deferred which will yield a list of PartialShareContents.
+        """
         CKIND = 1
         DiKIND = 2
         DjKIND = 3
@@ -372,6 +377,11 @@
         return r
 
     def _full_mul(self, a, b):
+        """Multiply each of the PartialShares in the list *a* with the
+        corresponding PartialShare in the list *b*.
+        
+        Returns a deferred which will yield a list of PartialShares.
+        """
         self.runtime.increment_pc()
         
         def do_full_mul(shares):