python-paillier
python-paillier copied to clipboard
Test using different base for EncodedNumber
All the current unit tests use BASE=16. Add tests with BASE=2, and documentation/example of using different base.
(Tell the users to) Be careful when designing protocols with BASE=2 - if you don't require specific a specific value for the unencrypted exponents after an operation then you're potentially leaking a lot of information about what happened.
On a more mundane note, I can't remember if there were machine precision/rounding issues with non-power-of-two bases...
Thanks @felixlawrence, I've noted that loudly in the docs. Do you feel like reviewing the pull request?