I am reading about Paillier Homomorphic Encryption, given here: https://en.wikipedia.org/wiki/Paillier_cryptosystem
I have two questions:
1) Is this restricted to only two plaintexts? Can I extend the homomorphic properties to more than two plaintexts?
2) Refer to:
$D(E(m_1, r_1)E(m_2, r_2) \mod n^2) = m_1 + m_2 \mod n$
what would happen if $(m_1 + m_2) > n$? Wouldn't that lose data?
We can see this last step is valid, as $\gcd(a,N)=1$ and $\gcd(b,N)=1\implies \gcd(ab,N)=1$ which we can extend infinitely.