Module checksum

Module checksum 

Source
Expand description

CRC32 checksum utilities for data integrity verification.

Functionsยง

append_checksum
Appends a CRC32 checksum to the encoded packet data. Returns a new vector with the checksum appended.
append_checksum_in_place
Appends a CRC32 checksum to the provided buffer in-place.
validate_and_strip_checksum
Validates and strips the CRC32 checksum from packet data. Returns the data without checksum if valid, or an error if checksum fails.