data61 / python-paillier

A library for Partially Homomorphic Encryption in Python
Other
605 stars 134 forks source link

Several encryption tests don't encrypt #22

Closed hardbyte closed 8 years ago

hardbyte commented 8 years ago

PaillierTestEncodedNumber has several encryption tests including testEncryptFloatDecryptFloat2.

As written these tests are misleading - they don't actually encrypt the EncodedNumber.

Linked to #21 because this testing would have caught this issue earlier.

hardbyte commented 8 years ago

Everything in paillier_test.py now encrypts.