Lines Matching full:checksum
46 uint32_t checksum; in image_verify_header() local
52 * checksum field for checking - this can't be done in image_verify_header()
66 checksum = be32_to_cpu(hdr->ih_hcrc); in image_verify_header()
69 if (crc32(0, data, len) != checksum) { in image_verify_header()
70 debug("%s: ERROR: \"%s\" has bad header checksum!\n", in image_verify_header()
78 checksum = be32_to_cpu(hdr->ih_dcrc); in image_verify_header()
79 if (crc32(0, data, len) != checksum) { in image_verify_header()
90 uint32_t checksum; in image_set_header() local
98 checksum = crc32(0, in image_set_header()
124 image_set_dcrc(hdr, checksum); in image_set_header()
132 checksum = crc32(0, (const unsigned char *)hdr, in image_set_header()
135 image_set_hcrc(hdr, checksum); in image_set_header()