/* Steps through buffer one byte at at time, calculates reflected crc using table.  */
static u32 crc32c(u32 crc, const u8 *data, unsigned int length)
/* Steps through buffer one byte at at time, calculates reflected crc using table.  */
static u32 crc32c(u32 crc, const u8 *data, unsigned int length)
{
	while (length--)
		crc = crc32c_table[(crc ^ *data++) & 0xFFL] ^ (crc >> 8);
	return crc;
}