How to recalculate a CRC32 on a large byte array when replacing a small number of bytes
<p>I have a problem where as input I have a large byte array (typically >1K length) which has a computed CRC32. I need to replace a small chunk of the array with different values, and recalculate the CRC. Is there an efficient way to do this without looping through the entire original byte array? I suspect it's mathematically possible to take as inputs the original CRC, the bytes to be replaced, the new bytes, and calculate the new CRC with an algorithm whose loop size is just the number of bytes to be replaced, but it's outside my area of expertise, hence, just a suspicion. Thanks,</p>