Skip to content

could it be faster in this way #111

@Sky19980923

Description

@Sky19980923

As self.g = n + 1, would it be better to replace
return invert(self.l_function(powmod(self.public_key.g, x - 1, xsquare),x), x)
with
return invert(self.l_function((self.n * (x - 1) + 1) % xsquare , x), x)
in phe/paillier.py/h_function(self, x, xsquare), it may allow it to be faster

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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