Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Sbargaoui opened this issue Apr 26, 2019 · 0 comments
Open

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

Sbargaoui opened this issue Apr 26, 2019 · 0 comments

Comments

@Sbargaoui
Copy link

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 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant