Repeated squares is a way to implement exponentiation, not multiplication.

Oops, yes, I meant exponentiation. Which you need (mod n) in RSA.