Elliptic curve cryptography algorithm