A library for Partially Homomorphic Encryption in Python
Full Changelog: https://github.com/data61/python-paillier/compare/1.4.0...1.5.0
Complete pure Python fallback implementation.
invert
now available without gmpy2
, implemented using the extended
Euclidean algorithm (extended_euclidean_algorithm
)getprimeover
now available without gmpy2
, along with a probabilitic
primality test isprime
based on the Miller-Rabin test (miller_rabin
)Many thanks to Quentin Santos for this contribution.
Changes to enhance performance. Using Chinese Remainder Theorem for faster decryption. Exploit property of the generator to speed up encryption.
Note both the api and the serialisation has changed.
p
and q
attribute instead of lambda
and mu
. To
continue being able to create a private key using the totient use the
PaillierPrivateKey.from_totient
static constructor.n
.