n1analytics / javallier

A Java library for Paillier partially homomorphic encryption.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Limit the range of valid exponents in Number

mpnd opened this issue · comments

commented

This is to prevent memory blow up.

I don't understand this issue. Exponents are represented by int. That's always the same amount of memory. Limiting the range of int won't change anything.

commented

The main reason to limit the range of valid exponents is to prevent the significand from getting too large.

While Number class has been removed in 84b894a, could this still be relevant for EncodedNumber?