Quadratic residuosity assumption

The quadratic residuosity (QR) assumption states that it is computationally hard to decide whether a given integer with Jacobi symbol is a quadratic residue modulo . The Jacobi symbol restriction ensures that quadratic residuosity is information-theoretically hidden; the QR assumption makes this computationally hard. It underlies the first provably CPA-secure public-key encryption scheme — GM84.

Assumption

Let for random -bit primes (or general primes). Let and . The QR advantage of is

where is uniformly random in (with probability 1/2) or uniformly random in (with probability 1/2).

QR is hard if for all efficient , is negligible.

Known Results

  • QR → CPA-secure PKE: Goldwasser-Micali encryption (the first IND-CPA PKE scheme) encrypts one bit at a time — GM84
  • Goldwasser-Micali is multiplicatively homomorphic: GM84
  • QR follows from factoring hardness: knowing and allows computing the Legendre symbols and GM84
  • QR → statistically hiding commitment scheme — standard
  • The original ZK proof of GMR85 was for quadratic residuosity — GMR85

Variations

Quadratic residuosity over (prime field)

For a prime , deciding quadratic residuosity modulo is easy (via the Legendre symbol). The hardness only arises for composite moduli.

Higher residuosity

Generalizes QR to -th power residuosity modulo . Underlies Goldwasser-Micali generalizations and the Benaloh cryptosystem.

Attacks

  • QR is broken if factoring is easy: knowing determines all Legendre symbols
  • Quantum attacks: Shor’s algorithm factors and breaks QR — Shor97