[ntl] unsigned long conversion to ZZp

Abdelrahaman Aly abdelrahaman.aly at uclouvain.be
Wed May 7 04:55:29 CDT 2014


Hi everyone,
I have the following 64 bits prime number of unsigned long 18211888930494588812LU, I use it as the modulus of  the ZZ_p field. 
when I try to parse using the conv function 64 bit numbers the conversion treats my numbers as signed longs (hence negative), placing the value elsewhere in the field:
Ex.
conv<ZZ_p>(18211888930494588809LU) yields: 17977033787279626007.
when the correct answer is: 18211888930494588809
to manage make it work I have to do the following conv<ZZ_p>(conv<ZZ>(18211888930494588809LU))
Is there something I’m doing incorrectly?

thanks in advance,

Abdelrahaman Aly	
PhD Student
UCLouvain-CORE
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shoup.net/pipermail/ntl_shoup.net/attachments/20140507/d57b8e76/attachment.html>


More information about the ntl mailing list