viff

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 diff
     1.1 --- a/viff/paillierutil.py	Thu Oct 29 10:52:13 2009 +0100
     1.2 +++ b/viff/paillierutil.py	Thu Oct 29 13:46:21 2009 +0100
     1.3 @@ -56,5 +56,8 @@
     1.4      if paillier_type == "viff":
     1.5          return tuple(map(long, str))
     1.6      if paillier_type == "nacl":
     1.7 -        return str.dict()
     1.8 +        d = {}
     1.9 +        for k, v in str.items():
    1.10 +            d[k] = long(v)
    1.11 +        return d
    1.12