Home | History | Annotate | Download | only in opencrypto

Lines Matching defs:crc

199  * and appending the crc and uncompressed length.
202 * a flag indication final buffer. The crc is maintained
207 * Ditto for uncompress - CRC is extracted from the final packed
208 * and compared against CRC of uncompressed data.
236 u_int32_t crc;
253 crc = crc32(0, data, size);
254 DPRINTF("size %u, crc 0x%x\n", size, crc);
294 crc = crc32(0, NULL, 0); /* get initial crc value */
356 /* need room for header, CRC, and ISIZE */
378 /* update crc for decompressed data */
379 crc = crc32(crc, buf[j].out, MIN(count, buf[j].size));
396 /* fill in CRC and ISIZE */
397 HTOLE32(crc);
398 memcpy(output, &crc, sizeof(uint32_t));
409 if (crc != icrc || result != isize) {
410 DPRINTF("crc/size mismatch\n");