viff

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 diff
     1.1 --- a/viff/active.py	Mon Sep 15 17:02:40 2008 +0200
     1.2 +++ b/viff/active.py	Mon Sep 15 21:05:50 2008 +0200
     1.3 @@ -412,14 +412,14 @@
     1.4      """Mixin class for generating multiplication triples using PRSS."""
     1.5  
     1.6      @increment_pc
     1.7 -    @preprocess("generate_triple")
     1.8 +    @preprocess("generate_triples")
     1.9      def get_triple(self, field):
    1.10 -        count, result = self.generate_triple(field)
    1.11 +        count, result = self.generate_triples(field)
    1.12          result.addCallback(lambda triples: triples[0])
    1.13          return result
    1.14  
    1.15      @increment_pc
    1.16 -    def generate_triple(self, field):
    1.17 +    def generate_triples(self, field):
    1.18          """Generate a multiplication triple using PRSS.
    1.19  
    1.20          These are random numbers *a*, *b*, and *c* such that ``c =