Implement curve25519_public and curve2559_shared