Paillier cryptosystem

From Wikipedia, the free encyclopedia

The Paillier cryptosystem is a probabilistic asymmetric algorithm for public key cryptography, invented by Pascal Paillier in 1999. The problem of computing n-th residue classes is believed to be computationally difficult to compute. This is known as the Composite Residuosity (CR) assumption upon which this cryptosystem is based.

The scheme is an additive homomorphic cryptosystem; this means that, given only the public-key and the encryption of m1 and m2, one can compute the encryption of m1 + m2.

The scheme works as follows:

Contents

[edit] Key generation

  1. Choose two large prime numbers p and q randomly and independently of each other.
  2. Compute n = pq and λ = lcm(p − 1,q − 1)
  3. Select random integer g where g\in \mathbb Z^{*}_{n^{2}}
  4. Ensure n divides the order of g by checking the existence of the following multiplicative inverse: \mu = (L(g^{\lambda} \mod n^{2}))^{-1} \mod n
where function L is defined as L(u) = \frac{u-1}{n}
  • The public (encryption) key is (n,g).
  • The private (decryption) key is (λ,μ).

[edit] Encryption

  1. Let m be a message to be encrypted where m\in \mathbb Z_{n}
  2. Select random r where r\in \mathbb Z^{*}_{n^{2}}
  3. Compute ciphertext as: c=g^m \cdot r^n \mod n^2

[edit] Decryption

  1. Ciphertext c\in \mathbb Z^{*}_{n^{2}}
  2. Compute message: m = L(c^{\lambda} \mod n^{2}) \cdot \mu \mod n

As the original paper points out, decryption is "essentially one exponentiation modulo n2."

[edit] Homomorphic properties

A notable feature of the Paillier cryptosystem is its homomorphic properties. As the encryption function is additively homomorphic, the following identities can be described:

  • Homomorphic addition of plaintexts
The product of two ciphertexts will decrypt to the sum of their corresponding plaintexts,
D(E(m_1, r_1)*E(m_2, r_2)\mod n^2) = m_1 + m_2 \mod n. \,
The product of a ciphertext with a plaintext raising g will decrypt to the sum of the corresponding plaintexts,
D(E(m_1, r_1)*g^{m_2} \mod n^2) = m_1 + m_2 \mod n. \,
  • Homomorphic multiplication of plaintexts
An encrypted plaintext raised to the power of another plaintext will decrypt to the product of the two plaintexts,
D(E(m_1, r_1)^{m_2}\mod n^2) = m_1 m_2 \mod n, \,
D(E(m_2, r_2)^{m_1}\mod n^2) = m_1 m_2 \mod n. \,
More generally, an encrypted plaintext raised to a constant k will decrypt to the product of the plaintext and the constant,
D(E(m_1, r_1)^k\mod n^2) = k m_1 \mod n. \,

However, given the Pailler encryptions of two messages there is no known way to compute an encryption of the product of these messages without knowing the private key.

[edit] Semantic Security

The original cryptosystem as shown above does provide semantic security against chosen-plaintext attacks (IND-CPA). The ability to successfully distinguish the challenge ciphertext essentially amounts to the ability to decide composite resduosity. The so-called decisional composite residuosity assumption (DCRA) is believed to be intractable.

Because of the aforementioned homomorphic properties however, the system is malleable, and therefore does not enjoy the highest echelon of semantic security that protects against adaptive chosen-plaintext attacks (IND-CCA2). Usually in cryptography the notion of malleability is not seen as an "advantage," but under certain applications such as secure electronic voting and threshold cryptosystems, this property may indeed be necessary.

Paillier and Pointcheval however went on to propose an improved cryptosystem that incorporates the combined hashing of message m with random r. Similar in intent to the Cramer-Shoup cryptosystem, the hashing prevents an attacker, given only c, from being able to change m in a meaningful way. Through this adaptation the improved scheme can be shown to be IND-CCA2 secure.

[edit] Applications

  • Electronic Voting

Semantic security is not the only consideration. There are situations under which malleability may be desirable. The above homomorphic properties can be utilized by secure electronic voting systems. Consider a simple binary ("for" or "against") vote. Let m voters cast a vote of either 1 (for) or 0 (against). Each voter encrypts their choice before casting their vote. The election official takes the product of the m encrypted votes and then decrypts the result and obtains the value n, which is the sum of all the votes. The election official then knows that n people voted for and m-n people voted against. The role of the random r ensures with negligible likelihood that two equivalent votes will ever encrypt to the same value, hence ensuring voter privacy.

  • Electronic Cash

Another feature named in paper is the notion of self-blinding. This is the ability to change one ciphertext into another without changing the content of its decryption. This has application to the development of electronic cash, an effort originally spear-headed by David Chaum. Imagine paying for an item online without the vendor needing to know your credit card number, and hence your identity. The goal in both electronic cash and electronic voting, is to ensure the e-coin (likewise e-vote) is valid, while at the same time not disclosing the identity of the person with whom it's currently associated.

[edit] See also

[edit] References

Public-key cryptography
v  d  e
Algorithms: Cramer-Shoup | DH | DSA | ECDH | ECDSA | EKE | ElGamal | GMR | IES | Lamport | MQV | NTRUEncrypt | NTRUSign | Paillier | Rabin | RSA | Schnorr | SPEKE | SRP | XTR
Theory: Discrete logarithm | Elliptic curve cryptography | RSA problem
Standardization: ANS X9F1 | CRYPTREC | IEEE P1363 | NESSIE | NSA Suite B   Misc: Digital signature | Fingerprint | PKI | Web of trust | Key size
Cryptography
v  d  e
History of cryptography | Cryptanalysis | Cryptography portal | Topics in cryptography
Symmetric-key algorithm | Block cipher | Stream cipher | Public-key cryptography | Cryptographic hash function | Message authentication code | Random numbers
In other languages