Quadratic residuosity problem

From testwiki
Revision as of 21:32, 20 December 2023 by imported>Jayy V
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Short description The quadratic residuosity problem (QRP[1]) in computational number theory is to decide, given integers a and N, whether a is a quadratic residue modulo N or not. Here N=p1p2 for two unknown primes p1 and p2, and a is among the numbers which are not obviously quadratic non-residues (see below).

The problem was first described by Gauss in his Disquisitiones Arithmeticae in 1801. This problem is believed to be computationally difficult. Several cryptographic methods rely on its hardness, see Template:Section link.

An efficient algorithm for the quadratic residuosity problem immediately implies efficient algorithms for other number theoretic problems, such as deciding whether a composite N of unknown factorization is the product of 2 or 3 primes.[2]

Precise formulation

Given integers a and T, a is said to be a quadratic residue modulo T if there exists an integer b such that

ab2(modT).

Otherwise we say it is a quadratic non-residue. When T=p is a prime, it is customary to use the Legendre symbol:

(ap)={1 if a is a quadratic residue modulo p and a≢0(modp),1 if a is a quadratic non-residue modulo p,0 if a0(modp).

This is a multiplicative character which means (ap)=1 for exactly (p1)/2 of the values 1,,p1, and it is 1 for the remaining.

It is easy to compute using the law of quadratic reciprocity in a manner akin to the Euclidean algorithm; see Legendre symbol.

Consider now some given N=p1p2 where p1 and p2 are two different unknown primes. A given a is a quadratic residue modulo N if and only if a is a quadratic residue modulo both p1 and p2 and gcd(a,N)=1.

Since we don't know p1 or p2, we cannot compute (ap1) and (ap2). However, it is easy to compute their product. This is known as the Jacobi symbol:

(aN)=(ap1)(ap2)

This also can be efficiently computed using the law of quadratic reciprocity for Jacobi symbols.

However, (aN) cannot in all cases tell us whether a is a quadratic residue modulo N or not! More precisely, if (aN)=1 then a is necessarily a quadratic non-residue modulo either p1 or p2, in which case we are done. But if (aN)=1 then it is either the case that a is a quadratic residue modulo both p1 and p2, or a quadratic non-residue modulo both p1 and p2. We cannot distinguish these cases from knowing just that (aN)=1.

This leads to the precise formulation of the quadratic residue problem:

Problem: Given integers a and N=p1p2, where p1 and p2 are distinct unknown primes, and where (aN)=1, determine whether a is a quadratic residue modulo N or not.

Distribution of residues

If a is drawn uniformly at random from integers 0,,N1 such that (aN)=1, is a more often a quadratic residue or a quadratic non-residue modulo N?

As mentioned earlier, for exactly half of the choices of a{1,,p11}, then (ap1)=1, and for the rest we have (ap1)=1. By extension, this also holds for half the choices of a{1,,N1}p1. Similarly for p2. From basic algebra, it follows that this partitions (/N)× into 4 parts of equal size, depending on the sign of (ap1) and (ap2).

The allowed a in the quadratic residue problem given as above constitute exactly those two parts corresponding to the cases (ap1)=(ap2)=1 and (ap1)=(ap2)=1. Consequently, exactly half of the possible a are quadratic residues and the remaining are not.

Applications

The intractability of the quadratic residuosity problem is the basis for the security of the Blum Blum Shub pseudorandom number generator. It also yields the public key Goldwasser–Micali cryptosystem,[3][4] as well as the identity based Cocks scheme.

See also

References

Template:Reflist

Template:Computational hardness assumptions