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 wrap: on
line diff
--- a/viff/bedoza.py	Mon Jul 05 11:33:57 2010 +0200
+++ b/viff/bedoza.py	Mon Jul 05 11:33:58 2010 +0200
@@ -72,3 +72,6 @@
         """Initialize runtime."""
         Runtime.__init__(self, player, threshold, options)
         self.threshold = self.num_players - 1
+
+    def MAC(self, alpha, beta, v):
+        return alpha*v + beta