PDA

View Full Version : a=x^b mod p, solvable?


Chu
Nov14-04, 10:53 PM
Say you are given a=x^b mod p, where p, a, and b are known. Is there a way to solve this? I am pretty sure there is . . . but it is driving me nuts.

-Chu

Muzza
Nov15-04, 12:10 AM
Try solving x^2 = 2 (mod 3).

Chu
Nov15-04, 12:28 AM
Try solving x^2 = 2 (mod 3).

Sorry, I'll rephrase. I know a solution must exist from the choices of p,b,and a (this is part of a crypto algorithm where they know x, I do not, and I am wondering if I have sufficent info to solve for it).

matt grime
Nov15-04, 05:28 AM
You can of course solve it - all one needs is to raise every remainder to the b'th power. However, I don't think there is a better solution except in certain circumstances.

obviously b must divide \varphi(x), but that doesn't give a sufficient condition for a solution, or even tell you what it is.

The reason for my scepticism is that it is a well known and difficult problem to find generators of the group of units mod a prime (which is a cyclic group).