Fix client to use paillier encryption on lengths