viff

changeset 1447:cc963bc7ae5e

Implemented MAC computation.
author Janus Dam Nielsen <janus.nielsen@alexandra.dk>
date Mon, 05 Jul 2010 11:33:58 +0200
parents 161c652c4ae0
children 3c21042745e7
files viff/bedoza.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line diff
     1.1 --- a/viff/bedoza.py	Mon Jul 05 11:33:57 2010 +0200
     1.2 +++ b/viff/bedoza.py	Mon Jul 05 11:33:58 2010 +0200
     1.3 @@ -72,3 +72,6 @@
     1.4          """Initialize runtime."""
     1.5          Runtime.__init__(self, player, threshold, options)
     1.6          self.threshold = self.num_players - 1
     1.7 +
     1.8 +    def MAC(self, alpha, beta, v):
     1.9 +        return alpha*v + beta