Implement a bit of arithmetic on elliptic curves.