updated Paillier for new TLS