Lines Matching full:checksum
21 * calculates the checksum of CHECKSUM_OFFSET bytes and compares with data at
27 * size, header size included) and its checksum. Then it reads the rest of the
29 * checksum and compares it with value read from the header.
63 * Then it calculates checksum of the buffer by just summing up all bytes.
67 * checksum is appended to the file in little endian format, which results
68 * in checksum added exactly at CHECKSUM_OFFSET.
70 * - for variable size SPL the checksum and file size are stored in the
79 uint32_t checksum = 0; in main() local
158 for (i = 0, checksum = 0; i < count; i++) in main()
159 checksum += buffer[i]; in main()
160 checksum = cpu_to_le32(checksum); in main()
168 memcpy(&vsh.spl_checksum, &checksum, sizeof(checksum)); in main()
177 /* For fixed size SPL checksum is appended in the end. */ in main()
179 write_to_file(ofd, &checksum, sizeof(checksum)); in main()