[viff-devel] The value of Zp
Atle Mauland
atlema at stud.ntnu.no
Thu Mar 26 01:45:41 PDT 2009
On Thu, 26 Mar 2009 00:24:00 +0100, Martin Geisler <mg at daimi.au.dk> wrote:
> "Atle Mauland" <atlema at 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
>
Thx all for answers, I was looking for the modulus attribute :)
More information about the viff-devel
mailing list