"Atle Mauland" <atl...@stud.ntnu.no> 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.modulus
131

-- 
Martin Geisler

VIFF (Virtual Ideal Functionality Framework) brings easy and efficient
SMPC (Secure Multiparty Computation) to Python. See: http://viff.dk/.

Attachment: pgpGLr2SrENWF.pgp
Description: PGP signature

_______________________________________________
viff-devel mailing list (http://viff.dk/)
viff-devel@viff.dk
http://lists.viff.dk/listinfo.cgi/viff-devel-viff.dk

Reply via email to