Implement curve25519_public and curve25519_shared