Goldwasser-Micali cryptosystem

from Wikipedia, the free encyclopedia

The Goldwasser – Micali cryptosystem was introduced in 1982 by Shafrira Goldwasser and Silvio Micali . It is an asymmetrical cryptosystem for encrypting individual bits . The method is additive-homomorphic , i.e. That is, two encrypted messages can be added without first decrypting the messages.

The process was later expanded by Josh Benaloh to the Benaloh cryptosystem , which can also be used to encrypt longer messages.

Procedure

In the following we describe the key generation and the algorithms for encrypting and decrypting messages.

Generation of the public and private key

The key pair is generated as follows:

  • First you generate two random prime numbers , and define them . In practice, n should have at least 1024, but better 1536 or 2048 binary digits .
  • One randomly chooses in such that a quadratic non- remainder is modulo and has Jacobi symbol . This can be found efficiently, for example, by choosing it at random and checking whether the Legendre symbol satisfies, and otherwise starting over. Is a Blum number, i. h., so one can choose.

The public key consists of , the private key consists of .

Encrypt messages

To encrypt a message , proceed as follows:

  • First you choose a random one .
  • The encrypted message is then given through .

Decrypting messages (decoding)

For decrypting a ciphertext , it is checked whether a quadratic residue or not residue modulo is:

  • Applies and , as one sets , otherwise it is .

The correctness of the decryption can be seen by observing that an element in is a quadratic remainder modulo if and only if it is a quadratic remainder modulo and modulo . According to Euler's criterion , this is the case if and is true.

safety

Under the square remainder assumption, it can be shown that the method is semantically secure against selected plaintext attacks . This assumption means that for a composite module it cannot be efficiently checked whether an element has a square root modulo or not, if selected as described above .

Homomorphism properties

The Goldwasser – Micali cryptosystem is additive homomorphic. This means that by multiplying two key texts, the plain texts contained therein are added modulo 2. However, there is no known way to multiply the messages contained by operations on two key texts.

credentials

  1. Shafrira Goldwasser and Silvio Micali : Probabilistic Encryption & How To Play Mental Poker Keeping Secret All Partial Information ( English , PDF) Accessed February 1, 2019.