Lines Matching refs:checksum
106 uint32_t checksum = phar_tar_number(header->checksum, sizeof(header->checksum)); in phar_is_tar() local
108 char save[sizeof(header->checksum)], *bname; in phar_is_tar()
115 memcpy(save, header->checksum, sizeof(header->checksum)); in phar_is_tar()
116 memset(header->checksum, ' ', sizeof(header->checksum)); in phar_is_tar()
117 is_tar = (checksum == phar_tar_checksum(buf, 512)); in phar_is_tar()
118 memcpy(header->checksum, save, sizeof(header->checksum)); in phar_is_tar()
258 sum1 = phar_tar_number(hdr->checksum, sizeof(hdr->checksum)); in phar_parse_tarfile()
262 memset(hdr->checksum, ' ', sizeof(hdr->checksum)); in phar_parse_tarfile()
350 sum1 = phar_tar_number(hdr->checksum, sizeof(hdr->checksum)); in phar_parse_tarfile()
791 memcpy(header.checksum, " ", sizeof(" ")-1); in phar_tar_writeheaders_int()
794 if (FAILURE == phar_tar_octal(header.checksum, entry->crc32, sizeof(header.checksum)-1)) { in phar_tar_writeheaders_int()