viff

changeset 592:ac18c350f8ca

Yet more blank lines added and trailing whitespace removed.
author Martin Geisler <mg@daimi.au.dk>
date Thu, 20 Mar 2008 00:13:34 +0100
parents 80e49a760164
children b892c3460a13
files viff/comparison.py viff/matrix.py viff/shamir.py
diffstat 3 files changed, 4 insertions(+), 2 deletions(-) [+]
line diff
     1.1 --- a/viff/comparison.py	Thu Mar 20 00:11:48 2008 +0100
     1.2 +++ b/viff/comparison.py	Thu Mar 20 00:13:34 2008 +0100
     1.3 @@ -187,7 +187,7 @@
     1.4  
     1.5          full_mask = reduce(self.add, dst_shares)
     1.6          return tmp - full_mask
     1.7 -    
     1.8 +
     1.9      @increment_pc
    1.10      def greater_than_equal_preproc(self, field, smallField=None):
    1.11          """Preprocessing for greater_than_equal."""
     2.1 --- a/viff/matrix.py	Thu Mar 20 00:11:48 2008 +0100
     2.2 +++ b/viff/matrix.py	Thu Mar 20 00:13:34 2008 +0100
     2.3 @@ -28,6 +28,7 @@
     2.4  
     2.5  from __future__ import division
     2.6  
     2.7 +
     2.8  class Matrix(object):
     2.9      """A matrix."""
    2.10  
    2.11 @@ -270,6 +271,7 @@
    2.12              sum += mat[k, 0] * (-1)**k * sub.determinant()
    2.13          return sum
    2.14  
    2.15 +
    2.16  def hyper(n, field):
    2.17      """Makes a hyper-invertible square matrix.
    2.18  
     3.1 --- a/viff/shamir.py	Thu Mar 20 00:11:48 2008 +0100
     3.2 +++ b/viff/shamir.py	Thu Mar 20 00:13:34 2008 +0100
     3.3 @@ -111,6 +111,7 @@
     3.4          _recombination_vectors[key] = vector
     3.5      return sum(map(operator.mul, ys, vector))
     3.6  
     3.7 +
     3.8  def verify_sharing(shares, degree):
     3.9      """Verifies that a sharing is correct.
    3.10  
    3.11 @@ -143,4 +144,3 @@
    3.12  if __name__ == "__main__":
    3.13      import doctest    #pragma NO COVER
    3.14      doctest.testmod() #pragma NO COVER
    3.15 -