changeset 1368:4306568ab9c6

Paillierutil: return a dict of longs.
author Janus Dam Nielsen <janus.nielsen@alexandra.dk>
date Thu, 29 Oct 2009 13:46:21 +0100
parents 59b9e1161c2c
children 7115ba16f72a
files viff/paillierutil.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/viff/paillierutil.py	Thu Oct 29 10:52:13 2009 +0100
+++ b/viff/paillierutil.py	Thu Oct 29 13:46:21 2009 +0100
@@ -56,5 +56,8 @@
     if paillier_type == "viff":
         return tuple(map(long, str))
     if paillier_type == "nacl":
-        return str.dict()
+        d = {}
+        for k, v in str.items():
+            d[k] = long(v)
+        return d