elliptic curve cryptography algorithm with example