python-paillier icon indicating copy to clipboard operation
python-paillier copied to clipboard

Test using different base for EncodedNumber

Open hardbyte opened this issue 10 years ago • 2 comments

All the current unit tests use BASE=16. Add tests with BASE=2, and documentation/example of using different base.

hardbyte avatar Jan 05 '16 00:01 hardbyte

(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...

felixlawrence avatar Jan 05 '16 04:01 felixlawrence

Thanks @felixlawrence, I've noted that loudly in the docs. Do you feel like reviewing the pull request?

hardbyte avatar Jan 05 '16 07:01 hardbyte