if(!isInZN(input)) {
throw new PaillierException(PaillierException.TYPE_PLAINTEXT_NOT_IN_ZN, input);
}
BigInteger plaintext = handleNegative(input);
BigInteger r = randomInZStarN();
return (((n.multiply(plaintext).add(BigInteger.ONE)).multiply(r.modPow(n, nSquared)))).mod(nSquared);
}
public BigInteger homomorphicAdd(BigInteger ciphertext1, BigInteger ciphertext2) throws PaillierException {
if (!isInZStarNSquared(ciphertext1))
{