Calculate digest from the message payload