Crate crc
crc
Rust implementation of CRC.
Examples
Using a well-known algorithm:
const X25: Crc = new;
assert_eq!;
Using a custom algorithm:
const CUSTOM_ALG: Algorithm = Algorithm ;
let crc = new;
let mut digest = crc.digest;
digest.update;
assert_eq!;
Modules
Structs
- Algorithm This struct describes a CRC algorithm using the fields specified by the Catalogue of parametrised CRC algorithms.
- Crc Crc instance with a specific width, algorithm, and implementation.
- Digest
-
Table
A table-based implementation of the CRC algorithm, with
Llanes. The number of entries in the lookup table isL * 256.
Traits
- Implementation A trait for CRC implementations.
- Width
Type Aliases
- NoTable An implementation of the CRC algorithm with no lookup table.