Paillier and the Rise of Somewhat Homomorphic Encryption

Motivation:

In 1978, Rivest, Adleman and Dertouzos [1] introduced the idea of performing computations directly on encrypted data without using secret key. This concept is known as homomorphic encryption. However, their first proposal supported only one type of operation, either addition or multiplication, on encrypted data. Such schemes are called partially homomorphic encryption (PHE).

Later, in 1999, Paillier [2] improved this concept by designing an encryption scheme that allows both addition and multiplication on encrypted data, but only a limited number of times. This type of scheme is called somewhat homomorphic encryption (SHE).


Paillier Encryption:

Paillier encryption is a probabilistic asymmetric algorithm, which means it uses separate keys for encryption and decryption and also introduces randomness during encryption to ensure that the same message never encrypts to the same ciphertext. It supports important homomorphic properties that make it useful in privacy preserving applications.

The scheme works as follows.

1. Key Generation

  • Choose two large prime numbers p1p_1and p2p_2.

  • Compute n=p1p2n = p_1 \cdot p_2

  • Compute λ=lcm(p11,p21)\lambda = \text{lcm}(p_1 - 1, p_2 - 1).

  • Select a random generator gZn2g \in \mathbb{Z}_{n^2}^*.

  • Compute μ=(L(gλmodn2))1modn\mu = \left(L(g^{\lambda} \bmod n^2)\right)^{-1} \bmod n, where L(u)=u1nL(u) = \frac{u - 1}{n}.

The public key is (n,g)(n, g) and the private key is (λ,μ).



(\lambda, \mu)



References: 
We thanks to..

[1] Ronald L Rivest, Len Adleman, Michael L Dertouzos. ON DATA BANKS AND PRIVACY HOMOMORPHISM. Foundations of Secure Computation, 4(11):169–180, 1978.

[2] Pascal Paillier. Public-Key Cryptosystems Based on Composite Degree Residuosity Classes. In International conference on the theory and applications of cryptographic techniques, pages 223–238, 1999.




Comments

Popular posts from this blog

Homomorphic Encryption: A Basic Idea

Elliptic Curve Cryptography (ECC) and ECDSA

Fast Base Conversion and Its Application