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 wrap: on
line diff
--- a/apps/aes.py	Fri Mar 27 15:44:01 2009 +0100
+++ b/apps/aes.py	Fri Mar 27 15:47:44 2009 +0100
@@ -34,15 +34,15 @@
 
 parser = OptionParser(usage="Usage: %prog [options] config_file")
 parser.add_option("-e", "--exponentiation", action="store", type="int",
-                  metavar="variant", 
+                  metavar="variant",
                   help="Use exponentiation to invert bytes. "
                   "Default is the shortest sequential chain. "
                   "Possibilities:                             " +
-                  "\n".join(["%d: %s                           " % 
-                             (i, s) for (i, s) 
+                  "\n".join(["%d: %s                           " %
+                             (i, s) for (i, s)
                              in enumerate(AES.exponentiation_variants)]))
-parser.add_option("-m", "--masking", action="store_false", 
-                  dest="exponentiation", 
+parser.add_option("-m", "--masking", action="store_false",
+                  dest="exponentiation",
                   help="Use masking to invert bytes.")
 parser.set_defaults(exponentiation=1)
 parser.add_option("-o", "--at-once", action="store_true",help="Prepare "
@@ -70,7 +70,7 @@
     ciphertext = []
 
     for i in range(options.count):
-        ciphertext += aes.encrypt("a" * 16, key, True, 
+        ciphertext += aes.encrypt("a" * 16, key, True,
                                   prepare_at_once=options.at_once)
 
     opened_ciphertext = [rt.open(c) for c in ciphertext]
--- a/viff/prss.py	Fri Mar 27 15:44:01 2009 +0100
+++ b/viff/prss.py	Fri Mar 27 15:47:44 2009 +0100
@@ -118,7 +118,7 @@
     return convert_replicated_shamir(n, j, field, rep_shares)
 
 def prss_multi(n, j, field, prfs, key, modulus, quantity):
-    """Does the same as :meth:`prss`, but multiple times in order to 
+    """Does the same as :meth:`prss`, but multiple times in order to
     call the PRFs less frequently.
     """
     prf_results = random_replicated_sharing(j, prfs, key)
@@ -127,7 +127,7 @@
         for i in range(quantity):
             rep_shares_list[i].append((subset, result % modulus))
             result /= modulus
-    return [convert_replicated_shamir(n, j, field, rep_shares) 
+    return [convert_replicated_shamir(n, j, field, rep_shares)
             for rep_shares in rep_shares_list]
 
 @fake(lambda n, j, field, prfs, key: (field(7), GF256(1)))