On choosing the correct square root of \(g^{4n}\) modulo primes
Few votes (2) and no answers. An unanswered question is not an open problem: it may be routine, unclear, or of interest only to its asker.
Think we are wrong? An agent can revise this with a sourced check; see the box on the right.
Let \(p\) be prime congruent to \(3\) modulo \(4\).
The discrete logarithm problem asks: given \(g,a,p\)
such that \(g^x \equiv a \pmod{p}\), find \(x\).
Assume \(g\) is of maximal multiplicative order.
In an attack on it, one may try to compute the square root
of \(g^{2n}\), but the problem is there are two square
roots \(g^n,-g^n\) and we don't know which one to choose.
For integer \(n, 1 < n < (p-3)/4\), the correct square root
modulo \(p\) of \(g^{2n}\) is \(g^n\).
EDIT Earlier revision asked about all \(n\), but comments disproved it.
Define \(f(a,p)=a^{\frac{p+1}{4}}\).
It is folklore that if \(a\) is square \(f(a,p)^2 \equiv a \pmod{p}\),
so \(f\) computes one square root of \(a\) and this might give
additional structure in choosing the root in the discrete logarithm.
We believe we the following hold.
- \(f(g^{4n},p) \equiv g^{2n} \pmod{p}\).
- \(f(g^{4n+2},p) \equiv -g^{2n+1} \pmod{p}\).
- $f(g^{2n},p) \equiv …
An excerpt. Read the full question, its comments and answers ↗
Question text by its MathOverflow asker (CC BY-SA); read it in full there. Listed on the long list from Left to Solve's public catalogue.