/chksum8

Simple Rust library to calculate an 8-bit checksum.

Primary LanguageRustThe UnlicenseUnlicense

8-bit checksum calculator

This crate calculate the 8-bit checksum of a data structure, or of an array of bytes.

In other words, it adds up all the bytes, modulo 256.

This code is actually used in many places in OS development (such as ACPI, SMBIOS, EDID).

License

This code is licensed with the Unlicense, i.e. it is in the public domain.

See LICENSE.md for more information.