viff

changeset 1155:4d7291de8f8a

Deleted trailing whitespace.
author Martin Geisler <mg@daimi.au.dk>
date Fri, 27 Mar 2009 15:47:44 +0100
parents 950815ab873f
children 4585ac6bce2c
files apps/aes.py viff/prss.py
diffstat 2 files changed, 8 insertions(+), 8 deletions(-) [+]
line diff
     1.1 --- a/apps/aes.py	Fri Mar 27 15:44:01 2009 +0100
     1.2 +++ b/apps/aes.py	Fri Mar 27 15:47:44 2009 +0100
     1.3 @@ -34,15 +34,15 @@
     1.4  
     1.5  parser = OptionParser(usage="Usage: %prog [options] config_file")
     1.6  parser.add_option("-e", "--exponentiation", action="store", type="int",
     1.7 -                  metavar="variant", 
     1.8 +                  metavar="variant",
     1.9                    help="Use exponentiation to invert bytes. "
    1.10                    "Default is the shortest sequential chain. "
    1.11                    "Possibilities:                             " +
    1.12 -                  "\n".join(["%d: %s                           " % 
    1.13 -                             (i, s) for (i, s) 
    1.14 +                  "\n".join(["%d: %s                           " %
    1.15 +                             (i, s) for (i, s)
    1.16                               in enumerate(AES.exponentiation_variants)]))
    1.17 -parser.add_option("-m", "--masking", action="store_false", 
    1.18 -                  dest="exponentiation", 
    1.19 +parser.add_option("-m", "--masking", action="store_false",
    1.20 +                  dest="exponentiation",
    1.21                    help="Use masking to invert bytes.")
    1.22  parser.set_defaults(exponentiation=1)
    1.23  parser.add_option("-o", "--at-once", action="store_true",help="Prepare "
    1.24 @@ -70,7 +70,7 @@
    1.25      ciphertext = []
    1.26  
    1.27      for i in range(options.count):
    1.28 -        ciphertext += aes.encrypt("a" * 16, key, True, 
    1.29 +        ciphertext += aes.encrypt("a" * 16, key, True,
    1.30                                    prepare_at_once=options.at_once)
    1.31  
    1.32      opened_ciphertext = [rt.open(c) for c in ciphertext]
     2.1 --- a/viff/prss.py	Fri Mar 27 15:44:01 2009 +0100
     2.2 +++ b/viff/prss.py	Fri Mar 27 15:47:44 2009 +0100
     2.3 @@ -118,7 +118,7 @@
     2.4      return convert_replicated_shamir(n, j, field, rep_shares)
     2.5  
     2.6  def prss_multi(n, j, field, prfs, key, modulus, quantity):
     2.7 -    """Does the same as :meth:`prss`, but multiple times in order to 
     2.8 +    """Does the same as :meth:`prss`, but multiple times in order to
     2.9      call the PRFs less frequently.
    2.10      """
    2.11      prf_results = random_replicated_sharing(j, prfs, key)
    2.12 @@ -127,7 +127,7 @@
    2.13          for i in range(quantity):
    2.14              rep_shares_list[i].append((subset, result % modulus))
    2.15              result /= modulus
    2.16 -    return [convert_replicated_shamir(n, j, field, rep_shares) 
    2.17 +    return [convert_replicated_shamir(n, j, field, rep_shares)
    2.18              for rep_shares in rep_shares_list]
    2.19  
    2.20  @fake(lambda n, j, field, prfs, key: (field(7), GF256(1)))