changeset 1426:0cae74c348e8

Orlandi: Fixed bug which caused the OrlandiRuntime to be erroneously reported as not loaded.
author Janus Dam Nielsen <janus.nielsen@alexandra.dk
date Thu, 21 Jan 2010 11:21:09 +0100
parents efa1983063d6
children e120e8967257
files apps/benchmark.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/apps/benchmark.py	Thu Jan 14 11:36:13 2010 +0100
+++ b/apps/benchmark.py	Thu Jan 21 11:21:09 2010 +0100
@@ -73,6 +73,8 @@
 from viff.config import load_config
 from viff.util import find_prime
 
+commitment = None
+pypaillier = None
 try:
     import commitment  
 except ImportError:
@@ -80,6 +82,7 @@
 
 try:
     from pypaillier import encrypt_r, decrypt, tripple_2c, tripple_3a
+    pypaillier = "PyPaillier is loaded."
 except:
     pypaillier = None