Debian Codegraph @

debian/rust-vendor/crc-catalog/src/poly.rs

raw
1 //! CRC polynomials and their aliases.
2 //!
3 //! These polynomials are collected from the following catalogues:
4 //! - [Wikipedia](https://wikipedia.org/wiki/Cyclic_redundancy_check#Polynomial_representations_of_cyclic_redundancy_checks)
5 //! - [Catalogue of parametrised CRC algorithms](https://reveng.sourceforge.io/crc-catalogue/all.htm)
6 //! - [CRC Polynomial Zoo](https://users.ece.cmu.edu/~koopman/crc/crc32.html)
7
8 pub const CRC_16: u16 = 0x8005;
9 pub const CRC_16_IBM: u16 = CRC_16;
10 pub const CRC_16_ANSI: u16 = CRC_16;
11
12 pub const CRC_32: u32 = 0x04c11db7;
13 pub const IEEE_802_3: u32 = CRC_32;