changeset 912:201381ab3c4b

Standardized preprocessing method names.
author Martin Geisler <mg@daimi.au.dk>
date Mon, 15 Sep 2008 21:05:50 +0200
parents 47734eb343ed
children 93e3a461a024
files viff/active.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/viff/active.py	Mon Sep 15 17:02:40 2008 +0200
+++ b/viff/active.py	Mon Sep 15 21:05:50 2008 +0200
@@ -412,14 +412,14 @@
     """Mixin class for generating multiplication triples using PRSS."""
 
     @increment_pc
-    @preprocess("generate_triple")
+    @preprocess("generate_triples")
     def get_triple(self, field):
-        count, result = self.generate_triple(field)
+        count, result = self.generate_triples(field)
         result.addCallback(lambda triples: triples[0])
         return result
 
     @increment_pc
-    def generate_triple(self, field):
+    def generate_triples(self, field):
         """Generate a multiplication triple using PRSS.
 
         These are random numbers *a*, *b*, and *c* such that ``c =