I am trying to solve following formula:
$(A\ \mathrm{ror}\ 5)\ \mathrm{xor}\ A = X$
where $X$ is an unsigned 32-bit integer which is known, and $A$ is an unsigned 32-bit integer which needs to be calculated. $\mathrm{ror}$ is rotate right through carry.
When replacing $\mathrm{ror}$ with $\mathrm{shr}$ and $\mathrm{shl}$ (Shift right and left and filling with zero bits), I get
$((A\ \mathrm{shr}\ 5)\ \mathrm{or}\ (A\ \mathrm{shl}\ 27))\ \mathrm{xor}\ A = X$
But I can't find a solution for this. Is there some kind of numeric algebra which can be applied to the xor, or, shl, shr operators?