I have to perform the computation of $a^{b}\pmod {m}$. However, instead of providing $b$ directly, I instead know the value of $b\mod {m}$. Is it even possible to perform this calculation and if so, how do I go about it?
EDIT: I know that $m$ is a prime number.