Text this: Efficient unified Montgomery inversion with multi-bit shifting