scipr-lab / ecfactory

SageMath library for constructing elliptic curves
Other
63 stars 17 forks source link

OverflowError - int too large to convert to C long #1

Open Sbargaoui opened 5 years ago

Sbargaoui commented 5 years ago

Hello,

While trying to run in cocks_pinch_example.py the first example cp.gen_params_from_r(r,k) using large values for r, for example a 256-bit long integer, I run into this issue :

   5361         """
   5362         if isinstance(b, int):
-> 5363             return mpz_kronecker_si(self.value, b)
   5364         if not isinstance(b, Integer):
   5365             b = Integer(b)

OverflowError: Python int too large to convert to C long

Have you run into this issue before ? If yes, how can you handle large integers that fit the standard recommandation of 128-bit level ?

Thanks !