Home | History | Annotate | Download | only in isp

Lines Matching refs:checksum

54  * Calculates checksum for a data block.
55 * param[in] a_data_ptr Data from where to calculate the checksum
57 * return The checksum
64 /* Simple checksum algorithm: summing up the data content
90 * paying attention to checksum or data tagging. This function assumes
165 * attention to checksum or data tagging. Also, this function does
200 * that was given. Also updates the checksum and size accordingly.
232 header_ptr->checksum = get_checksum(header_ptr, sizeof(tbd_header_t));
241 * including the verification of the checksum. The function does not
260 /* Check that the checksum is correct */
262 /* When calculating the checksum for the original data, the checksum
264 * checksum in its place, the new calculated checksum is actually
267 if (get_checksum(header_ptr, header_ptr->size) - header_ptr->checksum != header_ptr->checksum) {
268 MSG_ERR("LIBTBD ERROR: Checksum doesn't match!");
278 * including the verification of the checksum. Also, the data must have
316 /* Check that the checksum is correct */
318 /* When calculating the checksum for the original data, the checksum
320 * checksum in its place, the new calculated checksum is actually
323 if (get_checksum(header_ptr, header_ptr->size) - header_ptr->checksum != header_ptr->checksum) {
324 MSG_ERR("LIBTBD ERROR: Checksum doesn't match!");
398 * exists in the data. Also updates the checksum and size accordingly.
463 header_ptr->checksum = 0;
464 header_ptr->checksum = get_checksum(header_ptr, new_size);
473 * which the checksum and size are updated accordingly. If there are
524 header_ptr->checksum = 0;
525 header_ptr->checksum = get_checksum(header_ptr, new_size);
574 fprintf(a_outfile, "Data checksum: 0x%08x\n", header_ptr->checksum);