viff

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 diff
     1.1 --- a/viff/bedoza_triple.py	Tue Jul 20 09:37:36 2010 +0200
     1.2 +++ b/viff/bedoza_triple.py	Tue Jul 20 09:49:59 2010 +0200
     1.3 @@ -296,6 +296,11 @@
     1.4          #         m^i=Decrypt(c)
     1.5      
     1.6      def _mul(self, inx, jnx, ais=None, cjs=None):
     1.7 +        """Multiply each of the field elements in *ais* with the
     1.8 +        corresponding encrypted elements in *cjs*.
     1.9 +        
    1.10 +        Returns a deferred which will yield a list of PartialShareContents.
    1.11 +        """
    1.12          CKIND = 1
    1.13          DiKIND = 2
    1.14          DjKIND = 3
    1.15 @@ -372,6 +377,11 @@
    1.16          return r
    1.17  
    1.18      def _full_mul(self, a, b):
    1.19 +        """Multiply each of the PartialShares in the list *a* with the
    1.20 +        corresponding PartialShare in the list *b*.
    1.21 +        
    1.22 +        Returns a deferred which will yield a list of PartialShares.
    1.23 +        """
    1.24          self.runtime.increment_pc()
    1.25          
    1.26          def do_full_mul(shares):