protected static function verifyHMAC($correct_hmac, $message, $key) { $message_hmac = \hash_hmac(Core::HASH_FUNCTION_NAME, $message, $key, true); return Core::hashEquals($correct_hmac, $message_hmac); }