Split out elliptic curve operations into separate file.