#scheme #paillier #prime #original #damgard-jurik #paillier-encryption #encrytion

no-std generalized-paillier

Original Paillier encryption and generallized Paillier encrytion, i.e. Damgard-Jurik scheme

3 releases (breaking)

0.3.0 Jan 23, 2025
0.2.0 Jan 15, 2025
0.1.0 Jan 9, 2025

#477 in Cryptography

Download history 106/week @ 2025-01-05 121/week @ 2025-01-12 128/week @ 2025-01-19 13/week @ 2025-01-26 12/week @ 2025-02-02

284 downloads per month

Apache-2.0

99KB
1.5K SLoC

CI Apache-2 Dependencies crates.io docs.rs

Paillier encryption and Damgard-Jurik encryption

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.6–2.6MB
~56K SLoC