Skip to content

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

Description

@Sbargaoui

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 !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions