Move salt transfer to set_salt() for xsha512.