Re: [viff-devel] The value of Zp

2009-03-26 Thread Atle Mauland
On Thu, 26 Mar 2009 00:24:00 +0100, Martin Geisler wrote: "Atle Mauland" writes: Hi all! Is there any way of getting the value of the Zp-variable as an integer? I need to calculate some values mod p... You can access the modulus attribute: from viff.field import GF Zp = GF(131) Zp.modul

[viff-devel] Deprecated module

2009-03-26 Thread Janus Dam Nielsen
Hi For your information. I am using VIFF with Python version 2.6.1 and it shows the following warning: /Users/fagidiot/Documents/viff/viff/prss.py:46: DeprecationWarning: the sha module is deprecated; use the hashlib module instead import sha -- Janus Dam Nielsen R&D Scientist Alexand

[viff-devel] [issue81] The sha module is deprecated use hashlib instead

2009-03-26 Thread Janus Dam Nielsen
New submission from Janus Dam Nielsen : the sha module is deprecated as of Python 2.6.1 /Users/fagidiot/Documents/viff/viff/prss.py:46: DeprecationWarning: the sha module is deprecated; use the hashlib module instead import sha We should change to the hashlib module instead. -- impo

Re: [viff-devel] Importing shares into VIFF

2009-03-26 Thread Håvard Vegge
Thanks, worked like a charm! :) håvard Sigurd Torkel Meldgaard wrote: The simple_share_value needs to be converted to a field-element (reduced modulo P) m = Share(runtime, Zp, Zp(simple_share_value)) Should work - Sigurd On Wed, Mar 25, 2009 at 1:55 PM, Håvard Vegge wrote: Hello! In

Re: [viff-devel] Confusing behaviour?

2009-03-26 Thread Thomas P Jakobsen
Thanks for the clarification. I erroneously assumed that blocking stuff was ok in Twisted as long as it happens before any communication. But it makes good sense that one should avoid this anywhere in a Twisted program. Regards, Thomas 2009/3/26 Martin Geisler : > Thomas P Jakobsen writes: > >>