Lines Matching full: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 in get_checksum()
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)); in tbd_create()
241 * including the verification of the checksum. The function does not
260 /* Check that the checksum is correct */ in tbd_validate_anytag()
262 /* When calculating the checksum for the original data, the checksum in tbd_validate_anytag()
264 * checksum in its place, the new calculated checksum is actually in tbd_validate_anytag()
267 if (get_checksum(header_ptr, header_ptr->size) - header_ptr->checksum != header_ptr->checksum) { in tbd_validate_anytag()
268 MSG_ERR("LIBTBD ERROR: Checksum doesn't match!"); in tbd_validate_anytag()
278 * including the verification of the checksum. Also, the data must have
316 /* Check that the checksum is correct */ in tbd_validate()
318 /* When calculating the checksum for the original data, the checksum in tbd_validate()
320 * checksum in its place, the new calculated checksum is actually in tbd_validate()
323 if (get_checksum(header_ptr, header_ptr->size) - header_ptr->checksum != header_ptr->checksum) { in tbd_validate()
324 MSG_ERR("LIBTBD ERROR: Checksum doesn't match!"); in tbd_validate()
398 * exists in the data. Also updates the checksum and size accordingly.
463 header_ptr->checksum = 0; in tbd_insert_record()
464 header_ptr->checksum = get_checksum(header_ptr, new_size); in tbd_insert_record()
473 * which the checksum and size are updated accordingly. If there are
524 header_ptr->checksum = 0; in tbd_remove_record()
525 header_ptr->checksum = get_checksum(header_ptr, new_size); in tbd_remove_record()
574 fprintf(a_outfile, "Data checksum: 0x%08x\n", header_ptr->checksum); in tbd_infoprint()