Skip to content

EncryptedNumber.decrease_exponent_to does not play nice with custom BASE #76

Description

@wilko77

decrease_exponent_to contains this line:
https://github.com/n1analytics/python-paillier/blob/955f8c0bfa9623be15b75462b121d28acf70f04b/phe/paillier.py#L592

It basically just uses the default EncodedNumber.BASE, irrespective of the actual base that was used to encode that particular encrypted number.

See also the problem raised in issue #75: If you run the alternative_base.py example with numbers that have a non-zero exponent, then the addition will produce a wrong result.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions