viff

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 diff
     1.1 --- a/apps/benchmark.py	Thu Jan 14 11:36:13 2010 +0100
     1.2 +++ b/apps/benchmark.py	Thu Jan 21 11:21:09 2010 +0100
     1.3 @@ -73,6 +73,8 @@
     1.4  from viff.config import load_config
     1.5  from viff.util import find_prime
     1.6  
     1.7 +commitment = None
     1.8 +pypaillier = None
     1.9  try:
    1.10      import commitment  
    1.11  except ImportError:
    1.12 @@ -80,6 +82,7 @@
    1.13  
    1.14  try:
    1.15      from pypaillier import encrypt_r, decrypt, tripple_2c, tripple_3a
    1.16 +    pypaillier = "PyPaillier is loaded."
    1.17  except:
    1.18      pypaillier = None
    1.19