Performance of cyclic redundancy checks using error-correcting codes