Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Fix Paillier encryption function to sample r from n #102

Open
nmajid2 opened this issue Feb 27, 2023 · 0 comments
Open

Fix Paillier encryption function to sample r from n #102

nmajid2 opened this issue Feb 27, 2023 · 0 comments

Comments

@nmajid2
Copy link

nmajid2 commented Feb 27, 2023

Goal

we only need to select r < n for encryption. In the existing code, r is sampled from n^2 and then raised to n mod n^2. Thus, the goal is to pick r from n.

##Resources

  • Public-Key Cryptosystems Based on Composite Degree Residuosity Classes

Acceptance criteria

  1. Well documented code
  2. Tests pass with more than 80% test coverage
  3. Static analysis should pass
  4. Code should be reviewed by two engineers
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant