Dog Breeds Information and More
  Komondor - Dog Breeds Facts and Information Dog Breeds Selector A to Z dog breeds Forums

 
Dog names
Dog training
Toy dogs
Intelligence
Dog health
Dog worship
Ticks

 
Golden Retriever
Labrador Retriever
Jack Russell
 
Find a Breed
 
Dog Breeds Encyclopedia
 

Paillier cryptosystem

The Paillier cryptosystem is an asymmetric algorithm for public key cryptography, invented by Pascal Paillier in 1999.

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 encryption scheme works as follows:

Contents

1 References

Key generation

  1. Choose two large prime numbers p and q randomly and independently of each other.
  2. Compute N=pq and φ = (p - 1)(q - 1)
  3. The public key is N and the private key is φ

Encryption

Let m be a message to be encrypted, with 0<m<N. Let r be some random integer between 0 and N. The ciphertext is:

c=(1+N)^m \cdot r^N \mod N^2

Decryption

To recover the plaintext m, observe that:

c \equiv r^N \mod N

and

(1+N)^m=1+m \cdot N=\frac{c}{r^N} \mod N^2

Therefore compute:

r=c^{N^{-1} \mod \phi} \mod N
m=\frac{(c \cdot r^{-N} \mod N^2) -1}{N}

References

  • Pascal Paillier, Public-Key Cryptosystems Based on Composite Degree Residuosity Classes, EUROCRYPT 1999, pp223-238.
The contents of this article are licensed from Wikipedia.org under the
GNU Free Documentation License. How to see transparent copy