Implement curve25519