Skip to content

Sub-optimal computation in Paillier encryption #1

@mihaitodor

Description

@mihaitodor

Looking at this code again, skipping the modulo n^2 operation is probably a bad idea if the plaintext is a large number. I guess the optimal thing to do would be to figure out the threshold at which skipping it makes sense, but, otherwise, RandomizeCiphertext will be faster if we make sure it only multiplies numbers that are smaller than n^2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions