hash_hmac($algorithm, $data, $key, true), default => throw new CryptographyException('Algorithm not supported') }; } }