Skip to content

Latest commit

 

History

History
7 lines (4 loc) · 590 Bytes

README.md

File metadata and controls

7 lines (4 loc) · 590 Bytes

paillier

A self-contained implementation of the Paillier cryptosystem with the CRT (Chinese Remainder Theorem) optimisation for decryption using GMP.

SeComLib was used as a reference and this implementation contains the same optimisations. For further details, please consult the following code and paper: "Public-Key Cryptosystems Based on Composite Degree Residuosity Classes" by Pacal Paillier, 1999.

To build and run the code: gcc -lgmp paillier.cpp && ./a.out 1 2