Authentication of an entity and a message