Secure outsourcing of modular inverses and scalar multiplications on elliptic curves