Let be an odd composite positive integer whose prime factors are not known. Let be in integer that is relatively prime to . How hard is it to determine whether is a square modulo ? That is, how hard is it to know whether the congruence equation has solutions in ? Here is a more precise formulation of the problem called quadratic residuosity problem.
Quadratic Residuosity Problem
Let where and are two distinct odd primes. The values of and are not known but the value of is known. Let be an integer that is relatively prime to such that the Jacobi symbol . Determine whether is a quadratic residue modulo , i.e., whether is a square modulo .
When the modulus is relatively small, we can simply square the numbers that are relatively prime to until we reach a value that is the same as . When is large (or when and are large), the quadratic residuosity problem is believed to be computationally difficult. The intractability of the problem has implications in cryptography. For example, the security of the Goldwasser-Micali cryptosystem is based on the difficulty of the quadratic residuosity problem. See here for a discussion of the Goldwasser-Micali cryptosystem.
More on the Problem
When the modulus is a prime , there is an efficient algorithm to determine whether is a square modulo or whether is a quadratic residue modulo . One way is the use Euler’s criterion by evaluating modulo . We can also evaluate the Legendre symbol . Both results are the same value. If the result is congruent to 1, then is a quadratic residue modulo . If the result is congruent to -1, then is a quadratic nonresidue modulo .
When as discussed above, the number is a quadratic residue modulo if and only if is a quadratic residue modulo both and . If and are known, we can evaluate the Legendre symbols and . If both are 1, then is a quadratic residue modulo . If one or both symbols is a -1, then is a quadratic nonresidue modulo . With and not known, this is not a feasible approach.
The same tools that work for prime modulus would not work for the composite modulus . Euler’s criterion is no longer applicable, which is applicable only when the modulus is an odd prime. We can evaluate the Jacobi symbol by using the law of quadratic reciprocity for the Jacobi symbol. However, the value of the Jacobi symbol may not nicely correspond to quadratic residue or quadratic nonresidue, unlike the situation for the Legendre symbol. For the Legendre symbol, means is a quadratic residue modulo the odd prime and means is a quadratic nonresidue modulo . When the Jacobi symbol has the value of -1, we can conclude that is a quadratic nonresidue modulo . But when is 1, we cannot conclude that is a quadratic residue modulo . When , sometimes is a quadratic residue (when is a quadratic residue modulo both and ) and sometimes is a quadratic nonresidue (when is a quadratic nonresidue modulo both and ). The examples in the next section illustrate that the Jacobi symbol may not give reliable information.
Examples
Evaluate the following Jacobi symbols and .
See here for information on Jacobi symbol. In the following derivation, we do not factor any odd number and instead use the law of quadratic reciprocity to flip the symbols. Once the top value is greater than the bottom value, we reduce the top value modulo the bottom value. Whenever the top value is even, we factor out the 2.
Following the similar process, we evaluate the second Jacobi symbol as follows.
The values of both Jacobi symbols are 1. The first one corresponds to a quadratic nonresidue modulo where = 80,549,389. The second one corresponds to a quadratic nonresidue modulo . The first Jacobi system corresponds to the equation , which has no solutions. The second symbol corresponds to the equation , which has solutions. One solution is .
These examples illustrate the point that evaluating Jacobi symbols is not a reliable way to solve the quadratic residuosity problem.
Dan Ma quadratic residuosity problem
Dan Ma Goldwasser-Micali cryptosystem
Daniel Ma quadratic residuosity problem
Daniel Ma Goldwasser-Micali cryptosystem
2023 – Dan Ma