Cyclic redundancy check
A cyclic redundancy check is an error-detection code computed using polynomial division over binary coefficients.
Specify the generator, protected length and bit conventions; output width alone does not define detection coverage. [1] Hesela supplies deliberately constructed, same-length payload changes with unchanged CRC values, including a common-multiple pattern that passes both IEEE CRC-32 and CRC-32C. The examples do not estimate collision frequencies or establish independence between checks. [2]
For n codeword bits including the CRC, let A_w count undetectable masks of w flipped bits. With independent flips of the same probability p at every position (0 <= p <= 1), the per-codeword undetected-corruption probability is sum(w=1..n) A_w * p^w * (1-p)^(n-w). The zero mask is excluded. Conditioning on at least one flip divides this result by 1-(1-p)^n; it is undefined at p=0. These are error-model probabilities, not measured failure rates. [1]
Relations
Limitations
- A CRC does not authenticate data against intentional modification. [1]
Citations
- Sheinwald et al. RFC 3385: iSCSI CRC/Checksum Considerations, sections 2-3 and 10 (2002)
- Hesela: CRC polynomials, constructed error patterns and exact small-code enumeration
Sources & caveats
- RFC 3385 section 3 gives the independent-bit model. The probability given any corruption follows by conditioning on at least one flipped bit; burst and selected-pattern distributions require separate treatment.