Closed mpnd closed 7 years ago
I can't see an alternative for EncryptedNumber
, as Paillier only supports multiplication and not division.
For the other cases, there might be alternatives, but is that really an issue? You might be able to save one multiplication, but they are pretty cheap even for humongous numbers.
Currently
a / b
(wherea
can be anEncryptedNumber
, anEncodedNumber
or aNumber
andb
is either along
or adouble
) is computed asa * (1 / b)
. Is there a better way to calculatea / b
without computing1 / b
?