checkHMACForChatMessage method