#ifndef __CRC_H # define __CRC_H /** * Get CRC-32 of a file descriptor `fd` * Result is valid iff `ferror(fd)` isn't set */ unsigned long get_file_crc32 (FILE *fd); /** * Compute (thus update) the crc32 of `buffer` of length `len` */ void update_crc32(unsigned long *crc32, unsigned char *buffer, int len); #endif