2 unstable releases
new 0.2.0 | Jan 15, 2025 |
---|---|
0.1.0 | Jan 9, 2025 |
#612 in Cryptography
121 downloads per month
98KB
1.5K
SLoC
Paillier encryption and Damgard-Jurik encryption
- Paillier encryption from the paper Public-Key Cryptosystems Based on Composite Degree Residuosity Classes. Check the module for more docs.
- Generalization of Paillier encryption, called Damgard-Jurik scheme from the paper A Generalization of Paillier’s Public-Key System with Applications to Electronic Voting. Check the module for more docs
The code is generic over the prime size and expansion factor S
(for Damgard-Jurik)
By default, it uses standard library and rayon for parallelization.
For no_std
support, build as
cargo build --no-default-features
and for wasm-32, build as
cargo build --no-default-features --target wasm32-unknown-unknown
Dependencies
~1.4–2.4MB
~52K SLoC