calculate_hash
if (calculate_hash(file, &new_hash) == 0) {
if (calculate_hash(cpath, &hashstr) != 0) {
int calculate_hash(const char *, char **);