Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Add Paillier Encryption #38

Open
Athishpranav2003 opened this issue Aug 20, 2024 · 4 comments
Open

Feature Request: Add Paillier Encryption #38

Athishpranav2003 opened this issue Aug 20, 2024 · 4 comments

Comments

@Athishpranav2003
Copy link

Extend support for Homomorphic Encryption Algorithm - Paillier Encryption. This could be useful since this scheme is widely used in E-voting related work.

@Athishpranav2003
Copy link
Author

Athishpranav2003 commented Aug 20, 2024

@xavierleroy I am raising this issue and willing to work on it as well once you confirm. Incase if this feature is not appropriate please let me know asap

@xavierleroy
Copy link
Owner

Thanks for pointing Paillier encryption out, I didn't know about it. For reference: https://en.wikipedia.org/wiki/Paillier_cryptosystem

As you noticed, Cryptokit is very poor in the public-key cryptography department, in part because it doesn't implement elliptic curves. Paillier is just modular arithmetic, and would add new capabilities (homomorphic encryption), so I'm in favor of having it in Cryptokit eventually.

Feel free to try to implement it and to submit a pull request.

@Athishpranav2003
Copy link
Author

@xavierleroy thanks for the reply. I have already added an implementation in mirage-crypto so I guess adding it here won't be a problem

@Athishpranav2003
Copy link
Author

https:/Athishpranav2003/mirage-crypto

I added the implementation and tested it here. Will go ahead and add it to cryptokit as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants