ecdsa: use shiftRight, square and pow where possible