Complete CRC implementation.