Add functions to convert to curve25519 keys.