{"id":33931244,"url":"https://github.com/nanpuyue/crc_all","last_synced_at":"2026-04-08T13:31:07.928Z","repository":{"id":57612139,"uuid":"165240998","full_name":"nanpuyue/crc_all","owner":"nanpuyue","description":"A Pure Rust Implementation of Generic CRC Algorithm","archived":false,"fork":false,"pushed_at":"2022-05-01T11:17:16.000Z","size":35,"stargazers_count":27,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-02T09:18:45.985Z","etag":null,"topics":["checksum","crc","crc16","crc32","crc5","crc64","crc8","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nanpuyue.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-11T12:33:57.000Z","updated_at":"2024-10-25T15:33:59.000Z","dependencies_parsed_at":"2022-08-27T09:50:53.335Z","dependency_job_id":null,"html_url":"https://github.com/nanpuyue/crc_all","commit_stats":null,"previous_names":["nanpuyue/crc"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/nanpuyue/crc_all","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanpuyue%2Fcrc_all","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanpuyue%2Fcrc_all/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanpuyue%2Fcrc_all/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanpuyue%2Fcrc_all/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nanpuyue","download_url":"https://codeload.github.com/nanpuyue/crc_all/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanpuyue%2Fcrc_all/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31558379,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T10:21:54.569Z","status":"ssl_error","status_checked_at":"2026-04-08T10:21:38.171Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["checksum","crc","crc16","crc32","crc5","crc64","crc8","rust"],"created_at":"2025-12-12T12:36:36.423Z","updated_at":"2026-04-08T13:31:07.913Z","avatar_url":"https://github.com/nanpuyue.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A Pure Rust Implementation of Generic CRC Algorithm\n\n[![Crates.io](https://img.shields.io/crates/v/crc_all?color=green)](https://crates.io/crates/crc_all)\n\n## Supported Algorithms\n\n`CRC-3/GSM`,`CRC-3/ROHC`,`CRC-4/G-704`,`CRC-4/INTERLAKEN`,`CRC-5/EPC-C1G2`,`CRC-5/G-704`,`CRC-5/USB`,`CRC-6/CDMA2000-A`,\n`CRC-6/CDMA2000-B`,`CRC-6/DARC`,`CRC-6/G-704`,`CRC-6/GSM`,`CRC-7/MMC`,`CRC-7/ROHC`,`CRC-7/UMTS`,`CRC-8/AUTOSAR`,\n`CRC-8/BLUETOOTH`,`CRC-8/CDMA2000`,`CRC-8/DARC`,`CRC-8/DVB-S2`,`CRC-8/GSM-A`,`CRC-8/GSM-B`,`CRC-8/I-432-1`,\n`CRC-8/I-CODE`,`CRC-8/LTE`,`CRC-8/MAXIM-DOW`,`CRC-8/NRSC-5`,`CRC-8/OPENSAFETY`,`CRC-8/ROHC`,`CRC-8/SAE-J1850`,\n`CRC-8/SMBUS`,`CRC-8/TECH-3250`,`CRC-8/WCDMA`,`CRC-10/ATM`,`CRC-10/CDMA2000`,`CRC-10/GSM`,`CRC-11/FLEXRAY`,\n`CRC-11/UMTS`,`CRC-12/CDMA2000`,`CRC-12/DECT`,`CRC-12/GSM`,`CRC-12/UMTS`,`CRC-13/BBC`,`CRC-14/DARC`,`CRC-14/GSM`,\n`CRC-15/CAN`,`CRC-15/MPT1327`,`CRC-16/ARC`,`CRC-16/CDMA2000`,`CRC-16/CMS`,`CRC-16/DDS-110`,`CRC-16/DECT-R`,\n`CRC-16/DECT-X`,`CRC-16/DNP`,`CRC-16/EN-13757`,`CRC-16/GENIBUS`,`CRC-16/GSM`,`CRC-16/IBM-3740`,`CRC-16/IBM-SDLC`,\n`CRC-16/ISO-IEC-14443-3-A`,`CRC-16/KERMIT`,`CRC-16/LJ1200`,`CRC-16/MAXIM-DOW`,`CRC-16/MCRF4XX`,`CRC-16/MODBUS`,\n`CRC-16/NRSC-5`,`CRC-16/OPENSAFETY-A`,`CRC-16/OPENSAFETY-B`,`CRC-16/PROFIBUS`,`CRC-16/RIELLO`,`CRC-16/SPI-FUJITSU`,\n`CRC-16/T10-DIF`,`CRC-16/TELEDISK`,`CRC-16/TMS37157`,`CRC-16/UMTS`,`CRC-16/USB`,`CRC-16/XMODEM`,`CRC-17/CAN-FD`,\n`CRC-21/CAN-FD`,`CRC-24/BLE`,`CRC-24/FLEXRAY-A`,`CRC-24/FLEXRAY-B`,`CRC-24/INTERLAKEN`,`CRC-24/LTE-A`,`CRC-24/LTE-B`,\n`CRC-24/OPENPGP`,`CRC-24/OS-9`,`CRC-30/CDMA`,`CRC-31/PHILIPS`,`CRC-32/AIXM`,`CRC-32/AUTOSAR`,`CRC-32/BASE91-D`,\n`CRC-32/BZIP2`,`CRC-32/CKSUM`,`CRC-32/ISCSI`,`CRC-32/ISO-HDLC`,`CRC-32/JAMCRC`,`CRC-32/MPEG-2`,`CRC-32/XFER`,\n`CRC-40/GSM`,`CRC-64/ECMA-182`,`CRC-64/GO-ISO`,`CRC-64/WE`,`CRC-64/XZ`,`CRC-82/DARC`\n\nSee `CRC.txt`.\n\n**Note:** `CRC-12/UMTS` need special operation, see `tests/tests.rs`.\n\n## Usage\n\nAdd `crc_all` to `Cargo.toml`\n\n```toml\n[dependencies]\ncrc_all = \"0.2.2\"\n```\n\n## Example\n\n```rust\nuse crc_all::CrcAlgo;\n\nfn crc11_umts(data: \u0026[u8]) -\u003e u16 {\n    const CRC11_UMTS: CrcAlgo\u003cu16\u003e = CrcAlgo::\u003cu16\u003e::new(0x307, 11, 0, 0, false);\n\n    let crc = \u0026mut 0u16;\n    CRC11_UMTS.init_crc(crc);\n    CRC11_UMTS.update_crc(crc, data)\n}\n\nfn main() {\n    assert_eq!(crc11_umts(b\"123456789\".as_ref()), 0x061);\n}\n```\n\n```rust\nuse crc_all::Crc;\n\nfn main() {\n    let data = b\"123456789\".as_ref();\n    let mut crc5_usb = Crc::\u003cu8\u003e::new(0x05, 5, 0x1f, 0x1f, true);\n\n    assert_eq!(crc5_usb.update(data), 0x19);\n    assert_eq!(crc5_usb.update(data), 0x03);\n\n    crc5_usb.init();\n    assert_eq!(crc5_usb.update(data), 0x19);\n}\n```\n\n## License\n\nLicensed under either of\n\n* Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)\n* MIT License (LICENSE-MIT or http://opensource.org/licenses/MIT)\n\nat your option.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnanpuyue%2Fcrc_all","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnanpuyue%2Fcrc_all","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnanpuyue%2Fcrc_all/lists"}