Simple elliptic curve cryptography in PHP