Benaloh cryptosystem

From testwiki
Jump to navigation Jump to search

The Benaloh Cryptosystem is an extension of the Goldwasser-Micali cryptosystem (GM) created in 1985 by Josh (Cohen) Benaloh. The main improvement of the Benaloh Cryptosystem over GM is that longer blocks of data can be encrypted at once, whereas in GM each bit is encrypted individually.[1][2][3]

Scheme Definition

Like many public-key cryptosystems, this scheme works in the group (ℤ/nℤ)∗ where n is a product of two large primes. This scheme is homomorphic and hence malleable.

Key Generation

Given block size r, a public/private key pair is generated as follows:

  1. Choose large primes p and q such that r|(p−1),gcd⁡(r,(p−1)/r)=1, and gcd⁡(r,(q−1))=1
  2. Set n=pq,ϕ=(p−1)(q−1)
  3. Choose y∈ℤn∗ such that yϕ/r≢1modn.
Note: If r is composite, it was pointed out by Fousse et al. in 2011[4] that the above conditions (i.e., those stated in the original paper) are insufficient to guarantee correct decryption, i.e., to guarantee that D(E(m))=m in all cases (as should be the case). To address this, the authors propose the following check: let r=p1p2…pk be the prime factorization of r. Choose y∈ℤn∗ such that for each factor pi, it is the case that yϕ/pi≠1modn.
  1. Set x=yϕ/rmodn

The public key is then y,n, and the private key is ϕ,x.

Message Encryption

To encrypt message m∈ℤr:

  1. Choose a random u∈ℤn∗
  2. Set Er(m)=ymurmodn

Message Decryption

To decrypt a ciphertext c∈ℤn∗:

  1. Compute a=cϕ/rmodn
  2. Output m=logx(a), i.e., find m such that xm≡amodn

To understand decryption, first notice that for any m∈ℤr and u∈ℤn∗ we have:

a=(c)ϕ/r≡(ymur)ϕ/r≡(ym)ϕ/r(ur)ϕ/r≡(yϕ/r)m(u)ϕ≡(x)m(u)0≡xmmodn

To recover m from a, we take the discrete log of a base x. If r is small, we can recover m by an exhaustive search, i.e. checking if xi≡amodn for all 0…(r−1). For larger values of r, the Baby-step giant-step algorithm can be used to recover m in O(r) time and space.

Security

The security of this scheme rests on the Higher residuosity problem, specifically, given z,r and n where the factorization of n is unknown, it is computationally infeasible to determine whether z is an rth residue mod n, i.e. if there exists an x such that z≡xrmodn.

References

Template:Reflist

Template:Cryptography navbox