HASHBUFSIZE
char hash[HASHBUFSIZE];
uint8_t data[HASHBUFSIZE / 2];
snprintf(hash + i * 2, HASHBUFSIZE - i * 2, "%2.2x", data[i]);
char buf[HASHBUFSIZE];
#if PATH_MAX < 1024 || HASHBUFSIZE < 224