Method for signing whole message