Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sys/checksum: add CRC-32 checksum #18686

Merged
merged 3 commits into from
Oct 4, 2022
Merged

Conversation

benpicco
Copy link
Contributor

@benpicco benpicco commented Oct 4, 2022

Contribution description

The CRC-32 checksum algorithm was previously absent in RIOT, so add it.
This is with the polynomial used by e.g. Ethernet, SATA, PNG, etc.

Testing procedure

A new unit test was added to tests-checksum.

Issues/PRs references

@benpicco benpicco requested a review from miri64 as a code owner October 4, 2022 10:09
@github-actions github-actions bot added Area: build system Area: Build system Area: sys Area: System Area: tests Area: tests and testing framework labels Oct 4, 2022
@benpicco benpicco requested review from jue89, kfessel and maribu October 4, 2022 11:08
@github-actions github-actions bot added Area: doc Area: Documentation Area: tools Area: Supplementary tools labels Oct 4, 2022
Copy link
Member

@maribu maribu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Some nitpicks inline.

sys/checksum/crc32.c Show resolved Hide resolved
sys/include/checksum/crc32.h Outdated Show resolved Hide resolved
sys/include/checksum/crc32.h Outdated Show resolved Hide resolved
@benpicco benpicco force-pushed the checksum/crc32 branch 2 times, most recently from cf3f7cd to f5bfba6 Compare October 4, 2022 12:37
@benpicco benpicco added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Oct 4, 2022
@riot-ci
Copy link

riot-ci commented Oct 4, 2022

Murdock results

✔️ PASSED

df159b4 codespell: add false positive for El Didi

Success Failures Total Runtime
1979 0 1979 06m:46s

Artifacts

This only reflects a subset of all builds from https://ci-prod.riot-os.org. Please refer to https://ci.riot-os.org for a complete build for now.

* Copyright (C) 2020 Ayman El Didi
*
* To the extent possible under law, the author(s) have dedicated all
* domain worldwide. This software is distributed without any warranty.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is that sentence missing something? e.g., "...software to the public..."?

@maribu maribu merged commit 6ced6df into RIOT-OS:master Oct 4, 2022
@benpicco benpicco deleted the checksum/crc32 branch October 4, 2022 21:23
@maribu maribu added this to the Release 2022.10 milestone Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: build system Area: Build system Area: doc Area: Documentation Area: sys Area: System Area: tests Area: tests and testing framework Area: tools Area: Supplementary tools CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants